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.


1. ox_inventory Configuration

For ox_inventory, you need to add the following configuration in your ox_inventory/data/items.lua file.

	["laptop"] = {
		label = "Laptop",
		weight = 10,
		stack = false,
		close = true,
		description = "Laptop.",
		client = {
			export = "kartik-laptop.openLaptopUI",
		}
	},

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

weapons.lua

		['WEAPON_DIGISCANNER'] = {
			label = 'Digiscanner',
			weight = 1500,
			durability = 0.075,
		},

2. qb-inventory Configuration

For qb-inventory, add the following configurations in your qb-core/shared/items.lua file.

boosting_laptop = {
    name = 'laptop',
    label = 'aptop',
    weight = 10,
    type = 'item',
    image = 'laptop.png',
    unique = true,
    shouldClose = true,
    description = 'A laptop.',
},

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 = '',
},

Each item is set as unique and has its own image file, ensuring they are displayed correctly in the inventory.


Last updated