> ## Documentation Index
> Fetch the complete documentation index at: https://docs.jaksam-scripts.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Item farmed

> Events triggered after a player farms anywhere - farms, fields, foundries, seeds, or workbenches.

This page lists events that are triggered **after** a player farms anywhere.

### Farms

```lua theme={null}
RegisterNetEvent("farming_creator:farms:completed", function(playerId, farmId, givenItems)
    -- An example for a xp system
    TriggerEvent("xp_system:addXp", playerId)
end)
```

### Fields

```lua theme={null}
RegisterNetEvent("farming_creator:fields:completed", function(playerId, fieldId, givenItems)
    -- An example for a xp system
    TriggerEvent("xp_system:addXp", playerId)
end)
```

### Foundries

```lua theme={null}
RegisterNetEvent("farming_creator:foundries:completed", function(playerId, foundryId, givenItems)
    -- An example for a xp system
    TriggerEvent("xp_system:addXp", playerId)
end)
```

### Seeds

```lua theme={null}
RegisterNetEvent("farming_creator:seeds:interacted", function(playerId, seedId, givenItems)
    -- An example for a xp system
    TriggerEvent("xp_system:addXp", playerId)
end)
```

### Workbenches

```lua theme={null}
RegisterNetEvent("farming_creator:workbenches:completed", function(playerId, workbenchId, givenItems)
    -- An example for a xp system
    TriggerEvent("xp_system:addXp", playerId)
end)
```


## Related topics

- [Server](/farming-creator/server/index.md)
- [Item processed](/jobs-creator/server/process/item-processed.md)
- [Item transferred](/jaksam-inventory/hooks/on-item-transferred.md)
- [Add item](/jaksam-inventory/functions/server/add-item.md)
- [Item harvested](/jobs-creator/server/harvest/item-harvested.md)
