> For the complete documentation index, see [llms.txt](https://docs.rytrak.fr/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.rytrak.fr/scripts/advanced-handcuffs-system/make-ox-inventory-compatible.md).

# Make OX-Inventory compatible

1. Activate OX-Inventory in the r\_handcuffs script config

<figure><img src="/files/dnr4MGJ0hoCLOHSElTuu" alt=""><figcaption></figcaption></figure>

1. Add the following lines to your ox\_inventory/data/items.lua file at the very bottom

```lua
["grinder"] = {
	label = "Grinder",
	weight = 1,
	stack = true,
	close = true,
	consume = 0,
	server = {
		export = 'r_handcuffs.grinder'
	}
},

["handcuffs"] = {
	label = "Handcuffs",
	weight = 1,
	stack = true,
	close = true,
	consume = 0,
	server = {
		export = 'r_handcuffs.handcuffs'
	}
},

["handcuff_keys"] = {
	label = "Handcuff keys",
	weight = 1,
	stack = true,
	close = true,
	consume = 0,
	server = {
		export = 'r_handcuffs.handcuff_keys'
	}
},

["rope"] = {
	label = "Rope",
	weight = 1,
	stack = true,
	close = true,
	consume = 0,
	server = {
		export = 'r_handcuffs.rope'
	}
},

["knife"] = {
	label = "Knife",
	weight = 1,
	stack = true,
	close = true,
	consume = 0,
	server = {
		export = 'r_handcuffs.knife'
	}
},
```

<figure><img src="/files/wkLAiaqgTQ7qDQEi53nV" alt=""><figcaption></figcaption></figure>

{% hint style="danger" %}
If you change the name of the r\_handcuffs script, don't forget to change the export names above!
{% endhint %}

3. And finally, add the images of the items to your inventory (in my case it will be ox-inventory)

The images are located in the r\_handcuffs script folder.

For all inventories, the addition of images is more or less identical.

For ox\_inventory the directory is: /ox\_inventory/web/images/

4. Restart your server and take advantage of the items using /giveitem me \<handcuffs / handcuff\_keys / grinder / rope / knife>
