Items
In this section, we’ll guide you through configuring the Kartik-Boosting items for three different inventory systems: ox_inventory and qb-inventory. Below are the item configurations you’ll need to add to your server to enable the Boosting items in your inventory system.
Lua For Itmes
For ox_inventory, you need to add the following configuration in your ox_inventory/data/items.lua file.
['door'] = {
label = 'Vehicle Door',
description = '',
weight = 500,
stack = false,
},
['hood'] = {
label = 'Vehicle Hood',
description = '',
weight = 500,
stack = false,
},
['trunk'] = {
label = 'Vehicle Trunk',
description = '',
weight = 500,
stack = false,
},
['wheel'] = {
label = 'Vehicle Wheel',
description = '',
weight = 500,
stack = false,
},
['battery'] = {
label = 'Vehicle Battery',
description = '',
weight = 500,
stack = false,
},
['exhaust'] = {
label = 'Vehicle Exhaust',
description = '',
weight = 500,
stack = false,
},
['saw'] = {
label = 'Saw',
description = '',
weight = 500,
stack = false,
},For qb-inventory, add the following configurations in your qb-core/shared/items.lua file.
door = {
name = 'door',
label = 'Vehicle Door',
weight = 500,
type = 'item',
image = 'door.png',
unique = true,
shouldClose = true,
description = '',
},
hood = {
name = 'hood',
label = 'Vehicle Hood',
weight = 500,
type = 'item',
image = 'hood.png',
unique = true,
shouldClose = true,
description = '',
},
trunk = {
name = 'trunk',
label = 'Vehicle Trunk',
weight = 500,
type = 'item',
image = 'trunk.png',
unique = true,
shouldClose = true,
description = '',
},
wheel = {
name = 'wheel',
label = 'Vehicle Wheel',
weight = 500,
type = 'item',
image = 'wheel.png',
unique = true,
shouldClose = true,
description = '',
},
battery = {
name = 'battery',
label = 'Vehicle Battery',
weight = 500,
type = 'item',
image = 'battery.png',
unique = true,
shouldClose = true,
description = '',
},
exhaust = {
name = 'exhaust',
label = 'Vehicle Exhaust',
weight = 500,
type = 'item',
image = 'exhaust.png',
unique = true,
shouldClose = true,
description = '',
},
saw = {
name = 'saw',
label = 'Saw',
weight = 500,
type = 'item',
image = 'saw.png',
unique = true,
shouldClose = true,
description = '',
},Lua For Weapons
For ox_inventory, you need to add the following configuration in your ox_inventory/data/items.lua file.
['WEAPON_DIGISCANNER'] = {
label = 'Digital Scanner',
weight = 125,
durability = 0.1,
},For qb-inventory, add the following configurations in your qb-core/shared/items.lua file.
weapon_digiscanner = {
name = 'weapon_digiscanner',
label = 'Digital Scanner',
weight = 1000,
type = 'weapon',
ammotype = nil,
image = 'weapon_digiscanner',
unique = true,
useable = true,
description = ''
},For qb-inventory, add the following configurations in your qb-core/shared/weapons.lua file.
[`weapon_digiscanner`] = {
name = 'weapon_digiscanner',
label = 'Digital Scanner',
weapontype = 'Melee',
ammotype = nil,
damagereason = ''
},Last updated