Request help with OX Inventory

Hello everyone, I would like to incorporate OX Inventory into my job system.

But unfortunately it doesn’t work :confused:
Would you have a solution?

Here is my client.lua:

function openStash(markerId)
    
    
    exports.ox_inventory:openInventory('stash',tostring(markerId))
    print(markerId)

end

Here is my server.lua :
I put them at the very bottom of the server.lua

local stash = {
    id = markerId,
    label = markerId,
    slots = 50,
    weight = 100000
    
}

AddEventHandler('onServerResourceStart', function(resourceName)
    if resourceName == 'ox_inventory' or resourceName == GetCurrentResourceName() then
        Wait(0)
        exports.ox_inventory:RegisterStash(stash.id, stash.label, stash.slots, stash.weight)
    end
end)

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.