16 lines
475 B
Lua
16 lines
475 B
Lua
if Config.Inventory ~= 'ps-inventory' then
|
|
return
|
|
end
|
|
|
|
function openStash(customData, uniq)
|
|
local data = customData or Config.DefaultStashData
|
|
uniq = uniq or currentlyInGarage
|
|
uniq = uniq:gsub('-', '_')
|
|
TriggerServerEvent('inventory:server:OpenInventory', 'stash', uniq, data)
|
|
TriggerEvent('inventory:client:SetCurrentStash', uniq)
|
|
end
|
|
|
|
RegisterNetEvent('inventory:client:SetCurrentStash', function(stash)
|
|
CurrentStash = stash
|
|
end)
|