Make OX-Inventory compatible

  1. Activate OX-Inventory in the r_handcuffs script config

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

["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'
	}
},

If you change the name of the r_handcuffs script, don't forget to change the export names above!

  1. 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/

  1. Restart your server and take advantage of the items using /giveitem me <handcuffs / handcuff_keys / grinder / rope / knife>

Last updated