20 lines
652 B
Lua
20 lines
652 B
Lua
if Config.Inventory ~= 'ox_inventory' then
|
|
return
|
|
end
|
|
|
|
local ox_inventory = exports.ox_inventory
|
|
|
|
function openStash(customData, uniq)
|
|
local data = customData or Config.DefaultStashData
|
|
uniq = uniq or currentlyInGarage
|
|
uniq = uniq:gsub('-', '_')
|
|
uniq = uniq:gsub('-', '_')
|
|
local maxweight = data.maxweight or 10000
|
|
local slot = data.slots or 30
|
|
if ox_inventory:openInventory('stash', uniq) == false then
|
|
TriggerServerEvent('garages:ox:registerStash', uniq, slot, maxweight)
|
|
ox_inventory:openInventory('stash', uniq)
|
|
Debug('Ox Stash', 'Registering new stash', uniq)
|
|
end
|
|
end
|