---
description: >-
  The following basic changes are required to be made to your inventory resource
  to add compatibility with rq-dogs.
---

# Inventory Setup

## OX Inventory

The following block of code must be added to the bottom of the `modules/inventory/server.lua` file, before the final line.

```lua
exports('GetDrops', function()
    return Inventory.Drops
end)
```

**Before:**

```lua
exports('InspectInventory', Inventory.InspectInventory)

return Inventory
```

**After**:

```lua
exports('InspectInventory', Inventory.InspectInventory)

exports('GetDrops', function()
    return Inventory.Drops
end)

return Inventory
```

## QB Inventory

The following block of code must be added to the very bottom of the `server/main.lua` file:

```lua
exports('GetDogsData', function()
    return { inventories = Inventories, drops = Drops }
end)
```

### QB Inventory (Old version)

For 1.X.X versions of QB Inventory prior to the May 2024 2.0 update, the following block of code must be added to the very bottom of the `server/main.lua` file:

```lua
exports('GetDogsData', function()
    return { gloveboxes = Gloveboxes, trunks = Trunks, drops = Drops }
end)
```

You must also set `Shared.UseOldQBInventory` to `true` in `shared/sh_main.lua` in RQ-Dogs.
