Last updated 1 year ago
Triggered after an harvestable item has been harvested
RegisterNetEvent("drugs_creator:harvest:itemHarvested", function(playerId, itemName, itemQuantity) end)
-- An example for a xp system RegisterNetEvent("drugs_creator:harvest:itemHarvested", function(playerId, itemName, itemQuantity) TriggerEvent("xp_system:addXp", playerId, itemQuantity) end)
playerId
int
Player server ID
itemName
string
Item ID just harvested
itemQuantity
Item quantity harvested