Installation w/Renewed-Buisnesses
ox_inventory:closeInventoryox_inventory/modules/inventory/server.lua RegisterServerEvent('ox_inventory:closeInventory', function()
local inventory = Inventories[source]
if inventory?.open then
local secondary = Inventories[inventory.open]
if secondary then
if not TriggerEventHooks('closeInventory', {
source = source,
changed = secondary.changed,
toInventory = secondary.id,
fromInventory = inventory,
items = secondary.items,
stashid = secondary.dbId
}) then return false end
secondary:closeInventory()
end
inventory:closeInventory(true)
end
end)Last updated