Create the SCBA Item for ox_inventory

This guide explains how to create and configure the SCBA item for ox_inventory so players can equip/remove the SCBA directly from their inventory.


1. Configure the SCBA ItemName in config.lua

In r_scba, open:

  • r_scba/config.lua

Find your EUP SCBA entry and set the new option:

ItemName = 'scba'
triangle-exclamation

2. Create the item in ox_inventory/data/items.lua

Open:

  • ox_inventory/data/items.lua

Add this item definition:

['scba'] = {
    label = 'MSA G1 SCBA',
    weight = 10000,
    stack = false,
    consume = 0,
    client = {
        export = 'r_scba.SetSCBA'
    }
},

What each value means

  • label: Display name shown in the inventory

  • weight: Item weight (example: 10000 = 10kg depending on your setup)

  • stack = false: Prevents stacking multiple SCBAs in one slot (recommended)

  • consume = 0: The item is not consumed on use (recommended)

  • client.export: Calls the client export r_scba.SetSCBA when using the item

3. Add the SCBA image (icon) for ox_inventory

ox_inventory loads item images from:

You already have the SCBA icon here:

Copy the file

Move or copy:

into:

The file name must match the item name (scba).


4. Restart and test

After saving changes:

  1. Restart the server

  2. Give yourself the item:

    • Use your admin menu / inventory give command (depends on your setup)

Then:

  • Use the item in ox_inventory → SCBA equips

  • Use it again → SCBA removes (depending on your system logic)

Last updated