# Pocket crafting finished

This event is triggered when a player completes a pocket crafting process.

## Event Name

```lua
"drugs_creator:pocketCraftingFinished"
```

## Parameters

| Name     | Type   | Description                                            |
| -------- | ------ | ------------------------------------------------------ |
| playerId | number | The server ID of the player who completed the crafting |
| itemName | string | The name of the pocket crafting item that was used     |

## Description

This event is triggered after a player successfully completes a pocket crafting process. It is fired right after the player receives their crafted item.

## Example Usage

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


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://documentation.jaksam-scripts.com/drugs-creator/server/pocket-crafting-finished.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
