---@diagnostic disable: duplicate-set-field -----------------For support, scripts, and more---------------- --------------- https://discord.gg/wasabiscripts ------------- --------------------------------------------------------------- -- Use this file to add support for another inventory by simply copying the file and replacing the logic within the functions local found = GetResourceState('ox_inventory') if found ~= 'started' and found ~= 'starting' then return end WSB.inventorySystem = 'ox_inventory' WSB.inventory = {} function WSB.inventory.openPlayerInventory(targetId) exports.ox_inventory:openInventory('player', targetId) end function WSB.inventory.openStash(data) -- data = {name = name, unique = true, maxWeight = maxWeight, slots = slots} exports.ox_inventory:openInventory('stash', data.name) end function WSB.inventory.openShop(data) --[[ For security, you need to register shops on the server side using server only event 'wasabi_bridge:registerShop' see server.lua of this inventory for more information ]] exports.ox_inventory:openInventory('shop', { type = data.identifier, id = 1 }) end