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:

['drone1'] = {
	label = 'Drone',
	weight = 220,
	server = {
		export = 'smartdrone.OxUseSmartDrone',
		name = "Drone1"
	},
},
['drone2'] = {
	label = 'Drone',
	weight = 220,
	server = {
		export = 'smartdrone.OxUseSmartDrone',
		name = "Drone2"
	},
},

Additionally, you'll need to open the config.lua file within the Smart Drone resource and navigate to lines 66-68.

itemEnabled = false, -- The item's names are the names found in main.models. (By default, drone1 and drone2)
commandName = "drone",
oxInventory = false,

Here you can enable the item and also choose the name. You should also enable oxInventory.

Last updated