> ## 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 cosechado

> Events que se activan después de que un jugador cosecha en cualquier lugar - farms, fields, foundries, seeds o workbenches.

Esta página enumera los events que se activan **después** de que un jugador cosecha en cualquier lugar.

### Farms

```lua theme={null}
RegisterNetEvent("farming_creator:farms:completed", function(playerId, farmId, givenItems)
    -- Un ejemplo para un sistema de experiencia
    TriggerEvent("xp_system:addXp", playerId)
end)
```

### Fields

```lua theme={null}
RegisterNetEvent("farming_creator:fields:completed", function(playerId, fieldId, givenItems)
    -- Un ejemplo para un sistema de experiencia
    TriggerEvent("xp_system:addXp", playerId)
end)
```

### Foundries

```lua theme={null}
RegisterNetEvent("farming_creator:foundries:completed", function(playerId, foundryId, givenItems)
    -- Un ejemplo para un sistema de experiencia
    TriggerEvent("xp_system:addXp", playerId)
end)
```

### Seeds

```lua theme={null}
RegisterNetEvent("farming_creator:seeds:interacted", function(playerId, seedId, givenItems)
    -- Un ejemplo para un sistema de experiencia
    TriggerEvent("xp_system:addXp", playerId)
end)
```

### Workbenches

```lua theme={null}
RegisterNetEvent("farming_creator:workbenches:completed", function(playerId, workbenchId, givenItems)
    -- Un ejemplo para un sistema de experiencia
    TriggerEvent("xp_system:addXp", playerId)
end)
```


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