Configs

Config = {}

-- General Settings
Config.Core = "qb-core" -- qb-core folder name
Config.HelpText = "qb" -- qb, ox
Config.Notify = "ox" -- "qb" or "okok" or "ox"
Config.Inventory = "qb" -- "qb" or "ox"
Config.Display = { type = "helpText", target = "qb-target" } -- "target" or "helpText" | "qb-target" or "ox_target"
Config.Fuel = "LegacyFuel" -- "LegacyFuel" or "okokFuel" or "ox_fuel" or "ti_fuel" or "qs-fuel"
Config.VehicleKeys = "qb" -- "qb" or "qs" or "renewed"
Config.Management = "qb-banking" -- "qb-management" or "qb-banking" or "okokBanking" or "snipe-banking"
Config.InventoryDirectory = "qb-inventory/html/images/" -- This is the directory where the images are stored for the inventory ( "qb-inventory/html/images/" or "ox_inventory/web/images/ )
Config.MinigameType = "ps-ui" -- "ps-ui" or "bl_ui" or "ox_lib" ( open code on config_functions.lua )
Config.EmoteSystem = "scully_emotemenu" -- "dpemotes" or "rpemotes" or "scully_emotemenu"
Config.Debug = true -- Set this to true if you want to see the debug messages in the console
Config.SpawnAutomaticCarLift = false -- Set this to true if you want to spawn the car lift automatically ( when server start )

-- Mileage Settings
Config.Mileage = {
    mileageNeedRepair = 1000, -- Every 1000 km the vehicle needs parts
    disableEngine = true, -- Set this to true if you want to stop the engine when the vehicle is damaged and need a repair
    itemsNeed = { -- Items needed to maintenance the vehicle
        [1] = { item = "airfilter",     amount = 1 },
        [2] = { item = "brakepad",      amount = 1 },
        [3] = { item = "sparkplugs",    amount = 1 },
        [4] = { item = "fuelfilter",    amount = 1 },
        [5] = { item = "engineoil",     amount = 1 }
    }
}

-- Command Settings (This is for the commands that are registered)
Config.Commands = {
    ["diagonostic"]     = { command = "diagonostic",    help = "Open the diagnostic menu" },
    ["repairbody"]      = { command = "repairbody",     help = "Repair the body of the vehicle" },
    ["repairengine"]    = { command = "repairengine",   help = "Repair the engine of the vehicle" },
    ["cleanvehicle"]    = { command = "cleanvehicle",   help = "Clean the vehicle" },
    ["spawncarlift"]    = { command = "spawncarlift",   help = "Spawn car lift (MECHANICS ONLY)" },
    ["checkcarlifts"]   = { command = "checkcarlifts",  help = "Check all carlifts on the server (ADMIN ONLY)"}
}

-- Emails Settings (This is for the emails that are sent to the player)
Config.Emails = {
    enable = true, -- Set this to true if you want to use the email system
    phone = "qb-phone", -- "qb-phone" or "qs-smartphone" or "gksphone" or "yseries"
}

-- Vehicle Settings
Config.HeatEngine = {
    enable = false, -- Set this to true if you want to use the engine heating system
    maxSpeed = 150.0, -- Minimum speed at which the engine will start to heat up
    maxTemp = 120.0, -- Minimum temperature at which the engine starts to degrade
    degradeSpeed = 2.0, -- Degradation per 2.0 seconds. (Engine has 1000 health by default, 2.0 means it will remove 2.0 health per 2.0 seconds.)
    shutdownTemp = 140.0, -- Maximum engine temperature if the engine stops
    blackListedVehicles = { -- These vehicles will not be able to heat up
        'adder',
    }
}

-- Repair Settings 
Config.RepairSettings = {
    minigame = false, -- Set this to true if you want to use the minigame
    Body = {
        item = "advancedrepairkit", -- This is the item needed to repair the body
        price = 1000, -- This is the price for repairing the body
        time = 5000, -- This is the time it takes to repair the body
        customTime = true, -- Set this to true if you want to use custom repair times based on the body damage levels
        timePerLevel = 1000, -- This is the time per level of body damage
        points = math.random(1,5) -- This is the amount of points the player will receive for repairing the body
    },
    Engine = {
        item = "repairkit", -- This is the item needed to repair the engine
        price = 100, -- This is the price for repairing the engine
        time = 5000, -- This is the time it takes to repair the engine
        customTime = true, -- Set this to true if you want to use custom repair times based on the engine damage levels
        timePerLevel = 1000, -- This is the time per level of engine damage
        points = math.random(1,5) -- This is the amount of points the player will receive for repairing the engine
    },
}

-- Vehicle Wheels Presets
Config.WheelsPresets = {
    enable = true, -- Set this to true if you want to use the wheels presets system
    saveInDatabase = true, -- Set this to true if you want to save the wheels presets in the database
    maxPresets = 5, -- This is the maximum amount of presets that the player can save on the vehicle
    commandOpenPresets = "wheelspresets", -- This is the command to open the wheels presets menu
    speedMax = 20.0, -- This is the maximum speed at which the player can change the wheels preset
}

-- Parts Settings -- 
-- price = Price of the part when you order it
-- orderTime = Time it takes to order and receive the part
-- installingTime = Time it takes to install the part 
-- progressBar = The text that will be displayed in the progress bar
-- anim = The animation dictionary that will be played when installing the part
-- propModel = The prop model that will be displayed when installing the part
-- tier = The tier/level of the part ( don't touch this )
-- type = The type of part ( don't touch this )
Config.CarParts = {
    ["brake0"] = { price = 500,   orderTime = 5000,  installingTime = 5000,  progressBar = "Installing brake lv0...", anim = "mechanic", propModel = "prop_m_brake_caliper", tier = -1, type = "brakes"},
    ["brake1"] = { price = 1000,  orderTime = 7000,  installingTime = 5000,  progressBar = "Installing brake lv1...", anim = "mechanic", propModel = "prop_m_brake_caliper", tier = 0, type = "brakes" },
    ["brake2"] = { price = 1500,  orderTime = 9000,  installingTime = 5000,  progressBar = "Installing brake lv2...", anim = "mechanic", propModel = "prop_m_brake_caliper", tier = 1, type = "brakes" },
    ["brake3"] = { price = 2000,  orderTime = 11000, installingTime = 5000,  progressBar = "Installing brake lv3...", anim = "mechanic", propModel = "prop_m_brake_caliper", tier = 2, type = "brakes" },
    ["brake4"] = { price = 2500,  orderTime = 12000, installingTime = 5000,  progressBar = "Installing brake lv4...", anim = "mechanic", propModel = "prop_m_brake_caliper", tier = 3, type = "brakes" },
    ["engine0"] = { price = 500,  orderTime = 5000,  installingTime = 5000,  progressBar = "Installing engine lv0...", anim = "mechanic", propModel = "prop_car_engine_01", tier = -1, type = "engine" },
    ["engine1"] = { price = 1000, orderTime = 7000,  installingTime = 5000,  progressBar = "Installing engine lv1...", anim = "mechanic", propModel = "prop_car_engine_01", tier = 0, type = "engine" },
    ["engine2"] = { price = 1500, orderTime = 9000,  installingTime = 5000,  progressBar = "Installing engine lv2...", anim = "mechanic", propModel = "prop_car_engine_01", tier = 1, type = "engine" },
    ["engine3"] = { price = 2000, orderTime = 11000, installingTime = 5000,  progressBar = "Installing engine lv3...", anim = "mechanic", propModel = "prop_car_engine_01", tier = 2, type = "engine" },
    ["engine4"] = { price = 2500, orderTime = 13000, installingTime = 5000,  progressBar = "Installing engine lv4...", anim = "mechanic", propModel = "prop_car_engine_01", tier = 3, type = "engine" },
    ["transmission0"] = { price = 500,  orderTime = 5000,  installingTime = 5000,  progressBar = "Installing transmission lv0...", anim = "mechanic", propModel = "prop_m_transmission", tier = -1, type = "transmission" },
    ["transmission1"] = { price = 1000,  orderTime = 5000,  installingTime = 5000,  progressBar = "Installing transmission lv1...", anim = "mechanic", propModel = "prop_m_transmission", tier = -1, type = "transmission" },
    ["transmission2"] = { price = 1500,  orderTime = 5000,  installingTime = 5000,  progressBar = "Installing transmission lv2...", anim = "mechanic", propModel = "prop_m_transmission", tier = -1, type = "transmission" },
    ["transmission3"] = { price = 2000,  orderTime = 5000,  installingTime = 5000,  progressBar = "Installing transmission lv3...", anim = "mechanic", propModel = "prop_m_transmission", tier = -1, type = "transmission" },
    ["turbo"] = { price = 500,  orderTime = 5000,  installingTime = 5000,  progressBar = "Installing turbo...", anim = "mechanic", propModel = "prop_m_turbo", tier = 18, type = "turbo" },
    ["suspension0"] = { price = 500,  orderTime = 5000,  installingTime = 5000,  progressBar = "Installing suspension lv0...", anim = "mechanic4", propModel = "prop_m_suspension", tier = 4, type = "suspension" },
    ["suspension1"] = { price = 1000,  orderTime = 5000,  installingTime = 5000,  progressBar = "Installing suspension lv1...", anim = "mechanic4", propModel = "prop_m_suspension", tier = 0, type = "suspension" },
    ["suspension2"] = { price = 1500,  orderTime = 5000,  installingTime = 5000,  progressBar = "Installing suspension lv2...", anim = "mechanic4", propModel = "prop_m_suspension", tier = 1, type = "suspension" },
    ["suspension3"] = { price = 2000,  orderTime = 5000,  installingTime = 5000,  progressBar = "Installing suspension lv3...", anim = "mechanic4", propModel = "prop_m_suspension", tier = 2, type = "suspension" },
    ["windowtint0"] = { price = 500, orderTime = 5000,  installingTime = 5000,  progressBar = "Installing window tint...", anim = "maid", propModel = "prop_m_window_tint", tier = 0, type = "windowtint" },
    ["windowtint1"] = { price = 1000, orderTime = 5000,  installingTime = 5000,  progressBar = "Installing window tint...", anim = "maid", propModel = "prop_m_window_tint", tier = 3, type = "windowtint" },
    ["windowtint2"] = { price = 1500, orderTime = 5000,  installingTime = 5000,  progressBar = "Installing window tint...", anim = "maid", propModel = "prop_m_window_tint", tier = 2, type = "windowtint" },
    ["windowtint3"] = { price = 2000, orderTime = 5000,  installingTime = 5000,  progressBar = "Installing window tint...", anim = "maid", propModel = "prop_m_window_tint", tier = 1, type = "windowtint" },
    ["carplate0"] = { price = 500, orderTime = 5000,  installingTime = 5000,  progressBar = "Installing car plate...", anim = "mechanic4", propModel = "p_num_plate_01", tier = 2, type = "carplate" },
    ["carplate1"] = { price = 1000, orderTime = 5000,  installingTime = 5000,  progressBar = "Installing car plate...", anim = "mechanic4", propModel = "p_num_plate_02", tier = 3, type = "carplate" },
    ["carplate2"] = { price = 1500, orderTime = 5000,  installingTime = 5000,  progressBar = "Installing car plate...", anim = "mechanic4", propModel = "p_num_plate_03", tier = 1, type = "carplate" },
}

-- Painting settings
Config.Painting = {
    item = "paintcan", -- This is the item needed to paint the vehicle
    remove = true, -- Set this to true if you want to remove the item after painting the vehicle
    checkJob = true, -- Set this to true if you want to check the job of the player to use the item
}

-- Wheel stancer settings
Config.WheelStancer = {
    item = "wheelstancer", -- This is the item needed to use the wheel stancer
    remove = true, -- Set this to true if you want to remove the item after using the wheel stancer
    checkJob = true, -- Set this to true if you want to check the job of the player to use the item
}

-- Repair Stations
Config.RepairStations = {
    [1] = {
        coords = vector3(441.73, -1014.82, 28.66), -- This is the location of the repair station
        jobsNeeded = { "police" }, -- This is the jobs that are needed to use the repair station
        blip = { coords = vector3(441.73, -1014.82, 28.66), label = "Police Repair Station", sprite = 402, color = 3, scale = 0.8 }, -- This is the blip that will be displayed on the map
        label = "[E] - Police Repair Station", -- This is the label that will be displayed when you are near the repair station
        zoneRange = 3.5, -- This is the range of the zone
        repairPrice = 100, -- This is the price to repair the vehicle
        repairTime = 5000, -- This is the time it takes to repair the vehicle
        cleanVehicle = true, -- Set this to true if you want to clean the vehicle
        enableOnlyMecOff = false, -- Set this to true if you want to enable the repair station only if have mechanics online
        specVehicles = { 
            enable = false, -- Set this to true if you want to enable the specific vehicles
            vehicles = { -- These are the vehicles that are allowed to use the repair station
                "police2",
            }
        }
    }
}

Last updated