RQ-Dogs
  • DOCUMENTATION
    • Welcome
    • Commands
    • Common Issues
    • Inventory Setup
  • 🐶Script Configuration
    • Framework Configuration
    • Dog Access Configuration
    • Notification Configuration
    • Tracking Configuration
    • Searching Configuration
    • Ped Configuration
    • GPS Configuration
    • Miscellaneous Configuration
    • Vehicle Configuration
Powered by GitBook
On this page
  • OX Inventory
  • QB Inventory
  • QB Inventory (Old version)
  1. DOCUMENTATION

Inventory Setup

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

OX Inventory

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

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

Before:

exports('InspectInventory', Inventory.InspectInventory)

return Inventory

After:

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:

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:

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.

PreviousCommon IssuesNextFramework Configuration

Last updated 5 months ago