forked from Simnation/Main
ed
This commit is contained in:
parent
31ae223a2a
commit
ee110f2a06
2 changed files with 76 additions and 27 deletions
|
@ -83,6 +83,15 @@ end
|
|||
|
||||
RegisterNetEvent("brutal_housing:qb-inventory:server:OpenInventory", function(job, data)
|
||||
local src = source
|
||||
|
||||
exports['qb-inventory']:OpenInventory(src, job, data)
|
||||
-- For stash inventories
|
||||
if job == "stash" then
|
||||
exports["tgiann-inventory"]:OpenInventory(src, "stash", data.id, {
|
||||
maxWeight = data.weight or 10000,
|
||||
slots = data.slots or 50,
|
||||
label = data.label or "Housing Stash"
|
||||
})
|
||||
-- For other inventory types
|
||||
else
|
||||
exports["tgiann-inventory"]:OpenInventory(src, job, data)
|
||||
end
|
||||
end)
|
Loading…
Add table
Add a link
Reference in a new issue