Config file

----              _  _     _  _     _  _     _  _     _  _     _  _     _  _     _  _   
----            _| || |_ _| || |_ _| || |_ _| || |_ _| || |_ _| || |_ _| || |_ _| || |_ 
----            _  ..  _|_  ..  _|_  ..  _|_  ..  _|_  ..  _|_  ..  _|_  ..  _|_  ..  _|
----           |_      _|_      _|_      _|_      _|_      _|_      _|_      _|_      _|
----             |_||_|   |_||_|   |_||_|   |_||_|   |_||_|   |_||_|   |_||_|   |_||_|  
----
----
----             __     __                              _   _          _         
----             \ \   / /_ _ _ __   __ _  __ _ _ __ __| | | |    __ _| |__  ___ 
----              \ \ / / _` | '_ \ / _` |/ _` | '__/ _` | | |   / _` | '_ \/ __|
----               \ V / (_| | | | | (_| | (_| | | | (_| | | |__| (_| | |_) \__ \
----                \_/ \__,_|_| |_|\__, |\__,_|_|  \__,_| |_____\__,_|_.__/|___/
----                                |___/                                        
---- 
----                                 VANGUARD LABS | OBD System [ESX/QBCORE/QBOX]
----
----               Thank you for purchasing our script; we greatly appreciate your preference.
----        If you have any questions or any modifications in mind, please contact us via Discord.
----
----                           Support and More: https://discord.gg/G5r3Qq2j4v
----
----              _  _     _  _     _  _     _  _     _  _     _  _     _  _     _  _   
----            _| || |_ _| || |_ _| || |_ _| || |_ _| || |_ _| || |_ _| || |_ _| || |_ 
----            _  ..  _|_  ..  _|_  ..  _|_  ..  _|_  ..  _|_  ..  _|_  ..  _|_  ..  _|
----           |_      _|_      _|_      _|_      _|_      _|_      _|_      _|_      _|
----             |_||_|   |_||_|   |_||_|   |_||_|   |_||_|   |_||_|   |_||_|   |_||_|  
----
----
Config = {}

-- ============================================================================
--                          FRAMEWORK SETTINGS
-- ============================================================================
Config.Framework = 'auto' -- 'auto', 'esx', 'qb-core', 'qbx_core'

-- ============================================================================
--                        NOTIFICATION SETTINGS  
-- ============================================================================
Config.NotificationSystem = 'framework' -- 'framework', 'ox_lib'
Config.EnableNotifications = true
Config.NotificationDuration = 4000

-- ============================================================================
--                         INVENTORY SETTINGS
-- ============================================================================
Config.InventorySystem = 'auto' -- 'auto', 'ox_inventory', 'qb-inventory', 'qs-inventory', 'esx_inventoryhud', 'lj-inventory'
Config.ItemName = 'obd_tablet'

-- ============================================================================
--                           GENERAL SETTINGS
-- ============================================================================
Config.Locale = 'en'
Config.RequireVehicleEngine = true
Config.MaxScanDistance = 3.0
Config.Debug = false

-- ============================================================================
--                            JOB PERMISSIONS
-- ============================================================================
Config.AllowedJobs = {
    'mechanic',
    'tuner', 
    'admin',
    'police',
    'automotive'
}

-- ============================================================================
--                           DISCORD LOGGING
-- ============================================================================
Config.DiscordWebhook = nil -- "https://discord.com/api/webhooks/..."

-- ============================================================================
--                          KEYBIND SETTINGS
-- ============================================================================
Config.EnableKeybind = true
Config.Keybind = 'F7'
Config.KeybindDescription = 'Open OBD System'

-- ============================================================================
--                         ANIMATION SETTINGS
-- ============================================================================
Config.UseTabletAnimation = true
Config.TabletModel = 'prop_cs_tablet'
Config.AnimationDict = 'amb@code_human_in_bus_passenger_idles@female@tablet@base'
Config.AnimationName = 'base'

-- ============================================================================
--                       VEHICLE SPECIFICATIONS
-- ============================================================================
Config.VehicleSpecs = {
    -- Super Cars
    ['adder'] = {
        name = "Truffade Adder",
        make = "Truffade",
        baseHP = 647,
        baseTorque = 516,
        baseMaxSpeed = 217,
        baseAcceleration = 2.8,
        fuelType = "Premium",
        transmission = "7-Speed DCT",
        drivetrain = "AWD",
        maxHP = 970,
        maxSpeed = 280,
        minHP = 400,
        minSpeed = 180
    },
    
    ['t20'] = {
        name = "Progen T20",
        make = "Progen", 
        baseHP = 750,
        baseTorque = 590,
        baseMaxSpeed = 220,
        baseAcceleration = 2.5,
        fuelType = "Premium",
        transmission = "7-Speed PDK",
        drivetrain = "AWD",
        maxHP = 1125,
        maxSpeed = 285,
        minHP = 460,
        minSpeed = 185
    },

    ['zentorno'] = {
        name = "Pegassi Zentorno",
        make = "Pegassi",
        baseHP = 637,
        baseTorque = 442,
        baseMaxSpeed = 213,
        baseAcceleration = 2.9,
        fuelType = "Premium", 
        transmission = "7-Speed ISR",
        drivetrain = "AWD",
        maxHP = 950,
        maxSpeed = 275,
        minHP = 390,
        minSpeed = 175
    },

    ['turismor'] = {
        name = "Grotti Turismo R",
        make = "Grotti",
        baseHP = 553,
        baseTorque = 398,
        baseMaxSpeed = 206,
        baseAcceleration = 3.2,
        fuelType = "Premium",
        transmission = "7-Speed F1",
        drivetrain = "RWD", 
        maxHP = 830,
        maxSpeed = 265,
        minHP = 340,
        minSpeed = 170
    },

    -- Sports Cars
    ['comet2'] = {
        name = "Pfister Comet",
        make = "Pfister",
        baseHP = 345,
        baseTorque = 295,
        baseMaxSpeed = 185,
        baseAcceleration = 4.1,
        fuelType = "Premium",
        transmission = "7-Speed PDK", 
        drivetrain = "RWD",
        maxHP = 520,
        maxSpeed = 240,
        minHP = 210,
        minSpeed = 155
    },

    ['carbonizzare'] = {
        name = "Grotti Carbonizzare", 
        make = "Grotti",
        baseHP = 456,
        baseTorque = 354,
        baseMaxSpeed = 198,
        baseAcceleration = 3.8,
        fuelType = "Premium",
        transmission = "7-Speed F1",
        drivetrain = "RWD",
        maxHP = 680,
        maxSpeed = 255,
        minHP = 280,
        minSpeed = 165
    },

    -- Muscle Cars
    ['gauntlet'] = {
        name = "Bravado Gauntlet",
        make = "Bravado", 
        baseHP = 425,
        baseTorque = 525,
        baseMaxSpeed = 175,
        baseAcceleration = 4.8,
        fuelType = "Regular",
        transmission = "6-Speed Manual",
        drivetrain = "RWD",
        maxHP = 640,
        maxSpeed = 220,
        minHP = 260,
        minSpeed = 145
    },

    ['dominator'] = {
        name = "Vapid Dominator",
        make = "Vapid",
        baseHP = 416,
        baseTorque = 515, 
        baseMaxSpeed = 172,
        baseAcceleration = 5.0,
        fuelType = "Regular",
        transmission = "6-Speed Manual",
        drivetrain = "RWD",
        maxHP = 625,
        maxSpeed = 215,
        minHP = 255,
        minSpeed = 142
    },

    -- Add your custom vehicles here
    ['gxrx7'] = {
        name = "Mazda RX-7 FD",
        make = "Mazda",
        baseHP = 276,
        baseTorque = 231,
        baseMaxSpeed = 250,
        baseAcceleration = 5.5,
        fuelType = "Gasoline",
        transmission = "5-Speed Manual",
        drivetrain = "RWD",
        maxHP = 400,
        maxSpeed = 320,
        minHP = 200,
        minSpeed = 200
    }
}

-- Default specs for vehicles not in the list above
Config.DefaultSpecs = {
    name = "Unknown Vehicle",
    make = "Unknown",
    baseHP = 200,
    baseTorque = 180,
    baseMaxSpeed = 120,
    baseAcceleration = 8.0,
    fuelType = "Regular",
    transmission = "Auto",
    drivetrain = "FWD",
    maxHP = 300,
    maxSpeed = 155,
    minHP = 120,
    minSpeed = 100
}

-- ============================================================================
--                           TUNING PROFILES
-- ============================================================================
Config.TuningProfiles = {
    ['stock'] = {
        name = "Stock Configuration",
        hpMultiplier = 1.0,
        torqueMultiplier = 1.0,
        speedMultiplier = 1.0,
        accelMultiplier = 1.0,
        fuelMultiplier = 1.0,
        handlingMultipliers = {
            fInitialDriveForce = 1.0,
            fInitialDriveMaxFlatVel = 1.0,
            fClutchChangeRateScaleUpShift = 1.0,
            fClutchChangeRateScaleDownShift = 1.0,
            fBrakeForce = 1.0
        }
    },
    
    ['eco'] = {
        name = "Eco Efficiency",
        hpMultiplier = 0.75,
        torqueMultiplier = 0.80,
        speedMultiplier = 0.85,
        accelMultiplier = 1.2,
        fuelMultiplier = 0.65,
        handlingMultipliers = {
            fInitialDriveForce = 0.75,
            fInitialDriveMaxFlatVel = 0.85,
            fClutchChangeRateScaleUpShift = 1.3,
            fClutchChangeRateScaleDownShift = 1.3,
            fBrakeForce = 1.0
        }
    },
    
    ['race'] = {
        name = "Performance Race",
        hpMultiplier = 1.5,
        torqueMultiplier = 1.4,
        speedMultiplier = 1.3,
        accelMultiplier = 0.7,
        fuelMultiplier = 1.75,
        handlingMultipliers = {
            fInitialDriveForce = 1.5,
            fInitialDriveMaxFlatVel = 1.3,
            fClutchChangeRateScaleUpShift = 0.6,
            fClutchChangeRateScaleDownShift = 0.6,
            fBrakeForce = 1.2
        }
    }
}

-- ============================================================================
--                         DYNO TEST SETTINGS
-- ============================================================================
Config.DynoSettings = {
    minRPM = 1000,
    maxRPM = 7500,
    rpmStep = 200,
    testDuration = 12000,
    updateInterval = 120
}

-- ============================================================================
--                           UI TEXT LOCALES
-- ============================================================================
Config.Locales = {
    ['en'] = {
        -- Notifications
        ['no_permission'] = 'You do not have permission to use the OBD system',
        ['no_vehicle_nearby'] = 'No vehicle nearby',
        ['vehicle_engine_off'] = 'Vehicle engine must be running', 
        ['scan_started'] = 'ECU scan started',
        ['scan_completed'] = 'ECU scan completed successfully',
        ['dyno_started'] = 'Dynamometer test started',
        ['dyno_completed'] = 'Dyno test completed',
        ['programming_started'] = 'ECU programming initiated',
        ['programming_completed'] = 'ECU programming completed successfully',
        ['programming_failed'] = 'ECU programming failed',
        ['item_required'] = 'OBD Tablet required',
        
        -- Main UI
        ['main_title'] = 'OBD Pro',
        ['main_subtitle'] = 'Professional Automotive Diagnostic Suite',
        ['connection_connected'] = 'Connected',
        ['connection_disconnected'] = 'Disconnected',
        
        -- Vehicle Info
        ['vehicle_health'] = 'Health',
        ['fuel_level'] = 'Fuel Level',
        ['coolant_temp'] = 'Coolant',
        ['oil_pressure'] = 'Oil Pressure',
        ['horsepower'] = 'Horsepower',
        ['torque'] = 'lb-ft Torque',
        ['max_speed'] = 'mph Max',
        ['acceleration'] = '0-60 sec',
        
        -- Action Buttons
        ['scan_title'] = 'ECU System Scan',
        ['scan_description'] = 'Complete diagnostic analysis with real-time monitoring',
        ['dyno_title'] = 'Dynamometer Test',
        ['dyno_description'] = 'Advanced power curve analysis and performance metrics',
        ['programming_title'] = 'ECU Programming',
        ['programming_description'] = 'Professional engine tuning and optimization suite',
        
        -- Navigation
        ['back_to_main'] = 'Back to Main',
        
        -- Scan Screen
        ['scan_screen_title'] = 'ECU System Scan',
        ['scan_screen_subtitle'] = 'Comprehensive Vehicle Diagnostic Analysis',
        ['scanning_vehicle'] = 'Scanning Vehicle Systems...',
        ['healthy_systems'] = 'Healthy Systems',
        ['warning_systems'] = 'Warnings',
        ['critical_issues'] = 'Critical Issues',
        ['system_excellent'] = 'Excellent',
        ['system_good'] = 'Good',
        ['system_fair'] = 'Fair',
        ['system_poor'] = 'Poor',
        ['diagnostic_codes'] = 'Diagnostic Trouble Codes',
        
        -- System Names
        ['engine_control'] = 'Engine Control',
        ['emission_control'] = 'Emission Control',
        ['transmission'] = 'Transmission',
        ['abs_traction'] = 'ABS/Traction',
        
        -- Dyno Screen
        ['dyno_screen_title'] = 'Dynamometer Analysis',
        ['dyno_screen_subtitle'] = 'Real-time Power & Torque Measurement',
        ['performance_results'] = 'Performance Results',
        ['engine_status'] = 'Engine Status',
        ['start_dyno_run'] = 'Start Dyno Run',
        ['dyno_running'] = 'Running...',
        ['dyno_ready_title'] = 'Ready for Dynamometer Test',
        ['dyno_ready_text'] = 'Start dyno run to measure vehicle performance',
        ['dyno_in_progress'] = 'Dyno Run in Progress',
        ['dyno_progress_subtitle'] = 'Measuring power output across RPM range',
        ['dyno_completed_title'] = 'Dyno Run Completed',
        ['current_rpm'] = 'Current RPM',
        ['progress'] = 'Progress',
        ['peak_hp'] = 'Peak HP',
        ['peak_torque'] = 'Peak Torque',
        ['max_speed'] = 'Max Speed',
        ['engine_temp'] = 'Engine Temp',
        ['normal'] = 'Normal',
        ['active'] = 'Active',
        ['ecu_multiplier'] = 'ECU Multiplier',
        
        -- Programming Screen
        ['programming_screen_title'] = 'ECU Programming Suite',
        ['programming_screen_subtitle'] = 'Professional Engine Control Unit Tuning & Calibration',
        ['performance_profiles'] = 'Performance Profiles',
        ['custom_parameters'] = 'Custom Parameters',
        ['advanced_mode'] = 'Advanced Mode',
        ['performance_warning'] = 'Performance Warning',
        ['programming_console'] = 'ECU Programming Console',
        ['apply_configuration'] = 'Apply Configuration',
        ['restore_stock'] = 'Restore Stock',
        
        -- Profile Names & Descriptions
        ['profile_stock_name'] = 'Stock Configuration',
        ['profile_stock_desc'] = 'Factory default settings with optimal reliability and warranty coverage.',
        ['profile_eco_name'] = 'Eco Efficiency',
        ['profile_eco_desc'] = 'Optimized for maximum fuel economy with reduced emissions and extended component life.',
        ['profile_race_name'] = 'Performance Race',
        ['profile_race_desc'] = 'Maximum power output for track use. Significantly increases performance at the cost of efficiency.',
        ['profile_custom_name'] = 'Custom Parameters',
        ['profile_custom_desc'] = 'Manually configure engine parameters for specific performance requirements.',
        
        -- Warnings
        ['warranty_ok'] = 'Warranty OK',
        ['warranty_risk'] = 'Warranty Risk',
        ['race_warning_text'] = 'Race mode increases engine stress and component wear. Recommended for track use only. Warranty coverage may be affected.',
        
        -- Custom Parameters
        ['engine_power'] = 'Engine Power',
        ['torque_output'] = 'Torque Output',
        ['top_speed'] = 'Top Speed',
        
        -- Console Messages
        ['console_ready'] = 'ECU Programming Suite ready for profile selection',
        ['console_vehicle_info'] = 'Current vehicle',
        ['console_baseline'] = 'Baseline HP',
        ['console_current'] = 'Current HP',
        ['console_selected'] = 'selected',
        ['console_predicted'] = 'Predicted changes',
        ['console_programming'] = 'mode programming initiated',
        ['console_complete'] = 'Programming complete! Returning to main interface...'
    },
    
    ['pt'] = {
        -- Notifications
        ['no_permission'] = 'Você não tem permissão para usar o sistema OBD',
        ['no_vehicle_nearby'] = 'Nenhum veículo por perto',
        ['vehicle_engine_off'] = 'O motor do veículo deve estar ligado', 
        ['scan_started'] = 'Escaneamento ECU iniciado',
        ['scan_completed'] = 'Escaneamento ECU concluído com sucesso',
        ['dyno_started'] = 'Teste do dinamômetro iniciado',
        ['dyno_completed'] = 'Teste dyno concluído',
        ['programming_started'] = 'Programação ECU iniciada',
        ['programming_completed'] = 'Programação ECU concluída com sucesso',
        ['programming_failed'] = 'Programação ECU falhou',
        ['item_required'] = 'Tablet OBD necessário',
        
        -- Main UI
        ['main_title'] = 'OBD Pro',
        ['main_subtitle'] = 'Suite Profissional de Diagnóstico Automotivo',
        ['connection_connected'] = 'Conectado',
        ['connection_disconnected'] = 'Desconectado',
        
        -- Continue with Portuguese translations...
        ['vehicle_health'] = 'Saúde',
        ['fuel_level'] = 'Nível Combustível',
        ['coolant_temp'] = 'Refrigeração',
        ['oil_pressure'] = 'Pressão Óleo'
        -- Add more Portuguese translations as needed
    }
}

-- ============================================================================
--                    INVENTORY INTEGRATION SETTINGS
-- ============================================================================
Config.InventoryIntegrations = {
    ['ox_inventory'] = {
        type = 'ox_inventory',
        checkItem = 'ox_inventory:GetInventoryItems',
        useItem = 'ox_inventory:UseItem'
    },
    ['qb-inventory'] = {
        type = 'qb-inventory', 
        checkItem = 'qb-inventory:GetInventory',
        useItem = 'qb-inventory:UseItem'
    },
    ['qs-inventory'] = {
        type = 'qs-inventory',
        checkItem = 'qs-inventory:GetInventory', 
        useItem = 'qs-inventory:UseItem'
    },
    ['esx_inventoryhud'] = {
        type = 'esx_inventoryhud',
        checkItem = 'esx_inventoryhud:GetInventory',
        useItem = 'esx_inventoryhud:UseItem' 
    },
    ['lj-inventory'] = {
        type = 'lj-inventory',
        checkItem = 'lj-inventory:GetInventory',
        useItem = 'lj-inventory:UseItem'
    }
}

Last updated