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

16 lines
554 B
Lua

if Config.Inventory ~= 'codem-inventory' then
return
end
function openStash(customData, uniq)
local data = customData or Config.DefaultStashData
uniq = uniq or currentlyInGarage
uniq = tostring(uniq or 'garage'):gsub('-', '_')
local name = 'stash_' .. uniq
local maxweight = data.maxweight or 10000
local slots = data.slots or 30
print('[INFO] Open stash CodeM:', name, 'MaxWeight:', maxweight, 'Slots:', slots)
TriggerServerEvent('codem-inventory:server:openstash', name, slots, maxweight, name)
end