Standalone

Agency-Tuning

A complete vehicle tuning system for FiveM. Upgrade performance — engine, turbo, brakes, suspension & transmission — and customize the look with paint, wheels, spoilers and body kits, all through a sleek glassmorphism UI with a live dyno. Per-vehicle saved builds, configurable prices, Discord webhook logging. 13 languages, MySQL persistence & ACE permissions. Auto-detects QBCore, ESX & Standalone.

v1.0.0Paid3 Pages
Agency-Tuning

01 Configuration

Complete config.lua for Agency-Tuning. All options documented via inline comments.

Download config.lua
Config = {}

Config.Framework = 'auto' -- 'qb', 'esx', 'auto'
Config.EnableAgencyPay = true
Config.Locale = 'en'
Config.Branding = {
    label = "Agency Tuning",
    meta = "Vehicle Customization"
}
Config.Debug = false

-- Notification System
Config.Notification = 'agency' -- 'agency', 'ox', 'qb', 'native'

Config.Currency = {
    locale = 'en-US',
    currency = 'USD',
}

-- Tuning Options
Config.PricingMethod = "percentage" -- "fixed" or "percentage"
Config.PricingPercentage = 0.05 -- Percentage of the Vehicles Price Impact on the Option price
Config.OnlyAffectUpgrades = false
Config.RepairPrice = 5000.0
Config.RepairPriceDependsOnDamage = true
Config.WindowTintPrice = 500 -- price per window tint option
Config.DefaultVehiclePrice = 50000 -- fallback vehicle value when the model is not in the shared vehicle list

-- Mechanic Job Integration
-- Players with one of these jobs pay a fraction of every price (tuning, colors, repair)
-- at every zone — verified server-side, so it cannot be spoofed by clients.
Config.MechanicJobs = { 'mechanic' } -- add more workshop jobs here, e.g. { 'mechanic', 'bennys', 'tuner' }
Config.MechanicPriceMultiplier = 0.2 -- mechanics pay 20% of the normal price (0.0 = completely free, 1.0 = full price)

Config.UseMoneyAccount = "bank" -- 'bank' or 'cash'
Config.SocietyPay = true -- pay tuning/repair revenue into a society account
Config.SocietyHandler = 'qb-management' -- 'qb-management' or 'okokBanking'
Config.SocietyName = 'mechanic' -- society account that receives the revenue

Config.OpenMenuKey = 38 -- E
Config.CameraTransitionTime = 0.75
Config.CameraAutoRotate = false -- true = camera slowly rotates on its own after 3.5s without input
Config.CameraFocusOnSelect = false -- true = camera automatically pans to the selected part when browsing the menu

Config.Zones = {
    {
        name = "Auto Tuning LS",
        coords = vector3(-338.67, -136.94, 38.3),
        size = vector3(5, 5, 5),
        rotation = 70,
        type = "selfservice",
        blipIcon = 72,
        blipColor = 5,
        blipDisplay = 4,
        blipScale = 0.7,
        blipEnabled = true,
    },
    {
        name = "Auto Tuning Benny's",
        coords = vector3(-211.97, -1324.18, 30.89),
        size = vector3(5, 5, 5),
        rotation = 70,
        type = "selfservice",
        blipIcon = 72,
        blipColor = 5,
        blipDisplay = 4,
        blipScale = 0.7,
        blipEnabled = true,
    },
    {
        name = "ADAC",
        jobs = { "adac" },
        coords = vector3(875.9, -2124.8, 29.8),
        size = vector3(5, 5, 5),
        rotation = 70,
        type = "job",
        blipIcon = 72,
        blipColor = 3,
        blipDisplay = 4,
        blipScale = 0.7,
        blipEnabled = true,
    }
}

Config.VehicleCustomization = {
    upgrades = {
        { category = 'EngineUpgrade', id = 11, mod = "modEngine", basePrice = 3000 },
        { category = 'TransmissionUpgrade', id = 13, mod = "modTransmission", basePrice = 1000 },
        { category = 'SuspensionUpgrade', id = 15, mod = "modSuspension", basePrice = 6000 },
        { category = 'BrakesUpgrade', id = 12, mod = "modBrakes", basePrice = 240 },
        { category = 'ArmorUpgrade', id = 16, mod = "modArmor", basePrice = 3300 },
    },
    cosmetics = {
        { category = 'Spoiler', id = 0, mod = "modSpoilers", basePrice = 2000 },
        { category = 'FrontBumper', id = 1, mod = "modFrontBumper", basePrice = 2000 },
        { category = 'RearBumper', id = 2, mod = "modRearBumper", basePrice = 2000 },
        { category = 'SideSkirt', id = 3, mod = "modSideSkirt", basePrice = 2000 },
        { category = 'Exhaust', id = 4, mod = "modExhaust", basePrice = 2000 },
        { category = 'RollCage', id = 5, mod = "modFrame", basePrice = 2000 },
        { category = 'Grille', id = 6, mod = "modGrille", basePrice = 2000 },
        { category = 'Hood', id = 7, mod = "modHood", basePrice = 2000 },
        { category = 'LeftFender', id = 8, mod = "modFender", basePrice = 2000 },
        { category = 'RightFender', id = 9, mod = "modRightFender", basePrice = 2000 },
        { category = 'Roof', id = 10, mod = "modRoof", basePrice = 2000 },
        { category = 'VanityPlates', id = 25, mod = "modVanityPlate", basePrice = 2000 },
        { category = 'Seats', id = 32, mod = "modSeats", basePrice = 2000 },
        { category = 'SteeringWheel', id = 33, mod = "modSteeringWheel", basePrice = 2000 },
        { category = 'EngineBlock', id = 39, mod = "modEngineBlock", basePrice = 2000 },
        { category = 'AirFilter', id = 40, mod = "modAirFilter", basePrice = 2000 },
        { category = 'Strut', id = 41, mod = "modStruts", basePrice = 2000 },
        { category = 'ArchCover', id = 42, mod = "modArchCover", basePrice = 2000 },
        { category = 'Aerial', id = 43, mod = "modAerials", basePrice = 2000 },
        { category = 'FuelTank', id = 45, mod = "modTank", basePrice = 2000 },
        { category = 'Window', id = 46, mod = "modWindows", basePrice = 2000 },
        { category = 'Livery', id = 48, mod = "modLivery", basePrice = 2000 },
        { category = 'Horns', id = 14, mod = "modHorns", basePrice = 300 }
    }
}

