> For the complete documentation index, see [llms.txt](https://tk-scripts.gitbook.io/docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://tk-scripts.gitbook.io/docs/tk_crafting/commands.md). Agents can also search and read this documentation through its [MCP server](https://tk-scripts.gitbook.io/docs/~gitbook/mcp).

# Commands

The Crafting commands that show and set a player's crafting XP on a FiveM server.

## craftingxp

```
/craftingxp
```

Shows the player's own crafting XP in a notification. Every player can run it.

## setxp

```
/setxp <playerId> <xp>
```

* `playerId`: `number`
  * The server ID of an online player
* `xp`: `number`
  * The new XP total; it replaces the old value

Sets a player's crafting XP. Run it in the server console without the `/`, or in game with the `command.setxp` ace.
