Item setup
Paste the matching snippet into your items file. Copy PNGs from [INSTALL]/images/ 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.
Usable items are pumpkin_basket and rotten_casket. Use is registered with bridge.framework.registerItemUse. Do not add server.export on ox_inventory items.
Add to ox_inventory/data/items.lua:
['event_token'] = {
label = 'Event Token',
weight = 1,
},
['candy_corn'] = {
label = 'Candy Corn',
weight = 1,
},
['chocolate_bar'] = {
label = 'Chocolate Bar',
weight = 1,
},
['pumpkin_basket'] = {
label = 'Pumpkin Basket',
weight = 1,
},
['rotten_casket'] = {
label = 'Rotten Casket',
weight = 1,
},If you use ox_inventory and pengu_digiscanner, also add to ox_inventory/data/weapons.lua (or your weapons file):
['WEAPON_DIGISCANNER'] = {
label = 'DigiScanner',
weight = 227,
durability = 0.1,
},Grave and rotten-casket loot can also grant id_card. Register that item if you do not already have it. Shop prices are event_token counts, not cash.