Config.ExtraPaints = {
    Primary = { price = 2000 },
    Secondary = { price = 2000 },
    Pearlescent = { price = 1000 },
    Wheels = { price = 13000 },
    Interior = { price = 9000 },
    Dashboard = { price = 5000 },
    Xenons = { price = 2000 },
    NeonColor = { price = 500 },
    TyreSmokeColor = { price = 1000 }
}

-- Neon kits: which sides glow (0 = left, 1 = right, 2 = front, 3 = back)
Config.NeonLayouts = {
    { label = 'Off',          sides = {},           price = 0 },
    { label = 'Front',        sides = {2},          price = 500 },
    { label = 'Back',         sides = {3},          price = 500 },
    { label = 'Sides',        sides = {0, 1},       price = 800 },
    { label = 'Front + Back', sides = {2, 3},       price = 900 },
    { label = 'Full Kit',     sides = {0, 1, 2, 3}, price = 1500 },
}

Config.WheelsPrice = {
    [0] = { label = 'Sport', price = 1000 },
    [1] = { label = 'Muscle', price = 2000 },
    [2] = { label = 'Lowrider', price = 3000 },
    [3] = { label = 'SUV', price = 4000 },
    [4] = { label = 'Offroad', price = 5000 },
    [5] = { label = 'Tuner', price = 1000 },
    [6] = { label = 'Motorcycle', price = 1000 },
    [7] = { label = 'Highend', price = 1000 },
}

Config.ColorGroups = {
    {
        label = "Classic / Metallic",
        colors = {
            { id = 0, hex = "#0d1116" }, { id = 1, hex = "#1c1d21" }, { id = 2, hex = "#32383d" }, 
            { id = 3, hex = "#454b4f" }, { id = 4, hex = "#999da0" }, { id = 5, hex = "#c2c4c6" }, 
            { id = 27, hex = "#c00e1a" }, { id = 28, hex = "#da1918" }, { id = 29, hex = "#b6111b" },
            { id = 30, hex = "#a51e23" }, { id = 31, hex = "#7b1a22" }, { id = 32, hex = "#8e1b1f" },
            { id = 33, hex = "#6f1818" }, { id = 34, hex = "#49111d" }, { id = 35, hex = "#b60f25" },
            { id = 36, hex = "#d44a17" }, { id = 37, hex = "#c2944f" }, { id = 38, hex = "#f78616" },
            { id = 49, hex = "#132428" }, { id = 50, hex = "#122e2b" }, { id = 51, hex = "#12383c" },
            { id = 52, hex = "#31423f" }, { id = 53, hex = "#155c2d" }, { id = 54, hex = "#1b6770" },
            { id = 61, hex = "#222e46" }, { id = 62, hex = "#233155" }, { id = 63, hex = "#304c7a" },
            { id = 64, hex = "#47578f" }, { id = 65, hex = "#637ba7" }, { id = 66, hex = "#394762" },
            { id = 67, hex = "#d6e0ed" }, { id = 68, hex = "#5c7581" }, { id = 69, hex = "#a4b1ba" },
            { id = 70, hex = "#0b9cf1" }, { id = 71, hex = "#2f2d52" }, { id = 72, hex = "#282c4d" },
            { id = 73, hex = "#2354a1" }, { id = 74, hex = "#6ea3c6" }, { id = 88, hex = "#ffcf20" },
            { id = 89, hex = "#fbe212" }, { id = 91, hex = "#91e13" }, { id = 92, hex = "#8cc10f" }
        }
    },
    {
        label = "Matte",
        colors = {
            { id = 12, hex = "#13181f" }, { id = 13, hex = "#26282a" }, { id = 14, hex = "#515554" },
            { id = 15, hex = "#151921" }, { id = 16, hex = "#1e2429" }, { id = 17, hex = "#333a3c" },
            { id = 39, hex = "#cf1f21" }, { id = 40, hex = "#732021" }, { id = 41, hex = "#f27d20" },
            { id = 42, hex = "#ffc91f" }, { id = 55, hex = "#66b81f" }, { id = 82, hex = "#1f2852" },
            { id = 83, hex = "#253aa7" }, { id = 84, hex = "#1c3551" }, { id = 128, hex = "#4e6443" },
            { id = 129, hex = "#bcac8f" }, { id = 131, hex = "#fdfbf6" }
        }
    },
    {
        label = "Metals",
        colors = {
            { id = 117, hex = "#6b7476" }, { id = 118, hex = "#3f4749" }, { id = 119, hex = "#292c2e" },
            { id = 120, hex = "#a6a9ad" }, { id = 158, hex = "#7a6c55" }, { id = 159, hex = "#9f7d59" },
            { id = 160, hex = "#f8e6b1" }
        }
    }
}

Need help? Join our Discord community for support!

Join Discord