Items

Setup items for QBCore framework

If you are on QBCore framework and NOT using ox_inventory, add this to your qb-core > shared > items.lua:

['camera'] = {['name'] = 'camera', ['label'] = 'Camera', ['weight'] = 80, ['type'] = 'item', ['image'] = 'camera.png', ['unique'] = true, ['useable'] = true, ['shouldClose'] = true, ['combinable'] = nil, ['description'] = 'Private security camera'},
['tablet'] = {['name'] = 'tablet', ['label'] = 'Tablet', ['weight'] = 50, ['type'] = 'item', ['image'] = 'tablet.png', ['unique'] = true, ['useable'] = true, ['shouldClose'] = true, ['combinable'] = nil, ['description'] = 'Tablet for security cameras'},
['hackdevice'] = {['name'] = 'hackdevice', ['label'] = 'Hack Device', ['weight'] = 20, ['type'] = 'item', ['image'] = 'hackdevice.png', ['unique'] = true, ['useable'] = true, ['shouldClose'] = true, ['combinable'] = nil, ['description'] = 'Device for hacking cameras'},

ox_inventory

If you are using ox_inventory, add this to your ox_inventory > data > items.lua:

['camera'] = {
	label = 'Camera',
	weight = 80,
	stack = false
},
['tablet'] = {
	label = 'Tablet',
	weight = 50,
	stack = false
},
['hackdevice'] = {
	label = 'Hack Device',
	weight = 20,
	stack = false
}

You can change item names in config.lua

Items images:

Last updated