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

# Installation

## 1. Install Dependencies

* `ox_lib`     <https://github.com/overextended/ox_lib/releases>&#x20;

## 2. Add Items to Inventory

* <mark style="color:yellow;">Only add these items if you have not done so already from</mark> [Weed Farm V2](/solos/weed-farm-v2.md)
* Add the following items to your  `items.lua`

<details>

<summary>ox_inventory</summary>

```lua
["joint_roller"] = {
    label = "Joint Roller",
    weight = 50, 
    stack = true, 
    close = true, 
    description = "Used to Roll Joints",
    client = {
	image = 'joint_roller.png',
    },
},

["rolling_paper"] = {
    label = "Rolling Paper",
    weight = 10, 
    stack = true, 
    close = false, 
    description = "Used to make joints",
    client = {
	image = 'rolling_paper.png',
    },
},
```

</details>

<details>

<summary>qb-inventory</summary>

<pre class="language-lua"><code class="lang-lua">['joint_roller'] = {
    ['name'] = 'joint_roller', 		 	  	
<strong>    ['label'] = 'Joint Roller', 					
</strong>    ['weight'] = 50, 		
    ['type'] = 	'item',					
    ['image'] = 'joint_roller.png',		
    ['unique'] = false,		
    ['useable'] = true, 
<strong>    ['shouldClose'] = true,
</strong>    ['description'] = 'Used to Roll Joints',
},

['rolling_paper'] = {
    ['name'] = 'rolling_paper', 		 	  	
    ['label'] = 'Rolling Paper', 					
    ['weight'] = 10, 		
    ['type'] = 	'item',					
    ['image'] = 'rolling_paper.png',		
    ['unique'] = false,		
    ['useable'] = false, 
    ['shouldClose'] = false,
    ['description'] = 'Used to make joints',
},
</code></pre>

</details>

<details>

<summary>qs-inventory</summary>

<pre class="language-lua"><code class="lang-lua">['joint_roller'] = {
    ['name'] = 'joint_roller', 		 	  	
<strong>    ['label'] = 'Joint Roller', 					
</strong>    ['weight'] = 50, 		
    ['type'] = 	'item',					
    ['image'] = 'joint_roller.png',		
    ['unique'] = false,		
    ['useable'] = true, 
<strong>    ['shouldClose'] = true,
</strong>    ['description'] = 'Used to Roll Joints',
},

['rolling_paper'] = {
    ['name'] = 'rolling_paper', 		 	  	
    ['label'] = 'Rolling Paper', 					
    ['weight'] = 10, 		
    ['type'] = 	'item',					
    ['image'] = 'rolling_paper.png',		
    ['unique'] = false,		
    ['useable'] = false, 
    ['shouldClose'] = false,
    ['description'] = 'Used to make joints',
},
</code></pre>

</details>

## 3. Add Images to Inventory

* Drag or copy the images from the `assets` folder located in `solos-jointroll` to your inventory's images folder

## 4. Restart Server

* <mark style="color:yellow;">**Make sure resource is named**</mark> `solos-jointroll`&#x20;
* Finally, restart your server.
* Enjoy!
