Server Editable
function deleteInventory(id)
if GetResourceState("tgiann-inventory") == "started" then
exports["tgiann-inventory"]:DeleteInventory("stash", "selftrorage" .. id)
end
end
function upgradeInventory(id, lvl)
if GetResourceState("tgiann-inventory") == "started" then
local Inv = exports["tgiann-inventory"]:GetInventory("selftrorage" .. id, "stash")
if not Inv then return end
local lvlData = config.stash[lvl]
Inv.Functions.UpdateInventoryData({
MaxWeight = lvlData.maxweight,
MaxSlots = lvlData.slots
})
end
end
function changePasswordInventory(id, password)
if GetResourceState("tgiann-inventory") == "started" then
local Inv = exports["tgiann-inventory"]:GetInventory("selftrorage" .. id, "stash")
if not Inv then return end
Inv.Functions.ChangePassword(password)
end
end
Last updated