Item setup
Paste the matching snippet into your items file. Copy item PNGs into:
| Inventory | Image folder |
|---|---|
| ox_inventory | ox_inventory/web/images/ |
| qb-inventory / ps-inventory | html/images/ |
| one_inventory | one_inventory/web/images/ |
OX is ox_inventory (ESX and Qbox that run ox use this tab). QB is qb-core/shared/items.lua. one_inventory only needs the PNG in that folder.
These items are not usable. [INSTALL]/ does not ship framework item files — only images.
Add to ox_inventory/data/items.lua:
['apple'] = {
label = 'Apple',
weight = 1,
},
['pineapple'] = {
label = 'Pineapple',
weight = 1,
},
['lettuce'] = {
label = 'Lettuce',
weight = 1,
},Market shopItems values are a bare number (bank price per unit), not { price = number }. Payout is bank via the bridge — do not add a money item for this script.