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

14 lines
534 B
Lua

if Config.Inventory ~= 'qb-inventory' then
return
end
function openStash(customData, uniq)
local data = customData or Config.DefaultStashData
uniq = uniq or currentlyInGarage
uniq = uniq:gsub('-', '_')
-- if you use old qb-inventory version, uncomment here and remove 'housing:openStash' trigger.
-- TriggerServerEvent('inventory:server:OpenInventory', 'stash', uniq, data)
-- TriggerEvent('inventory:client:SetCurrentStash', uniq)
TriggerServerEvent('garages:openStash', uniq, data)
end