📦Private Employee Stash

To setup a private stash for your employees you can create new stashes here.

-- Shared Between Employees

-- If you have numerous for the same job the items will be shared across
Config.EmployeeStash = {
    [1] = {
        uniqueid = "bsestash1", -- Make sure this is unique or you will be cross sharing stashes and targets (This is a unique identifier used by QB-Core)
        job = "taxi",
        maxweight = 50000,
        slots = 50,
        stashlabel = "Employee Stash",
        target_label = "Employee Stash",
        target_icon = "far fa-clipboard",
	location = vector3(-1196.1, -902.27, 13.89),
        width = 2,
        depth = 1,
        heading = 216.61,
        minz = 13.6,
        maxz = 14.0,
        distance = 2,
    }
}

For those note on QB-Inventory (Latest Version)

You will need to edit the function in HapticLib/server/functions/stash.lua

RegisterServerEvent("HapticLib:Server:EmployeeStash")
RegisterNetEvent('HapticLib:Server:EmployeeStash', function(id, slots, weight, label)
	local src = source
	local Player = QBCore.Functions.GetPlayer(src)
	local cid = Player.PlayerData.citizenid
	local stashid = id .. "_" .. cid
	local datas = { label = label, maxweight = weight, slots = slots }
	exports['qb-inventory']:OpenInventory(source, stashid, datas)
end)

Last updated