Item farmed
Last updated
Was this helpful?
Last updated
Was this helpful?
Was this helpful?
This page will have events that are triggered after a player farms anywhere
RegisterNetEvent("farming_creator:farms:completed", function(playerId, farmId, givenItems)
-- An example for a xp system
TriggerEvent("xp_system:addXp", playerId)
end)
RegisterNetEvent("farming_creator:fields:completed", function(playerId, fieldId, givenItems)
-- An example for a xp system
TriggerEvent("xp_system:addXp", playerId)
end)
RegisterNetEvent("farming_creator:foundries:completed", function(playerId, foundryId, givenItems)
-- An example for a xp system
TriggerEvent("xp_system:addXp", playerId)
end)
RegisterNetEvent("farming_creator:seeds:interacted", function(playerId, seedId, givenItems)
-- An example for a xp system
TriggerEvent("xp_system:addXp", playerId)
end)
RegisterNetEvent("farming_creator:workbenches:completed", function(playerId, workbenchId, givenItems)
-- An example for a xp system
TriggerEvent("xp_system:addXp", playerId)
end)