Hello everyone, I would like to incorporate OX Inventory into my job system.
But unfortunately it doesn’t work
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)