Item setup
Required items (must match Config.PlaceableMats keys):
| Item | Label | Model |
|---|---|---|
yoga_mat | Grey Yoga Mat | prop_yoga_mat_02 |
yoga_mat_blue | Blue Yoga Mat | prop_yoga_mat_01 |
yoga_mat_red | Red Yoga Mat | prop_yoga_mat_03 |
Copy PNGs from [INSTALL]/imgs/ 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 PNGs in that folder.
⚠️
Do not add server.export on ox_inventory items. Use is registered with bridge.framework.registerItemUse. Omit consume on the item defs.
Add to ox_inventory/data/items.lua:
['yoga_mat'] = {
label = 'Grey Yoga Mat',
weight = 500,
stack = false,
close = true,
description = 'A rolled grey yoga mat. Use to lay it out on the ground.',
},
['yoga_mat_blue'] = {
label = 'Blue Yoga Mat',
weight = 500,
stack = false,
close = true,
description = 'A rolled blue yoga mat. Use to lay it out on the ground.',
},
['yoga_mat_red'] = {
label = 'Red Yoga Mat',
weight = 500,
stack = false,
close = true,
description = 'A rolled red yoga mat. Use to lay it out on the ground.',
},