> 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.md).

# tk\_crafting

Crafting adds crafting tables, blueprint and XP-locked recipes and player-placed tables to a FiveM server.

Fixed tables, recipes and rules for the crafting system are set in the config, with Discord logs built in. It runs on ESX and QBCore, and on Qbox through its QBCore support.

[Crafting product page](https://tkscripts.com/scripts/crafting) | [Watch the showcase on YouTube](https://www.youtube.com/watch?v=UYKHMpIZ6eQ) | [Install Crafting](/docs/tk_crafting/installation.md)

{% embed url="<https://www.youtube.com/watch?v=UYKHMpIZ6eQ>" %}
Crafting showcase (3 min 23 s).
{% endembed %}

## Features

### Crafting tables

* Spawn a table model at coordinates you set
* Turn every entity of a chosen model into a crafting table
* Add as many crafting tables as you want with different craftable items
* Markers and blips for each table; both can be switched off
* Restrict certain tables to certain jobs

### Blueprint system

* Choose which items need a blueprint
* Show or hide blueprint items for players who don't own the blueprint

### Crafting XP

* Set the XP needed to craft each item
* Set the XP crafting an item gives
* Show or hide items the player lacks the XP for

### Placeable crafting tables

* Items that place a crafting table, which works like any other and saves over restarts
* Add as many table items as you want, each with its own recipes
* Choose who can pick a table up: its owner, police, everyone or another rule

### Crafting time and ingredients

* Set the crafting duration
* Editable animations for crafting and for an open table
* Choose which ingredients are used up and which are kept

### Menu, logs and languages

* Menu with search; items you can't craft are shown greyed out
* Works with ox\_lib and ox\_target
* Discord logging built in
* English, Finnish and Portuguese included; every text can be translated

## Requirements

| Item      | Supported                                                                     |
| --------- | ----------------------------------------------------------------------------- |
| Framework | ESX, QBCore, Qbox. Another framework works after editing the framework files. |
| Database  | oxmysql or mysql-async                                                        |
| Inventory | The framework's inventory (ESX, qb-inventory) or ox\_inventory                |
| Target    | ox\_target (optional)                                                         |
| Text UI   | ox\_lib (optional)                                                            |
| Languages | English, Finnish, Portuguese                                                  |

With ox\_inventory, add `Config.Inventory = 'ox'` to `config.lua` so the menu shows item labels. Every dependency and its start order: [Crafting installation](/docs/tk_crafting/installation.md#requirements).

## Start here

* [Install Crafting](/docs/tk_crafting/installation.md)
* [Update without losing your config](/docs/tk_crafting/installation.md#update-without-losing-your-config)
* [Set up tables, recipes and placeable tables](/docs/tk_crafting/config.md)
* [Commands](/docs/tk_crafting/commands.md)
* [Fix common problems](/docs/tk_crafting/common-questions-and-problems.md)

Support: open a ticket in the [TK Scripts Discord](https://discord.gg/YndnF9tkqu).
