> 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/qbcore/crafting/installation.md).

# Installation

## Dependencies

<details>

<summary>QBCore</summary>

You will need the latest version of [qb-core](https://github.com/qbcore-framework/qb-core).

* 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>QB-WEAPONS</summary>

You will need the latest version of [qb-weapons](https://github.com/qbcore-framework/qb-weapons).

* 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 the SQLs to the data base.
* Add item to shared items.lua.<br>

  ```lua
  craftingtable                = { name = 'craftingtable', label = 'Crafting Table', weight = 100, type = 'item', image = 'craftingtable.png', unique = true, useable = true, shouldClose = true, combinable = nil, description = 'Crafting Table' },
  			
  blueprint                    = { name = 'blueprint',     label = 'Blueprint', weight = 100, type = 'item', image = 'blueprint.png', unique = true, useable = true, shouldClose = true, combinable = nil, description = 'Blueprint' },
  ```
* If you are using ox\_inventoryadd this to ox\_inventory > modules > items > client.lua :&#x20;
* ```
  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)
  ```
* Ensure zat-crafting on the server.cfg.
