# Inventories

{% hint style="success" %}
For **ox\_inventory and origen\_inventory** we don't need to add/modify anything.
{% endhint %}

{% tabs %}
{% tab title="qb-inventory 2.x" %}

* Go to **qb-inventory/server/functions.lua** and add the following export right after function `InitializeInventory()`

```lua
exports('registerInventory', InitializeInventory)
```

* Should look *something* like this:

<figure><img src="https://1688068901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F9bCwnajAqpi3Viykb5Wi%2Fuploads%2Fov3PE5yr8TD1Uk6s0nPA%2Fimage.png?alt=media&#x26;token=3a815a54-c785-46d1-9d67-b348d757b3c7" alt=""><figcaption></figcaption></figure>

* Go to **qb-inventory/server/main.lua** and add the following code in **line 482** inside the '`qb-inventory:server:SetInventoryData'` event:

```lua
if toInventory:find('itemsrefund') then return end
```

* Should look *something* like this:

<figure><img src="https://1688068901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F9bCwnajAqpi3Viykb5Wi%2Fuploads%2FbFeKIDFbGHVF1FNimoX9%2Fimage.png?alt=media&#x26;token=d652db78-8d7c-42eb-b4d4-07b144aba3af" alt=""><figcaption></figcaption></figure>
{% endtab %}

{% tab title="qs-inventory" %}

* Go to **qs-inventory/server/custom/misc/SetInventoryData.lua** add the following code inside the `SetInventoryData` event:

```lua
if string.match(toInventory, "stash%-itemsrefund") then
    return
end
```

* Should look something like this:

<figure><img src="https://1688068901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F9bCwnajAqpi3Viykb5Wi%2Fuploads%2F88eu1B1qpzAcWugG9c3g%2Fimage.png?alt=media&#x26;token=b14ea757-27c3-427b-bb05-301ce70a48c0" alt=""><figcaption></figcaption></figure>
{% endtab %}

{% tab title="codem-inventory" %}

* Go to **codem-inventory/html/app.js** search the following text `(this.rightInventoryData.stashId)`
* Add this snippet right below that line:

```javascript
if (this.rightInventoryData.stashId.includes("itemsrefund")) return;
```

* Should look *something* like this:

<figure><img src="https://1688068901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F9bCwnajAqpi3Viykb5Wi%2Fuploads%2FEb8kmgcD0Fn4smKszrhi%2Fimage.png?alt=media&#x26;token=fbea5b07-8a01-44eb-8cbf-b684dbc0c242" alt=""><figcaption></figcaption></figure>
{% endtab %}
{% endtabs %}
