> For the complete documentation index, see [llms.txt](https://zat-scripts.gitbook.io/zat-scripts/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://zat-scripts.gitbook.io/zat-scripts/esx/crafting/installation.md).

# Installation

## Dependencies

<details>

<summary>ES EXTENDED</summary>

You will need the latest version of [es\_extended](https://github.com/ESX-Official/es_extended).

* Extract the contents of the archive to your resources folder.
* Start the resource near the top of your resources in your server.cfg.

</details>

<details>

<summary>OX_LIB</summary>

You will need the latest version of [ox\_lib](https://github.com/overextended/ox_lib/releases/tag/v3.16.2).

* Extract the contents of the archive to your resources folder.
* Start the resource near the top of your resources in your server.cfg.

</details>

### Installing the resource

* Make sure you have the [dependencies](#dependencies) listed above installed.
* Extract the contents of the archive to your resources folder.
* Add "blueprint" and "craftingtable"  item to the database
* import SQLs to the database.

<details>

<summary>OX INVENTORY</summary>

* Add this to ox\_inventory>data>items.lua:

```lua
["craftingtable"] = {
	label = "Crafting Table",
	weight = 100,
	stack = false,
	close = true,
	description = "Crafting Table",
	client = {
		image = "craftingtable.png",
	}
},
```

* Add this to ox\_inventory > modules > items > client.lua :

```lua
Item('craftingtable', function(data, slot)
	local model = "gr_prop_gr_bench_04b"
	local id = "CraftingTable"..math.random(111111,999999)
	TriggerEvent("zat-crafting:client:PlaceTable", id, model)
end)
```

</details>

<details>

<summary>QS INVENTORY</summary>

* Add this into qs-inventory/shared/itemslua

```lua
    ['craftingtable']                  = {
        ['name'] = 'craftingtable',
        ['label'] = 'Crafting Table',
        ['weight'] = 0,
        ['type'] = 'item',
        ['image'] = 'craftingtable.png',
        ['unique'] = true,
        ['useable'] = true,
        ['shouldClose'] = false,
        ['combinable'] = nil,
        ['description'] = '...'
    },
```

* Add this into qs-inventory/server/custom/misc/createuseableitem.lua

```lua
CreateUsableItem('craftingtable', function(source, item)
    local model = "gr_prop_gr_bench_04b"
    local id = "CraftingTable"..math.random(111111,999999)
    TriggerClientEvent("zat-crafting:client:PlaceTable", source, id, model)
end)
```

</details>

* Ensure zat-crafting on the server.cfg.
