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
  3. โ„๏ธ Fridges

Fridge Shops

Here you can setup all the different shops depending on the shop that relates to the individual job. I will include burgershot as my example.

Config.FridgeProducts = {
    ["burgershot1"] = { -- Make sure its a unique shop
		label = "Burgershot Store",
		items = {
			{ name = 'burger-bun',              price = 100, amount = 999 },
	        { name = 'burger-lettuce',          price = 100, amount = 999 },
	        { name = 'burger-tomato',           price = 100, amount = 999 },
	        { name = 'burger-raw',              price = 100, amount = 999 },
	        { name = 'burger-potato',           price = 100, amount = 999 },
	        { name = 'burger-mshakeformula',    price = 100, amount = 999 },
	        { name = 'burger-sodasyrup', 	    price = 100, amount = 999 },
		}
	},
}

The unique shop identifier is important for the latest version of qb-shops.

To now use this shop you will want to create a new unique shop in the config.

Config.FridgeShops = {
    ["bs_shop"] = { -- Must Be Unique
        products = Config.FridgeProducts["burgershot1"],
    },
}

For The people not using the latest QB-Inventory

Note: If you are not on the latest QB-Core build that uses the new inv and shop system you will have to modify this function in HapticLib/server/functions/shop.lua

RegisterServerEvent("HapticLib:Server:LCBusinessShop")
RegisterNetEvent('HapticLib:Server:LCBusinessShop', function(shopid, label, items)
    local src = source
    exports['qb-inventory']:CreateShop({
        name = shopid,
        label = label,
        slots = #items,
        items = items
    })
    exports['qb-inventory']:OpenShop(src, shopid)
end)
Previousโ„๏ธ FridgesNextFridge Stashs

Last updated 1 year ago

๐Ÿ˜‡