QB Inventory
For servers using qb-inventory (or qb-core), you need to define the MDT items in your qb-core/shared/items.lua file.
Simply copy and paste the following item definitions into your items table:
['mdt'] = {
name = 'mdt',
label = 'Mobile Data Terminal',
weight = 250,
type = 'item',
image = 'mdt.png',
unique = false,
useable = true,
shouldClose = true,
combinable = nil,
description = ''
},
['dispatch'] = {
name = 'dispatch',
label = 'Dispatch',
weight = 250,
type = 'item',
image = 'dispatch.png',
unique = false,
useable = true,
shouldClose = true,
combinable = nil,
description = ''
},
['bodycam'] = {
name = 'bodycam',
label = 'Bodycam',
weight = 250,
type = 'item',
image = 'bodycam.png',
unique = false,
useable = true,
shouldClose = true,
combinable = nil,
description = ''
},
['tracker'] = {
name = 'tracker',
label = 'Tracker',
weight = 100,
type = 'item',
image = 'tracker.png',
unique = false,
useable = true,
shouldClose = true,
combinable = nil,
description = 'The app that lets you track the whereabouts of your fellow mates.'
},🖼️ Item Images
Make sure to place your item image files (e.g. mdt.png, dispatch.png, bodycam.png, and tracker.png) inside your inventory resource’s html/images folder (typically qb-inventory/html/images/ or ps-inventory/html/images/) so they render properly in player inventories.