12 lines
424 B
Lua
12 lines
424 B
Lua
if Config.Inventory ~= 'inventory' then
|
|
return
|
|
end
|
|
|
|
function openStash(customData, uniq)
|
|
local data = customData or Config.DefaultStashData
|
|
uniq = uniq or currentlyInGarage
|
|
uniq = uniq:gsub('-', '_')
|
|
local maxweight = data.maxweight or 10000
|
|
TriggerEvent('inventory:openInventory', { type = 'stash', id = uniq, title = 'Stash_' .. uniq, weight = maxweight, delay = 100, save = true })
|
|
end
|