# 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:

```lua
ItemName = 'scba'
```

{% hint style="danger" %}
**Important:** This value **must match** the item name you will define in ox\_inventory.
{% endhint %}

***

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

Open:

* `ox_inventory/data/items.lua`

Add this item definition:

```lua
['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:

```
ox_inventory/web/images/
```

You already have the SCBA icon here:

```
r_scba/scba.png
```

#### Copy the file

Move or copy:

```
r_scba/scba.png
```

into:

```
ox_inventory/web/images/scba.png
```

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)


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.rytrak.fr/scripts/firefighter-scba-system/create-the-scba-item-for-ox_inventory.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
