Item setup

Required items (must match Config.PlaceableMats keys):

ItemLabelModel
yoga_matGrey Yoga Matprop_yoga_mat_02
yoga_mat_blueBlue Yoga Matprop_yoga_mat_01
yoga_mat_redRed Yoga Matprop_yoga_mat_03

Copy PNGs from [INSTALL]/imgs/ into:

InventoryImage folder
ox_inventoryox_inventory/web/images/
qb-inventory / ps-inventoryhtml/images/
one_inventoryone_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.',
},