Configuration

config.lua

Config = {}
--  ███╗   ███╗ █████╗  ██████╗██╗  ██╗██╗███╗   ██╗███████╗███████╗
--  ████╗ ████║██╔══██╗██╔════╝██║  ██║██║████╗  ██║██╔════╝██╔════╝
--  ██╔████╔██║███████║██║     ███████║██║██╔██╗ ██║█████╗  ███████╗
--  ██║╚██╔╝██║██╔══██║██║     ██╔══██║██║██║╚██╗██║██╔══╝  ╚════██║
--  ██║ ╚═╝ ██║██║  ██║╚██████╗██║  ██║██║██║ ╚████║███████╗███████║
--  ╚═╝     ╚═╝╚═╝  ╚═╝ ╚═════╝╚═╝  ╚═╝╚═╝╚═╝  ╚═══╝╚══════╝╚══════╝
--                                                                  
-- =================================================================
Config.Framework = "qb" -- qb or esx, if qb it will use QBCore Functions for player data and use citizenID, if esx it will blow up.


Config.MenuLibrary = 'ox_lib' -- options: 'qb-menu', 'ox_lib'
Config.InputLibrary = 'ox_lib' -- options: 'qb-input', 'ox_lib'
Config.SNotificationType = "ox" -- Can be "qb", "ox", or "custom" (Server Side, Editable in 'open_server.lua' Line: 3)
Config.CNotificationLibrary = 'ox' -- Can be "qb", "ox", or "custom" (Client Side, Editable in 'open_client.lua' Line: 77)
Config.ProgressbarType = "ox" -- Can be "qb", "ox", or "custom"
Config.DrawTextType = "ox" -- Options: "qb", "ox", "custom"
Config.TargetSystem = "qb-target" -- DON'T TOUCH IT Even you if you use ox_target, (Already has a Compat (auto converting the qb-target exports!)) 
Config.UseOxInventory = true

Config.ElectricityConsumption = 5 -- Max electricity = 100, amount is removed per hour (irl hour)
Config.MaxStock = 5 -- Max stock, lets you change how many types of items one vending machine can have
Config.TaxPercentage = 7 -- Percentage the server takes as tax from each payment (0 = none)
Config.MaxMachines = 1 -- Max number of machines per player
Config.ForceCarry = true -- Player will hold the machine in their hands
Config.VendingItem = 'vending_machine' -- Vending Machine Item

Config.RequireItem = true -- Require item to move the vending machine?
Config.RemoveItem = 'vending_remover' -- Item to move the machine
Config.RemoveTime = 5000 -- MS (1000 = 1 sec)

Config.ElectricityBill = 100 -- how much should rechargin from 0 to 100 be, it is then multiplied by the current electricity for the price from any point.


Config.MaxStock = 50 -- how many items can a vending machine have of one item.
-- =================================================================
Config.MachineLoading = 10000 -- do not touch

Config.ItemPrices = {
    ["sandwich"] = 10, -- "itemname" = price
}

open_client.lua

open_server.lua

Last updated

Was this helpful?