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

๐Ÿ“ฅ Trays

Setting up trays for everyone to access is extremely easy. Just make sure that the ID is unique (this will be linked to targeting and stash)

Config.Trays = {
    ["1"] = {	id = "bs_tray1", location = vector3(-1196.95, -892.66, 13.98), width = 0.5, depth = 0.5, heading = 348.85, minz = 13.8, maxz = 14.2, distance = 1, icon = "far fa-clipboard", label = "Open Tray", maxweight = 10000, slots = 50, stash_label = "Tray"}, 
    ["2"] = {	id = "bs_tray2", location = vector3(-1194.9, -893.39, 14.01), width = 0.5, depth = 0.5, heading = 348.85, minz = 13.8, maxz = 14.2, distance = 1, icon = "far fa-clipboard", label = "Open Tray",maxweight = 10000, slots = 50, stash_label = "Tray"},
    ["3"] = {	id = "bs_tray3", location = vector3(-1192.83, -893.83, 13.98), width = 0.5, depth = 0.5, heading = 348.85, minz = 13.8, maxz = 14.2, distance = 1, icon = "far fa-clipboard", label = "Open Tray",maxweight = 10000, slots = 50, stash_label = "Tray"},
    ["4"] = {	id = "bs_tray4", location = vector3(-1190.87, -894.34, 13.98), width = 0.5, depth = 0.5, heading = 348.85, minz = 13.8, maxz = 14.2, distance = 1, icon = "far fa-clipboard", label = "Open Tray",maxweight = 10000, slots = 50, stash_label = "Tray"},
}

For those not using the latest QB-Inventory

You will also have to modify the file HapticLib/server/functions/stash.lua to make it work with your inventory.

RegisterServerEvent("HapticLib:Server:DynamicStash")
RegisterNetEvent('HapticLib:Server:DynamicStash', function(id, slots, weight, label)
	local src = source
	local Player = QBCore.Functions.GetPlayer(src)
	local datas = { label = label, maxweight = weight, slots = slots }
	exports['qb-inventory']:OpenInventory(source, id, datas)
end)
PreviousFinal StepNext๐Ÿ” Drink/Fryer/Grill/Pack

Last updated 1 year ago

๐Ÿ˜‡