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 InventoryAfter:
exports('InspectInventory', Inventory.InspectInventory)
exports('GetDrops', function()
return Inventory.Drops
end)
return InventoryQB 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.
Last updated