Last updated 2 months ago
Triggered when a player harvests an item in harvest marker
RegisterNetEvent("jobs_creator:harvest:harvestedItem", function(playerId, markerId, itemName, itemType, itemQuantity) end)
RegisterNetEvent("jobs_creator:harvest:harvestedItem", function(playerId, markerId, itemName, itemType, itemQuantity) print("Player ID :" .. playerId .. " harvested " .. itemQuantity .. " " .. itemName .. " from marker " .. markerId) TriggerEvent("xp_system:addExperience", playerId, "harvest") end)
playerId
integer
Player's server ID
markerId
Marker ID
itemName
string
Item name
itemType
Item type ('item', 'weapon', 'account')
itemQuantity
Harvested quantity