Item Support

Find information on configuring for other resources!

Please note that your resource folder should be named 'policeshields' for our exports to work properly

ESX Item Support

Firstly, head to the config.lua file and enable ESX in the config. Next, run the following SQL into your ESX database to add the item:

INSERT INTO `items` (`name`, `label`, `weight`, `rare`, `can_remove`) VALUES
('carjack', 'Car Jack', 1, 0, 1),
('sparewheel', 'Spare Wheel', 1, 0, 1),

OX Inventory

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

['carjack'] = {
	label = 'Car Jack',
	weight = 220,
},
['sparewheel'] = {
	label = 'Spare Wheel',
	weight = 220,
},

QB-Core Item Support

Firstly, head to the config.lua file and enable QBCore in the config. Next, add the following lines of code into your qb-core/shared/items.lua file:

['carjack']    = {
    ['name'] = 'carjack',                             
    ['label'] = 'Car Jack',              
    ['weight'] = 1500,         
    ['type'] = 'item',         
    ['image'] = nil,                   
    ['unique'] = false,         
    ['useable'] = false,     
    ['shouldClose'] = true,      
    ['combinable'] = nil,   
    ['description'] = 'Shield'
},
 
['sparewheel']      = {
    ['name'] = 'sparewheel',                             
    ['label'] = 'Spare Wheel',              
    ['weight'] = 1500,         
    ['type'] = 'item',         
    ['image'] = nil,                   
    ['unique'] = false,         
    ['useable'] = false,     
    ['shouldClose'] = true,      
    ['combinable'] = nil,   
    ['description'] = 'Spare Wheel'
},

Feel free to adjust the various item settings depending on your server requirements!

vRP Inventory Support

Firstly, head to the config.lua file and enable vRP in the config. Next, add the following line of code into your vrp/cfg/items.lua file:

["carjack"] = {"Car Jack","Car Jack",function(args) return gen("Car Jack") end,0.1},
["sparewheel"] = {"Spare Wheel","Spare Wheel",function(args) return gen("Spare Wheel") end,0.1},

Quasar Inventory Support

Quasar Inventory support is built into the resource. To start, head to the config.lua file and enable Quasar Inventory support within the resource.

We've done the rest for you and ensured that our Quasar Inventory support works for QBCore or ESX servers, so make sure you've also enabled QBCore or ESX within the config.lua file.

['carjack'] = {
    name = 'carjack',
    label = 'Car Jack',
    weight = 5,
    type = 'item',
    unique = true,
    useable = false,
    description = 'Car Jack',
},

['sparewheel'] = {
    name = 'sparewheel',
    label = 'Spare Wheel',
    weight = 5,
    type = 'item',
    unique = true,
    useable = false,
    description = 'Spare Wheel',
},

Core Inventory Support

Configure the items as necessary for core inventory

Last updated

Was this helpful?