im not a dev, but i have tried and i can not get it working the stash part that is, if someone could help that would be amazing <3
Read these
Yours will look something like this
local QBCore = exports['qb-core']:GetCoreObject()
local PlayerJob = QBCore.Functions.GetPlayerData().job
RegisterNetEvent('qb-bossmenu:client:Stash', function()
TriggerServerEvent('inventory:server:OpenInventory', 'stash', 'boss_' .. PlayerJob.name, {
maxweight = 4000000,
slots = 25,
})
TriggerEvent('inventory:client:SetCurrentStash', 'boss_' .. PlayerJob.name)
end)
Read docs and it should be somewhat like this.
Client Side
RegisterNetEvent('qb-bossmenu:client:Stash', function()
TriggerServerEvent('qb-bossmenu:client:RegStash')
exports.ox_inventory:openInventory('stash', {
maxweight = 4000000,
slots = 25,
})
end)
Remember you need to register stash server side before you can open a stash as said in docs
This wont work as intended but just a little something for you how to register a stash
thankyou man, im going to have ago at it today
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.