2026-04-14 17:41:39 +02:00

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