LC-Development
  • 👋Welcome to HapticCode
  • 📚Library
    • 🖥️Haptic-Lib
      • 🔧 Config
      • 📙 Usage
      • 🤝Client Functions
        • Blips
        • Items
        • Notify
        • Target
        • Peds
      • 💻Server Functions
        • Items
        • Jobs
        • Money Functions
        • Notify
  • 😇Remastered Scripts
    • 🛒 LC-Businesses
      • 🎯Job Blips
      • 💼 Duty Locations
      • ❄️ Fridges
        • Fridge Shops
        • Fridge Stashs
        • Final Step
      • 📥 Trays
      • 🍔 Drink/Fryer/Grill/Pack
      • 📦Shared Employee Stash
      • 📦Private Employee Stash
      • 📦Table Stashs
      • 🪑 Chairs
      • 💃 NPC Dancers/Strippers
      • 🎧 DJ Booths
      • 💰Cash Registers
      • 🧑Custom Animations
      • 🍔Consumables
    • 🏛️LC-Cityhall
      • 📝Config
      • 💳Licenses
  • Haptic
    • 😷 Haptic-Gangs
      • 🔧 Initial Config
      • 📚 Zone Configuration
      • 💊Drug Dealing
        • 💊 Zone Based Dealing
      • 💀Death Tracker
      • 💻Exports
      • 📝 Integrations
        • 🚑 QB-AmbulanceJob
        • 💎 QB-Jewellery
        • 💵 QB-StoreRobbery
        • 💦Rcore Integration
      • 🏗️Common Issues
    • 🔫Haptic-Ammunation
      • 📝Config
    • 💊Haptic-DrugEffects
Powered by GitBook
On this page
  1. Remastered Scripts
  2. 🛒 LC-Businesses

📦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)
Previous📦Shared Employee StashNext📦Table Stashs

Last updated 1 year ago

😇