🐌
TZMC Documentation
  • 🧍Standalone
    • 📣Server Announcements
      • 🛠️Config
      • 🔠Rockstar Text Formatting
      • 💾Changelog
    • 🛂Player Report System (Discord)
      • 🛠️Config
    • ⚡Advanced Blackout/Power Cut (ESX/Standard)
      • 🛠️Config
      • 🗺️Region Examples
    • ⏱️Time Trial
      • 🛠️Config
    • 🚛Black Market Van
      • 🛠️Config
      • 💾Changelog
    • 🃏Freemode Collectibles
      • 🛠️Config
    • Crypto Heist
      • 🛠️Config
      • 🖥️Server Layout (ID's)
    • 🗺️Cinematic City Tour Guide
      • 🛠️Config
      • 💾Changelog
  • 🎮QB-Core
    • 🐕Animal Patting
      • 🛠️Config
    • 📦Amazon Delivery
      • 💽Installation
      • 🛠️Config
      • 💾Changelog
    • 📯Horny's Burger Job
      • 🛠️Config
    • 🍕Pizzeria Job
      • 🛠️Config
    • 🍔Burger Shot Job
      • 🛠️Config
    • 🚚Advanced Tow Trucking Job
      • 🛠️Config
    • 🧑‍🌾Gardner Job
      • 🛠️Config
    • 🚦Stolen Signs
      • 🛠️Config
    • 🌿Weed Delivery Run
      • 🛠️Config
    • 👔Ponsonbys Heist
      • 🛠️Config
      • 💾Changelog
    • 🔐Password Lockers
      • 🛠️Config
      • 💾Changelog
    • 🚗Chopping
      • 🛠️Config
      • 💾Changelog
    • 🚙Car/Boat/Plane Rental
      • 🛠️Config
      • 💾Changelog
    • 🆔ID Fraud
      • 🛠️Config
    • 🖥️IT Job
      • 🛠️Config
    • 🍸Cyberbar Job
      • 🛠️Config
    • ⚡City Blackout/Power Cut
      • 🛠️Config
    • ⚡Advanced Blackout/Power Cut
      • 🛠️Config
      • 🗺️Region Examples
    • 🛒Vending Machine & Watercooler
      • 🛠️Config
      • 💾Changelog
    • 🔌Electrical Job
      • 🛠️Config
    • 🐈UwU Cat Cafe Job
      • 🛠️Config
    • ☕Bean Machine Job
      • 🛠️Config
    • 🦞Pearl's Seafood Restaurant Job
      • 🛠️Config
    • 🍔Up-N-Atom Burger Job
      • 🛠️Config
    • 🚁Blimp Advert Job
      • 🛠️Config
    • 🚮Begging & Garbage Searching
      • 🛠️Config
      • 💾Changelog
    • 🎁Loot Box Drops
      • 🛠️Config
    • ⛽Fuel Theft
      • 🛠️Config
      • 💾Changelog
    • 🍕Pizza Boy Delivery
      • 🛠️Config
    • 📦Parcel Theft
      • 🛠️Config
      • 💾Changelog
    • 🚛Forklift Delivery Job
      • 🛠️Config
      • 💾Changelog
    • 🏗️Container Stashes
      • 🛠️Config
    • 📮Postal Password Locker
      • 🛠️Config
    • 🪙Coin Pinching
      • 🛠️Config
  • 🎲ESX
    • ⚡Advanced Blackout/Power Cut (ESX/Standard)
      • 🛠️Config
      • 🗺️Region Examples
Powered by GitBook
On this page
  1. QB-Core
  2. Vending Machine & Watercooler

Config

TZMCVendingConfig = {}

TZMCVendingConfig.UseAnimation = true
TZMCVendingConfig.InventoryLabel = "Vending Machine"

TZMCVendingConfig.UseAnimationDrinking = true
TZMCVendingConfig.UsingConsumables = true -- If you're using a QBCore version from late August you may need to use QBCore's newer version of consumables. Enabling this uses this new version of consumables within the script instead of the old way.

-- TARGET TEXT --

TZMCVendingConfig.SodaTargetLabel = 'Soda'
TZMCVendingConfig.CoffeeTargetLabel = 'Coffee'
TZMCVendingConfig.SnacksTargetLabel = 'Snacks'
TZMCVendingConfig.WaterTargetLabel = 'Water'
TZMCVendingConfig.DrinkTargetLabel = 'Drink'

-- PROGRESS BAR --

TZMCVendingConfig.UseProgressBar = true
TZMCVendingConfig.ProgressBarTime = 3000
TZMCVendingConfig.ProgressBarLabel = "Accessing Vending Machine"

TZMCVendingConfig.UseProgressBarDrinking = true
TZMCVendingConfig.ProgressBarTimeDrinking = 5000
TZMCVendingConfig.ProgressBarLabelDrinking = "Drinking"

-- VENDING MACHINE MODELS --

TZMCVendingConfig.SodaModels = {
    "prop_vend_soda_01",
    "prop_vend_soda_02",
    "prop_vend_fridge01"
}

TZMCVendingConfig.CoffeeModels = {
    "prop_vend_coffe_01",
}

TZMCVendingConfig.SnackModels = {
    "prop_vend_snak_01",
}

TZMCVendingConfig.WaterModel = {
    "prop_vend_water_01",
}

TZMCVendingConfig.WatercoolerModel = {
    "prop_watercooler",
    "prop_watercooler_dark"
}

-- VENDING MACHINE ITEMS --

TZMCVendingConfig.Beverage = {
    { name = "kurkakola", price = 2, amount = 50 },
    { name = "water_bottle", price = 2, amount = 50 },
    { name = "beer", price = 7, amount = 50 },
}

TZMCVendingConfig.Coffee = {
    { name = "coffee", price = 2, amount = 50 }
}

TZMCVendingConfig.Water = {
    { name = "water_bottle", price = 2, amount = 50 }
}

TZMCVendingConfig.Snacks = {
    { name = "tosti", price = 2, amount = 50 },
    { name = "twerks_candy", price = 7, amount = 50 },
    { name = "snikkel_candy", price = 7, amount = 50 },
    { name = "sandwich", price = 7, amount = 50 },
}
PreviousVending Machine & WatercoolerNextChangelog

Last updated 5 months ago

🎮
🛒
🛠️