> ## 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 récolté

> Events déclenchés après qu'un joueur récolte n'importe où - fermes, champs, fonderies, graines ou établis.

Cette page liste les events déclenchés **après** qu'un joueur récolte n'importe où.

### Fermes

```lua theme={null}
RegisterNetEvent("farming_creator:farms:completed", function(playerId, farmId, givenItems)
    -- Un exemple pour un système d'xp
    TriggerEvent("xp_system:addXp", playerId)
end)
```

### Champs

```lua theme={null}
RegisterNetEvent("farming_creator:fields:completed", function(playerId, fieldId, givenItems)
    -- Un exemple pour un système d'xp
    TriggerEvent("xp_system:addXp", playerId)
end)
```

### Fonderies

```lua theme={null}
RegisterNetEvent("farming_creator:foundries:completed", function(playerId, foundryId, givenItems)
    -- Un exemple pour un système d'xp
    TriggerEvent("xp_system:addXp", playerId)
end)
```

### Graines

```lua theme={null}
RegisterNetEvent("farming_creator:seeds:interacted", function(playerId, seedId, givenItems)
    -- Un exemple pour un système d'xp
    TriggerEvent("xp_system:addXp", playerId)
end)
```

### Établis

```lua theme={null}
RegisterNetEvent("farming_creator:workbenches:completed", function(playerId, workbenchId, givenItems)
    -- Un exemple pour un système d'xp
    TriggerEvent("xp_system:addXp", playerId)
end)
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.