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

> Se déclenche quand un joueur récolte un item depuis un marker de récolte.

Se déclenche quand un joueur récolte un item à un marker de récolte.

<CodeGroup>
  ```lua Event theme={null}
  RegisterNetEvent("jobs_creator:harvest:harvestedItem", function(playerId, markerId, itemName, itemType, itemQuantity)
  end)
  ```

  ```lua Example theme={null}
  RegisterNetEvent("jobs_creator:harvest:harvestedItem", function(playerId, markerId, itemName, itemType, itemQuantity)
      print("Player ID: " .. playerId .. " harvested " .. itemQuantity .. " " .. itemName .. " from marker " .. markerId)
      TriggerEvent("xp_system:addExperience", playerId, "harvest")
  end)
  ```
</CodeGroup>

### Paramètres

| Nom | Type de donnée | Description |
| - | - | - |
| `playerId` | integer | Server ID du joueur |
| `markerId` | integer | ID du marker |
| `itemName` | string | Nom de l'item |
| `itemType` | string | Type d'item (`item`, `weapon`, `account`) |
| `itemQuantity` | integer | Quantité récoltée |


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