> For the complete documentation index, see [llms.txt](https://acestudios.gitbook.io/docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://acestudios.gitbook.io/docs/inventory-and-items/advanced-multipacks/adding-bags.md).

# Adding Your Own Bags

Add your own bags and generate the ox\_inventory item data automatically.

Advanced MultiPacks can generate the ox\_inventory `items.lua` entries for you.

{% stepper %}
{% step %}

### Stream your bag clothing

Make sure your bag model is streamed and you know its **drawable** and **texture** numbers for component `5` (bags) on both freemode peds.
{% endstep %}

{% step %}

### Add the bag to `config.lua`

```lua
['mybag'] = {
    label = 'My Bag',
    slots = 10,
    weight = 10000,
    MaleComponent = { componentid = 5, drawable = 130, texture = 0 },
    FemaleComponent = { componentid = 5, drawable = 130, texture = 0 },
    disallowedItems = { GetList.largeWeapons }
},
```

`disallowedItems` / `onlyAllowedItems` are optional. See [Configuration](/docs/inventory-and-items/advanced-multipacks/configuration.md#bags).
{% endstep %}

{% step %}

### Turn on the generator

In `config.lua`, check that `ExportItemList = true`. Also set `GenerateShopData = true` if you want shop entries.
{% endstep %}

{% step %}

### Restart the resource

Restart `ace_advanced_multipacks` and look for this message in the **server console**:

```
✅ Items.lua data exported
```

{% endstep %}

{% step %}

### Copy the generated data

* Copy the new entry from `inv-data.txt` into `ox_inventory/data/items.lua`.
* Optionally copy the new line from `shop-data.txt` into `ox_inventory/data/shops.lua`.
* Add a `mybag.png` image to `ox_inventory/web/images/`.
  {% endstep %}

{% step %}

### Restart the server

{% endstep %}
{% endstepper %}

{% hint style="info" %}
The item export follows the pattern `ace_advanced_multipacks.aceopenpack_<itemname>`. The generator writes it for you.
{% endhint %}
