Editable files
Client Editable.lua
RegisterNetEvent('tgiann-self-storage:open')
AddEventHandler('tgiann-self-storage:open', function(index)
local name = "selftrorage"..index
if config.framework == "qb" then
TriggerEvent("inventory:client:SetCurrentStash", name, tgiCore.core.Key)
TriggerServerEvent("inventory:server:OpenInventory", "stash", name, config.storages[index].stash)
elseif config.framework == "esx" then
local ox_inventory = exports.ox_inventory
if ox_inventory:openInventory('stash', name) == false then
TriggerServerEvent('tgiann-self-storage:oxStash', name, config.storages[index].stash)
ox_inventory:openInventory('stash', name)
end
end
end)
Last updated