Item List#
Item | Label | Weight | Machine |
|---|---|---|---|
| Water | 500 | Drink Machine, Drink Fridge, Water Dispenser |
| Cola | 350 |

Documentation
Configure the items used by the script and integrate them with your inventory system.
Item | Label | Weight | Machine |
|---|---|---|---|
| Water | 500 | Drink Machine, Drink Fridge, Water Dispenser |
| Cola | 350 |
Drink Machine, Drink Fridge |
| Orange Soda | 350 | Drink Machine |
| Energy Drink | 350 | Drink Machine, Sprunk Machine |
| Beer | 500 | Drink Fridge |
| Sprunk | 350 | Sprunk Machine |
| Lime Soda | 350 | Sprunk Machine |
| Chips | 100 | Snack Machine |
| Chocolate | 100 | Snack Machine |
| Nuts | 100 | Snack Machine |
| Candy | 50 | Snack Machine |
| Cookies | 150 | Snack Machine 2 |
| Donut | 150 | Snack Machine 2 |
| Cupcake | 150 | Snack Machine 2 |
| Coffee | 200 | Coffee Machine |
| Espresso | 150 | Coffee Machine |
| Cappuccino | 200 | Coffee Machine |
| Lockpick | 100 | Robbery ( |
Framework | Inventory | File |
|---|---|---|
Any |
|
|
QBCore |
|
|
QBox |
|
|
ESX |
| The |
On ESX, qs-inventory reads the item list from the items table, so an item missing there cannot be carried — no matter what qs-inventory/shared/items.lua says.
Import [sql]/items_esx.sql, or run:
INSERT IGNORE INTO `items` (`name`, `label`, `weight`, `rare`, `can_remove`) VALUES
('water_bottle', 'Water', 1, 0, 1),
('cola', 'Cola', 1, 0, 1),
('orange_soda', 'Orange Soda', 1, 0, 1),
('energy_drink', 'Energy Drink', 1, 0, 1),
('beer', 'Beer', 1, 0, 1),
('sprunk', 'Sprunk', 1, 0, 1),
('lime_soda', 'Lime Soda', 1, 0, 1),
('chips', 'Chips', 1, 0, 1),
('chocolate', 'Chocolate', 1, 0, 1),
('nuts', 'Nuts', 1, 0, 1),
('candy', 'Candy', 1, 0, 1),
('cookies', 'Cookies', 1, 0, 1),
('donut', 'Donut', 1, 0, 1),
('cupcake', 'Cupcake', 1, 0, 1),
('coffee', 'Coffee', 1, 0, 1),
('espresso', 'Espresso', 1, 0, 1),
('cappuccino', 'Cappuccino', 1, 0, 1),
('lockpick', 'Lockpick', 1, 0, 1);The ESX items table has no image column, so the management panel falls back to default.png. It does not affect buying or stock.
Add the following to ox_inventory/data/items.lua:
['water_bottle'] = { label = 'Water', weight = 500, client = { status = { thirst = 200000 }, usetime = 2500 } },
['cola'] = { label = 'Cola', weight = 350, client = { status = { thirst = 200000 }, usetime = 2500 } },
['orange_soda'] = { label = 'Orange Soda', weight = 350, client = { status = { thirst = 180000 }, usetime = 2500 } },
['energy_drink'] = { label = 'Energy Drink', weight = 350, client = { status = { thirst = 150000 }, usetime = 2500 } },
['beer'] = { label = 'Beer', weight = 500, client = { status = { thirst = 150000 }, usetime = 3000 } },
['sprunk'] = { label = 'Sprunk', weight = 350, client = { status = { thirst = 200000 }, usetime = 2500 } },
['lime_soda'] = { label = 'Lime Soda', weight = 350, client = { status = { thirst = 180000 }, usetime = 2500 } },
['chips'] = { label = 'Chips', weight = 100, client = { status = { hunger = 150000 }, usetime = 2500 } },
['chocolate'] = { label = 'Chocolate', weight = 100, client = { status = { hunger = 150000 }, usetime = 2500 } },
['nuts'] = { label = 'Nuts', weight = 100, client = { status = { hunger = 120000 }, usetime = 2500 } },
['candy'] = { label = 'Candy', weight = 50, client = { status = { hunger = 100000 }, usetime = 2000 } },
['cookies'] = { label = 'Cookies', weight = 150, client = { status = { hunger = 180000 }, usetime = 2500 } },
['donut'] = { label = 'Donut', weight = 150, client = { status = { hunger = 180000 }, usetime = 2500 } },
['cupcake'] = { label = 'Cupcake', weight = 150, client = { status = { hunger = 180000 }, usetime = 2500 } },
['coffee'] = { label = 'Coffee', weight = 200, client = { status = { thirst = 150000 }, usetime = 3000 } },
['espresso'] = { label = 'Espresso', weight = 150, client = { status = { thirst = 120000 }, usetime = 2500 } },
['cappuccino'] = { label = 'Cappuccino', weight = 200, client = { status = { thirst = 150000 }, usetime = 3000 } },
['lockpick'] = { label = 'Lockpick', weight = 100 },For the eating and drinking animation, add anim and prop inside client, the same way ox_inventory's own data/items.lua does for water and burger.
Add the following to qb-core/shared/items.lua (on QBox: qs-inventory/shared/items.lua):
['water_bottle'] = { name = 'water_bottle', label = 'Water', weight = 500, type = 'item', image = 'water_bottle.png', unique = false, useable = true, shouldClose = true, description = 'Bottle of fresh water' },
['cola'] = { name = 'cola', label = 'Cola', weight = 350, type = 'item', image = 'cola.png', unique = false, useable = true, shouldClose = true, description = 'A cold cola' },
['orange_soda'] = { name = 'orange_soda', label = 'Orange Soda', weight = 350, type = 'item', image = 'orange_soda.png', unique = false, useable = true, shouldClose = true, description = 'Orange flavoured soda' },
['energy_drink'] = { name = 'energy_drink', label = 'Energy Drink', weight = 350, type = 'item', image = 'energy_drink.png', unique = false, useable = true, shouldClose = true, description = 'Wings not included' },
['beer'] = { name = 'beer', label = 'Beer', weight = 500, type = 'item', image = 'beer.png', unique = false, useable = true, shouldClose = true, description = 'A cold one' },
['sprunk'] = { name = 'sprunk', label = 'Sprunk', weight = 350, type = 'item', image = 'sprunk.png', unique = false, useable = true, shouldClose = true, description = 'The refreshing choice' },
['lime_soda'] = { name = 'lime_soda', label = 'Lime Soda', weight = 350, type = 'item', image = 'lime_soda.png', unique = false, useable = true, shouldClose = true, description = 'Lime flavoured soda' },
['chips'] = { name = 'chips', label = 'Chips', weight = 100, type = 'item', image = 'chips.png', unique = false, useable = true, shouldClose = true, description = 'A bag of chips' },
['chocolate'] = { name = 'chocolate', label = 'Chocolate', weight = 100, type = 'item', image = 'chocolate.png', unique = false, useable = true, shouldClose = true, description = 'A chocolate bar' },
['nuts'] = { name = 'nuts', label = 'Nuts', weight = 100, type = 'item', image = 'nuts.png', unique = false, useable = true, shouldClose = true, description = 'A bag of salted nuts' },
['candy'] = { name = 'candy', label = 'Candy', weight = 50, type = 'item', image = 'candy.png', unique = false, useable = true, shouldClose = true, description = 'Sweet candy' },
['cookies'] = { name = 'cookies', label = 'Cookies', weight = 150, type = 'item', image = 'cookies.png', unique = false, useable = true, shouldClose = true, description = 'Freshly baked cookies' },
['donut'] = { name = 'donut', label = 'Donut', weight = 150, type = 'item', image = 'donut.png', unique = false, useable = true, shouldClose = true, description = 'Cops love them' },
['cupcake'] = { name = 'cupcake', label = 'Cupcake', weight = 150, type = 'item', image = 'cupcake.png', unique = false, useable = true, shouldClose = true, description = 'A sweet cupcake' },
['coffee'] = { name = 'coffee', label = 'Coffee', weight = 200, type = 'item', image = 'coffee.png', unique = false, useable = true, shouldClose = true, description = 'Hot coffee' },
['espresso'] = { name = 'espresso', label = 'Espresso', weight = 150, type = 'item', image = 'espresso.png', unique = false, useable = true, shouldClose = true, description = 'Short and strong' },
['cappuccino'] = { name = 'cappuccino', label = 'Cappuccino', weight = 200, type = 'item', image = 'cappuccino.png', unique = false, useable = true, shouldClose = true, description = 'Coffee with milk foam' },
['lockpick'] = { name = 'lockpick', label = 'Lockpick', weight = 100, type = 'item', image = 'lockpick.png', unique = false, useable = true, shouldClose = true, description = 'Opens what is not yours' },useable = true only makes the item usable — the actual effect is registered by your own consumables script.
Copy the icons from [img]/ into your inventory's image folder:
Inventory | Folder |
|---|---|
|
|
|
|
|
|
[img]/expresso.pngis misspelled. Rename it toespresso.pngor the item will show the default icon.
beer,lime_sodaandlockpickare not included — most servers already have them.
Edit Config.MachineTypes. item is the inventory name, label and price are only starting values (owners reprice from the management panel), and prop is just the object held during the buying animation:
{ item = 'water', label = 'Water', price = 5, prop = 'prop_ld_can_01' },Machines that are already placed keep their products in the database, so editing the config does not update them — edit those from the creator instead.