Items Setup
Required Items
| Item Name | Label | Type | Description |
|---|---|---|---|
mechanictablet | Mechanic Tablet | Usable | Opens the mechanic tablet interface |
boosttablet | Boost Tablet | Usable | ECU flash tool for engine tuning |
lightcontroller | Light Controller | Usable | In-vehicle light customization device |
suspension | Suspension Kit | Usable | Suspension & wheel tuning tool |
nitro | Nitro | Usable | NOS boost for vehicles |
repairkit | Repair Kit | Usable | Vehicle repair tool |
cleaningcloth | Cleaning Cloth | Usable | Vehicle cleaning tool |
ox_inventory
Add to ox_inventory/data/items.lua:
lua
['mechanictablet'] = { label = 'Mechanic Tablet', weight = 500, stack = false, close = true },
['boosttablet'] = { label = 'Boost Tablet', weight = 300, stack = false, close = true },
['lightcontroller'] = { label = 'Light Controller', weight = 200, stack = false, close = true },
['suspension'] = { label = 'Suspension Kit', weight = 1000, stack = false, close = true },
['nitro'] = { label = 'Nitro', weight = 500, stack = true, close = true },
['repairkit'] = { label = 'Repair Kit', weight = 1000, stack = true, close = true },
['cleaningcloth'] = { label = 'Cleaning Cloth', weight = 100, stack = true, close = true },
QBCore
Add to qb-core/shared/items.lua:
lua
mechanictablet = { name = 'mechanictablet', label = 'Mechanic Tablet', weight = 500, type = 'item', image = 'mechanictablet.png', unique = true, useable = true, shouldClose = true },
boosttablet = { name = 'boosttablet', label = 'Boost Tablet', weight = 300, type = 'item', image = 'boosttablet.png', unique = true, useable = true, shouldClose = true },
lightcontroller = { name = 'lightcontroller', label = 'Light Controller', weight = 200, type = 'item', image = 'lightcontroller.png', unique = true, useable = true, shouldClose = true },
suspension = { name = 'suspension', label = 'Suspension Kit', weight = 1000, type = 'item', image = 'suspension.png', unique = true, useable = true, shouldClose = true },
nitro = { name = 'nitro', label = 'Nitro', weight = 500, type = 'item', image = 'nitro.png', unique = false, useable = true, shouldClose = true },
repairkit = { name = 'repairkit', label = 'Repair Kit', weight = 1000, type = 'item', image = 'repairkit.png', unique = false, useable = true, shouldClose = true },
cleaningcloth = { name = 'cleaningcloth', label = 'Cleaning Cloth', weight = 100, type = 'item', image = 'cleaningcloth.png', unique = false, useable = true, shouldClose = true },
ESX Legacy (SQL)
Run in your database:
sql
INSERT INTO `items` (`name`, `label`, `weight`) VALUES
('mechanictablet', 'Mechanic Tablet', 500),
('boosttablet', 'Boost Tablet', 300),
('lightcontroller', 'Light Controller', 200),
('suspension', 'Suspension Kit', 1000),
('nitro', 'Nitro', 500),
('repairkit', 'Repair Kit', 1000),
('cleaningcloth', 'Cleaning Cloth', 100)
ON DUPLICATE KEY UPDATE `label` = VALUES(`label`);
qs-inventory
Add to qs-inventory/shared/items.lua following the same pattern as ox_inventory above. Item fields are the same: name, label, weight, stack, close.
