🛠️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 },
}

Last updated