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'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 = {
event = 'r_scba:client:useSCBA'
}
},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.event: Calls the client event
r_scba:client:useSCBAwhen using the item
3. Add the SCBA image
ox_inventory loads item images from:
You already have the icon here:
Copy it to:
Last updated