Item farmed

This page will have events that are triggered after a player farms anywhere

Farms

RegisterNetEvent("farming_creator:farms:completed", function(playerId, farmId, givenItems)
    -- An example for a xp system
    TriggerEvent("xp_system:addXp", playerId)
end)

Fields

RegisterNetEvent("farming_creator:fields:completed", function(playerId, fieldId, givenItems)
    -- An example for a xp system
    TriggerEvent("xp_system:addXp", playerId)
end)

Foundries

RegisterNetEvent("farming_creator:foundries:completed", function(playerId, foundryId, givenItems)
    -- An example for a xp system
    TriggerEvent("xp_system:addXp", playerId)
end)

Seeds

RegisterNetEvent("farming_creator:seeds:interacted", function(playerId, seedId, givenItems)
    -- An example for a xp system
    TriggerEvent("xp_system:addXp", playerId)
end)

Workbenches

RegisterNetEvent("farming_creator:workbenches:completed", function(playerId, workbenchId, givenItems)
    -- An example for a xp system
    TriggerEvent("xp_system:addXp", playerId)
end)

Last updated