OX_Inventory Integration

Find information on configuring for OX_Inventory!

The following code needs to be added into ox_inventory/data/items.lua within your OX_Inventory resource:

['firearms'] = {
	label = 'Firearms Shield',
	weight = 220,
	server = {
		export = 'policeshields.usePoliceShield',
		name = "Firearms"
	},
},
['ctsfo'] = {
	label = 'CTSFO Shield',
	weight = 220,
	server = {
		export = 'policeshields.usePoliceShield',
		name = "CTSFO"
	},
},
['small'] = {
	label = 'Small Shield',
	weight = 220,
	server = {
		export = 'policeshields.usePoliceShield',
		name = "Small"
	},
},
['long'] = {
	label = 'Long Shield',
	weight = 220,
	server = {
		export = 'policeshields.usePoliceShield',
		name = "Long"
	},
},
['ctsfo2'] = {
	label = 'CTSFO2 Shield',
	weight = 220,
	server = {
		export = 'policeshields.usePoliceShield',
		name = "CTSFO2"
	},
},
['firearms2'] = {
	label = 'Firearms2 Shield',
	weight = 220,
	server = {
		export = 'policeshields.usePoliceShield',
		name = "Firearms2"
	},
},
['long2'] = {
	label = 'Long2 Shield',
	weight = 220,
	server = {
		export = 'policeshields.usePoliceShield',
		name = "Long2"
	},
},
['short2'] = {
	label = 'Short2 Shield',
	weight = 220,
	server = {
		export = 'policeshields.usePoliceShield',
		name = "Short2"
	},
},

Additionally, you'll need to open the config.lua file within the Police Shields resource and navigate to lines 26-28.

inventory = { -- Name of items are the shield names
    itemEnabled = false,
    oxInventory = false,

Here you can enable the items. You should also enable oxInventory.

Last updated