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

# Pocket crafting finished

> Déclenché côté serveur quand un joueur termine un processus de pocket crafting.

Cet event est déclenché après qu'un joueur ait terminé avec succès un processus de pocket crafting. Il est envoyé juste après que le joueur reçoive l'item crafté.

```lua Event theme={null}
AddEventHandler("drugs_creator:pocketCraftingFinished", function(playerId, itemName)

end)
```

### Paramètres

| Nom | Type de donnée | Description |
| - | - | - |
| `playerId` | integer | L'ID serveur du joueur qui a terminé le craft |
| `itemName` | string | Le nom de l'item de pocket crafting utilisé |

## Exemple

```lua theme={null}
AddEventHandler("drugs_creator:pocketCraftingFinished", function(playerId, itemName)
    print("Player " .. playerId .. " finished crafting with " .. itemName)
end)
```


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