CrazyGhost 发表于 2024-10-17 07:30:04

汉化保留原代码


-- OX INVENTORY ITEMS
-- DO NOT COPY PASTE THIS FILE JUST COPY THE ITEMS WITHIN THE TABLE BELOW!
Config.Items = {
-- Servicing Items
["engine_oil"] = {
    label = "Engine Oil",
    weight = 1000,
},
["tyre_replacement"] = {
    label = "Tyre Replacement",
    weight = 1000,
},
["clutch_replacement"] = {
    label = "Clutch Replacement",
    weight = 1000,
},
["air_filter"] = {
    label = "Air Filter",
    weight = 100,
},
["spark_plug"] = {
    label = "Spark Plug",
    weight = 1000,
},
["brakepad_replacement"] = {
    label = "Brakepad Replacement",
    weight = 1000,
},
["suspension_parts"] = {
    label = "Suspension Parts",
    weight = 1000,
},
-- Engine Items
["i4_engine"] = {
    label = "I4 Engine",
    weight = 1000,
},
["v6_engine"] = {
    label = "V6 Engine",
    weight = 1000,
},
["v8_engine"] = {
    label = "V8 Engine",
    weight = 1000,
},
["v12_engine"] = {
    label = "V12 Engine",
    weight = 1000,
},
["turbocharger"] = {
    label = "Turbocharger",
    weight = 1000,
},
-- Electric Engines
["ev_motor"] = {
    label = "EV Motor",
    weight = 1000,
},
["ev_battery"] = {
    label = "EV Battery",
    weight = 1000,
},
["ev_coolant"] = {
    label = "EV Coolant",
    weight = 1000,
},
-- Drivetrain Items
["awd_drivetrain"] = {
    label = "AWD Drivetrain",
    weight = 1000,
},
["rwd_drivetrain"] = {
    label = "RWD Drivetrain",
    weight = 1000,
},
["fwd_drivetrain"] = {
    label = "FWD Drivetrain",
    weight = 1000,
},
-- Tuning Items
["slick_tyres"] = {
    label = "Slick Tyres",
    weight = 1000,
},
["semi_slick_tyres"] = {
    label = "Semi Slick Tyres",
    weight = 1000,
},
["offroad_tyres"] = {
    label = "Offroad Tyres",
    weight = 1000,
},
["drift_tuning_kit"] = {
    label = "Drift Tuning Kit",
    weight = 1000,
},
["ceramic_brakes"] = {
    label = "Ceramic Brakes",
    weight = 1000,
},
-- Cosmetic Items
["lighting_controller"] = {
    label = "Lighting Controller",
    weight = 100,
    client = {
      event = "jg-mechanic:client:show-lighting-controller",
    }
},
["stancing_kit"] = {
    label = "Stancer Kit",
    weight = 100,
    client = {
      event = "jg-mechanic:client:show-stancer-kit",
    }
},
["cosmetic_part"] = {
    label = "Cosmetic Parts",
    weight = 100,
},
["respray_kit"] = {
    label = "Respray Kit",
    weight = 1000,
},
["vehicle_wheels"] = {
    label = "Vehicle Wheels Set",
    weight = 1000,
},
["tyre_smoke_kit"] = {
    label = "Tyre Smoke Kit",
    weight = 1000,
},
["bulletproof_tyres"] = {
    label = "Bulletproof Tyres",
    weight = 1000,
},
["extras_kit"] = {
    label = "Extras Kit",
    weight = 1000,
},
-- Nitrous & Cleaning Items
["nitrous_bottle"] = {
    label = "Nitrous Bottle",
    weight = 1000,
    client = {
      event = "jg-mechanic:client:use-nitrous-bottle",
    }
},
["empty_nitrous_bottle"] = {
    label = "Empty Nitrous Bottle",
    weight = 1000,
},
["nitrous_install_kit"] = {
    label = "Nitrous Install Kit",
    weight = 1000,
},
["cleaning_kit"] = {
    label = "Cleaning Kit",
    weight = 1000,
    client = {
      event = "jg-mechanic:client:clean-vehicle",
    }
},
["repair_kit"] = {
    label = "Repair Kit",
    weight = 1000,
    client = {
      event = "jg-mechanic:client:repair-vehicle",
    }
},
["duct_tape"] = {
    label = "Duct Tape",
    weight = 1000,
    client = {
      event = "jg-mechanic:client:use-duct-tape",
    }
},
-- Performance Item
["performance_part"] = {
    label = "Performance Parts",
    weight = 1000,
},
-- Mechanic Tablet Item
["mechanic_tablet"] = {
    label = "Mechanic Tablet",
    weight = 1000,
    client = {
      event = "jg-mechanic:client:use-tablet",
    }
}
}


ChatGPT 发表于 2024-10-17 07:30:50

-- OX INVENTORY ITEMS
-- DO NOT COPY PASTE THIS FILE JUST COPY THE ITEMS WITHIN THE TABLE BELOW!
Config.Items = {
-- 服务用品
["engine_oil"] = {
    label = "发动机油",
    weight = 1000,
},
["tyre_replacement"] = {
    label = "轮胎更换",
    weight = 1000,
},
["clutch_replacement"] = {
    label = "离合器更换",
    weight = 1000,
},
["air_filter"] = {
    label = "空气过滤器",
    weight = 100,
},
["spark_plug"] = {
    label = "火花塞",
    weight = 1000,
},
["brakepad_replacement"] = {
    label = "刹车片更换",
    weight = 1000,
},
["suspension_parts"] = {
    label = "悬挂部件",
    weight = 1000,
},
-- 引擎部件
["i4_engine"] = {
    label = "I4 发动机",
    weight = 1000,
},
["v6_engine"] = {
    label = "V6 发动机",
    weight = 1000,
},
["v8_engine"] = {
    label = "V8 发动机",
    weight = 1000,
},
["v12_engine"] = {
    label = "V12 发动机",
    weight = 1000,
},
["turbocharger"] = {
    label = "涡轮增压器",
    weight = 1000,
},
-- 电动引擎
["ev_motor"] = {
    label = "电动机",
    weight = 1000,
},
["ev_battery"] = {
    label = "电池",
    weight = 1000,
},
["ev_coolant"] = {
    label = "冷却液",
    weight = 1000,
},
-- 驱动系统部件
["awd_drivetrain"] = {
    label = "全轮驱动系统",
    weight = 1000,
},
["rwd_drivetrain"] = {
    label = "后驱系统",
    weight = 1000,
},
["fwd_drivetrain"] = {
    label = "前驱系统",
    weight = 1000,
},
-- 调校部件
["slick_tyres"] = {
    label = "光头轮胎",
    weight = 1000,
},
["semi_slick_tyres"] = {
    label = "半光头轮胎",
    weight = 1000,
},
["offroad_tyres"] = {
    label = "越野轮胎",
    weight = 1000,
},
["drift_tuning_kit"] = {
    label = "漂移调校套件",
    weight = 1000,
},
["ceramic_brakes"] = {
    label = "陶瓷刹车",
    weight = 1000,
},
-- 外观部件
["lighting_controller"] = {
    label = "灯光控制器",
    weight = 100,
    client = {
      event = "jg-mechanic:client:show-lighting-controller",
    }
},
["stancing_kit"] = {
    label = "车身姿态套件",
    weight = 100,
    client = {
      event = "jg-mechanic:client:show-stancer-kit",
    }
},
["cosmetic_part"] = {
    label = "外观部件",
    weight = 100,
},
["respray_kit"] = {
    label = "喷漆套件",
    weight = 1000,
},
["vehicle_wheels"] = {
    label = "车辆轮胎套件",
    weight = 1000,
},
["tyre_smoke_kit"] = {
    label = "轮胎烟雾套件",
    weight = 1000,
},
["bulletproof_tyres"] = {
    label = "防弹轮胎",
    weight = 1000,
},
["extras_kit"] = {
    label = "附加部件套件",
    weight = 1000,
},
-- 笑气和清洁用品
["nitrous_bottle"] = {
    label = "笑气瓶",
    weight = 1000,
    client = {
      event = "jg-mechanic:client:use-nitrous-bottle",
    }
},
["empty_nitrous_bottle"] = {
    label = "空笑气瓶",
    weight = 1000,
},
["nitrous_install_kit"] = {
    label = "笑气安装套件",
    weight = 1000,
},
["cleaning_kit"] = {
    label = "清洁工具包",
    weight = 1000,
    client = {
      event = "jg-mechanic:client:clean-vehicle",
    }
},
["repair_kit"] = {
    label = "修理工具包",
    weight = 1000,
    client = {
      event = "jg-mechanic:client:repair-vehicle",
    }
},
["duct_tape"] = {
    label = "胶带",
    weight = 1000,
    client = {
      event = "jg-mechanic:client:use-duct-tape",
    }
},
-- 性能部件
["performance_part"] = {
    label = "性能部件",
    weight = 1000,
},
-- 机械平板电脑
["mechanic_tablet"] = {
    label = "机械平板电脑",
    weight = 1000,
    client = {
      event = "jg-mechanic:client:use-tablet",
    }
}
}

CrazyGhost 发表于 2024-10-17 07:34:03

Config = {}

-- Integrations (recommended to leave as "auto")
Config.Framework = "auto" -- or "QBCore", "Qbox", "ESX"
Config.Inventory = "auto" -- or "ox_inventory", "qb-inventory", "esx_inventory"
Config.Notifications = "auto" -- or "default", "ox_lib", "ps-ui", "okokNotify"
Config.ProgressBar = "auto" -- or "ox-circle", "ox-bar", "qb"
Config.SkillCheck = "auto" -- or "ox", "qb"
Config.DrawText = "auto" -- or "jg-textui", "ox_lib", "okokTextUI", "ps-ui", "qb"
Config.SocietyBanking = "auto" -- or "okokBanking", "fd_banking", "Renewed-Banking", "qb-banking", "qb-management", "esx_addonaccount"

-- Localisation
Config.Locale = "en"
Config.NumberAndDateFormat = "en-US"
Config.Currency = "USD"

-- Set to false to use built-in job system
Config.UseFrameworkJobs = true

-- Mechanic Tablet
Config.UseTabletCommand = "tablet" -- set to false to disable command
Config.TabletConnectionMaxDistance = 4.0

-- Skill Bars
Config.UseSkillbars = true -- set to false to use progress bars instead of skill bars for installations
Config.ProgressBarDuration = 10000 -- if not using skill bars, this is the progress bar duration in ms (10000 = 10 seconds)
Config.MaximumSkillCheckAttempts = 3 -- How many times the player can attempt a skill check before the skill check fails
Config.SkillCheckDifficulty = { "easy", "easy", "easy", "easy", "easy" } -- for ox only
Config.SkillCheckInputs = { "w", "a", "s", "d" } -- for ox only

-- Servicing
Config.EnableVehicleServicing = true
Config.ServiceRequiredThreshold = 20 -- [%] if any of the servicable parts hit this %, it will flag that the vehicle needs servicing
Config.ServicingBlacklist = {
"police", "police2" -- Vehicles that are excluded from servicing damage
}

-- Nitrous
Config.NitrousScreenEffects = true
Config.NitrousRearLightTrails = true -- Only really visible at night
Config.NitrousPowerIncreaseMult = 2.0
Config.NitrousDefaultKeyMapping = "RMENU"
Config.NitrousMaxBottlesPerVehicle = 3 -- The UI can't really handle more than 7, more than that would be unrealistic anyway
Config.NitrousBottleDuration = 10 -- How long a nitrous tank lasts
Config.NitrousBottleCooldown = 5 -- How long until player can start using the next bottle
Config.NitrousPurgeDrainRate = 0.1 -- purging drains bottle only 10% as fast as actually boosting - set to 1 to drain at the same rate

-- Stancing
Config.StanceMinSuspensionHeight = -0.3
Config.StanceMaxSuspensionHeight = 0.3
Config.StanceMinCamber = 0.0
Config.StanceMaxCamber = 0.5
Config.StanceMinTrackWidth = 0.5
Config.StanceMaxTrackWidth = 1.25
Config.StanceNearbyVehiclesFreqMs = 500

-- Repairs
Config.AllowFixingAtOwnedMechanicsIfNoOneOnDuty = false
Config.DuctTapeMinimumEngineHealth = 100.0
Config.DuctTapeEngineHealthIncrease = 150.0

-- Tuning
Config.TuningGiveInstalledItemBackOnRemoval = false

-- Locations
Config.UseCarLiftPrompt = " Use car lift"
Config.UseCarLiftKey = 38
Config.CustomiseVehiclePrompt = " Customise vehicle"
Config.CustomiseVehicleKey = 38

-- Update vehicle props whenever they are changed
-- You can set to false to leave saving any usual props vehicle changes such as
-- GTA performance, cosmetic, colours, wheels, etc to the garage or other scripts
-- that persist the props data to the database. Additional data from this script,
-- such as engine swaps, servicing etc is not affected as it's saved differently
Config.UpdatePropsOnChange = true

-- Misc
Config.UniqueBlips = true
Config.ModsPricesAsPercentageOfVehicleValue = true -- Enable pricing tuning items as % of vehicle value - it tries jg-dealerships, then QBShared, then the vehicles meta file automagically for pricing data
Config.AdminsHaveEmployeePermissions = false -- admins can use tablet & interact with mechanics like an owner
Config.MechanicEmployeesCanSelfServiceMods = false -- set to true to allow mechanic employees to bypass the "place order" system at their own mechanic
Config.FullRepairAdminCommand = "vfix"
Config.MechanicAdminCommand = "mechanicadmin"
Config.ChangePlateDuringPreview = false

-- Mechanic Locations
Config.MechanicLocations = {
bennys = {
    type = "self-service",
    logo = "bennys.png", -- logos go in /logos
    locations = {
      {
      coords = vector3(-211.6, -1324.73, 30.23),
      size = 10.0,
      showBlip = true,
      }
    },
    blip = {
      id = 446,
      color = 47,
      scale = 0.7
    },
    mods = {
      repair         = { enabled = true, price = 500, percentVehVal = 0.01 },
      performance      = { enabled = true, price = 500, percentVehVal = 0.01, priceMult = 0.1 },
      cosmetics      = { enabled = true, price = 500, percentVehVal = 0.01, priceMult = 0.1 },
      stance         = { enabled = true, price = 500, percentVehVal = 0.01 },
      respray          = { enabled = true, price = 500, percentVehVal = 0.01 },
      wheels         = { enabled = true, price = 500, percentVehVal = 0.01, priceMult = 0.1 },
      neonLights       = { enabled = true, price = 500, percentVehVal = 0.01 },
      headlights       = { enabled = true, price = 500, percentVehVal = 0.01 },
      tyreSmoke      = { enabled = true, price = 500, percentVehVal = 0.01 },
      bulletproofTyres = { enabled = true, price = 500, percentVehVal = 0.01 },
      extras         = { enabled = true, price = 500, percentVehVal = 0.01 }
    },
},
lscustoms = {
    type = "owned",
    job = "mechanic",
    jobManagementRanks = {4},
    logo = "ls_customs.png",
    locations = {
      {
      coords = vector3(-337.25, -137.2, 38.35),
      size = 10.0,
      showBlip = true,
      },
      {
      coords = vector3(-324.2, -132.0, 38.54),
      size = 5.0,
      showBlip = false,
      employeeOnly = true,
      }
    },
    blip = {
      id = 446,
      color = 47,
      scale = 0.7
    },
    mods = {
      repair         = { enabled = true, price = 500, percentVehVal = 0.01 },
      performance      = { enabled = true, price = 500, percentVehVal = 0.01, priceMult = 0.1 },
      cosmetics      = { enabled = true, price = 500, percentVehVal = 0.01, priceMult = 0.1 },
      stance         = { enabled = true, price = 500, percentVehVal = 0.01 },
      respray          = { enabled = true, price = 500, percentVehVal = 0.01 },
      wheels         = { enabled = true, price = 500, percentVehVal = 0.01, priceMult = 0.1 },
      neonLights       = { enabled = true, price = 500, percentVehVal = 0.01 },
      headlights       = { enabled = true, price = 500, percentVehVal = 0.01 },
      tyreSmoke      = { enabled = true, price = 500, percentVehVal = 0.01 },
      bulletproofTyres = { enabled = true, price = 500, percentVehVal = 0.01 },
      extras         = { enabled = true, price = 500, percentVehVal = 0.01 }
    },
    tuning = {
      engineSwaps      = { enabled = true, requiresItem = true },
      drivetrains      = { enabled = true, requiresItem = true },
      turbocharging    = { enabled = true, requiresItem = true },
      tyres            = { enabled = true, requiresItem = true },
      brakes         = { enabled = true, requiresItem = true },
      driftTuning      = { enabled = true, requiresItem = true },
    },
    carLifts = { -- only usable by employees
      vector4(-357.45, -114.17, 38.7, 339.89)
    }
},
}

-- Add electric vehicles to disable combustion engine features
-----------------------------------------------------------------------
-- PLEASE NOTE: In b3258 (Bottom Dollar Bounties) and newer, electric
-- vehicles are detected automatically, so this list is not used!
Config.ElectricVehicles = {
"Airtug",   "buffalo5",   "caddy",
"Caddy2",   "caddy3",   "coureur",
"cyclone",    "cyclone2",   "imorgon",
"inductor",   "iwagen",   "khamelion",
"metrotrain", "minitank",   "neon",
"omnisegt",   "powersurge", "raiden",
"rcbandito","surge",      "tezeract",
"virtue",   "vivanite",   "voltic",
"voltic2",
}

-- Nerd options
Config.DisableSound = false
Config.AutoRunSQL = true
Config.Debug = false

ChatGPT 发表于 2024-10-17 07:34:27

CrazyGhost 发表于 2024-10-17 07:34
Config = {}

-- Integrations (recommended to leave ...

Config = {}

-- 集成 (推荐保持为“自动”)
Config.Framework = "auto" -- 或者 "QBCore", "Qbox", "ESX"
Config.Inventory = "auto" -- 或者 "ox_inventory", "qb-inventory", "esx_inventory"
Config.Notifications = "auto" -- 或者 "default", "ox_lib", "ps-ui", "okokNotify"
Config.ProgressBar = "auto" -- 或者 "ox-circle", "ox-bar", "qb"
Config.SkillCheck = "auto" -- 或者 "ox", "qb"
Config.DrawText = "auto" -- 或者 "jg-textui", "ox_lib", "okokTextUI", "ps-ui", "qb"
Config.SocietyBanking = "auto" -- 或者 "okokBanking", "fd_banking", "Renewed-Banking", "qb-banking", "qb-management", "esx_addonaccount"

-- 本地化
Config.Locale = "zh" -- 语言设置为中文
Config.NumberAndDateFormat = "zh-CN" -- 数字和日期格式
Config.Currency = "CNY" -- 货币设置为人民币

-- 设置为 false 将使用内置的工作系统
Config.UseFrameworkJobs = true

-- 机械平板电脑
Config.UseTabletCommand = "tablet" -- 设置为 false 以禁用命令
Config.TabletConnectionMaxDistance = 4.0

-- 技能条
Config.UseSkillbars = true -- 设置为 false 使用进度条而不是技能条进行安装
Config.ProgressBarDuration = 10000 -- 如果不使用技能条,则进度条持续时间(毫秒) (10000 = 10 秒)
Config.MaximumSkillCheckAttempts = 3 -- 玩家可以尝试技能检查的次数,超过将失败
Config.SkillCheckDifficulty = { "easy", "easy", "easy", "easy", "easy" } -- 对于 ox 仅适用
Config.SkillCheckInputs = { "w", "a", "s", "d" } -- 对于 ox 仅适用

-- 服务
Config.EnableVehicleServicing = true
Config.ServiceRequiredThreshold = 20 -- 如果任何可服务部件达到此百分比,将标记该车辆需要服务
Config.ServicingBlacklist = {
"police", "police2" -- 被排除在服务损坏之外的车辆
}

-- 笑气
Config.NitrousScreenEffects = true
Config.NitrousRearLightTrails = true -- 只有晚上可见
Config.NitrousPowerIncreaseMult = 2.0
Config.NitrousDefaultKeyMapping = "RMENU"
Config.NitrousMaxBottlesPerVehicle = 3 -- 界面不适合处理超过7个,更多显得不现实
Config.NitrousBottleDuration = 10 -- 一个笑气瓶持续的时间
Config.NitrousBottleCooldown = 5 -- 玩家可以开始使用下一个瓶子的时间间隔
Config.NitrousPurgeDrainRate = 0.1 -- 排气仅以10%的速度消耗瓶子

-- 车身姿态
Config.StanceMinSuspensionHeight = -0.3
Config.StanceMaxSuspensionHeight = 0.3
Config.StanceMinCamber = 0.0
Config.StanceMaxCamber = 0.5
Config.StanceMinTrackWidth = 0.5
Config.StanceMaxTrackWidth = 1.25
Config.StanceNearbyVehiclesFreqMs = 500

-- 修理
Config.AllowFixingAtOwnedMechanicsIfNoOneOnDuty = false
Config.DuctTapeMinimumEngineHealth = 100.0
Config.DuctTapeEngineHealthIncrease = 150.0

-- 调校
Config.TuningGiveInstalledItemBackOnRemoval = false

-- 位置
Config.UseCarLiftPrompt = "使用升降机"
Config.UseCarLiftKey = 38
Config.CustomiseVehiclePrompt = "自定义车辆"
Config.CustomiseVehicleKey = 38

-- 更新车辆属性,每当其更改时
-- 设置为 false 将保留将任何通常属性变更(如 GTA 性能、外观、颜色、轮子等)保存到车库或其他脚本
-- 该脚本的附加数据(如发动机更换、服务等)不会受到影响,因为它以不同方式保存
Config.UpdatePropsOnChange = true

-- 杂项
Config.UniqueBlips = true
Config.ModsPricesAsPercentageOfVehicleValue = true -- 以车辆价值的百分比为调校物品定价 - 它首先尝试 jg-dealerships,然后是 QBShared,然后是自动检测车辆meta文件的价格数据
Config.AdminsHaveEmployeePermissions = false -- 管理员可以使用平板电脑并与机械师以所有者身份互动
Config.MechanicEmployeesCanSelfServiceMods = false -- 设置为 true 允许机械工员工在他们自己的修理厂无视“下订单”系统
Config.FullRepairAdminCommand = "vfix"
Config.MechanicAdminCommand = "mechanicadmin"
Config.ChangePlateDuringPreview = false

-- 机械位置
Config.MechanicLocations = {
bennys = {
    type = "self-service",
    logo = "bennys.png", -- 标志存放在 /logos
    locations = {
      {
      coords = vector3(-211.6, -1324.73, 30.23),
      size = 10.0,
      showBlip = true,
      }
    },
    blip = {
      id = 446,
      color = 47,
      scale = 0.7
    },
    mods = {
      repair         = { enabled = true, price = 500, percentVehVal = 0.01 },
      performance      = { enabled = true, price = 500, percentVehVal = 0.01, priceMult = 0.1 },
      cosmetics      = { enabled = true, price = 500, percentVehVal = 0.01, priceMult = 0.1 },
      stance         = { enabled = true, price = 500, percentVehVal = 0.01 },
      respray          = { enabled = true, price = 500, percentVehVal = 0.01 },
      wheels         = { enabled = true, price = 500, percentVehVal = 0.01, priceMult = 0.1 },
      neonLights       = { enabled = true, price = 500, percentVehVal = 0.01 },
      headlights       = { enabled = true, price = 500, percentVehVal = 0.01 },
      tyreSmoke      = { enabled = true, price = 500, percentVehVal = 0.01 },
      bulletproofTyres = { enabled = true, price = 500, percentVehVal = 0.01 },
      extras         = { enabled = true, price = 500, percentVehVal = 0.01 }
    },
},
lscustoms = {
    type = "owned",
    job = "mechanic",
    jobManagementRanks = {4},
    logo = "ls_customs.png",
    locations = {
      {
      coords = vector3(-337.25, -137.2, 38.35),
      size = 10.0,
      showBlip = true,
      },
      {
      coords = vector3(-324.2, -132.0, 38.54),
      size = 5.0,
      showBlip = false,
      employeeOnly = true,
      }
    },
    blip = {
      id = 446,
      color = 47,
      scale = 0.7
    },
    mods = {
      repair         = { enabled = true, price = 500, percentVehVal = 0.01 },
      performance      = { enabled = true, price = 500, percentVehVal = 0.01, priceMult = 0.1 },
      cosmetics      = { enabled = true, price = 500, percentVehVal = 0.01, priceMult = 0.1 },
      stance         = { enabled = true, price = 500, percentVehVal = 0.01 },
      respray          = { enabled = true, price = 500, percentVehVal = 0.01 },
      wheels         = { enabled = true, price = 500, percentVehVal = 0.01, priceMult = 0.1 },
      neonLights       = { enabled = true, price = 500, percentVehVal = 0.01 },
      headlights       = { enabled = true, price = 500, percentVehVal = 0.01 },
      tyreSmoke      = { enabled = true, price = 500, percentVehVal = 0.01 },
      bulletproofTyres = { enabled = true, price = 500, percentVehVal = 0.01 },
      extras         = { enabled = true, price = 500, percentVehVal = 0.01 }
    },
    tuning = {
      engineSwaps      = { enabled = true, requiresItem = true },
      drivetrains      = { enabled = true, requiresItem = true },
      turbocharging    = { enabled = true, requiresItem = true },
      tyres            = { enabled = true, requiresItem = true },
      brakes         = { enabled = true, requiresItem = true },
      driftTuning      = { enabled = true, requiresItem = true },
    },
    carLifts = { -- 仅员工可用
      vector4(-357.45, -114.17, 38.7, 339.89)
    }
},
}

-- 添加电动车以禁用内燃机功能
-----------------------------------------------------------------------
-- 请注意:在 b3258 (Bottom Dollar Bounties) 和更新版本中,电动车
-- 将自动检测,因此此列表不再使用!
Config.ElectricVehicles = {
"Airtug",   "buffalo5",   "caddy",
"Caddy2",   "caddy3",   "coureur",
"cyclone",    "cyclone2",   "imorgon",
"inductor",   "iwagen",   "khamelion",
"metrotrain", "minitank",   "neon",
"omnisegt",   "powersurge", "raiden",
"rcbandito","surge",      "tezeract",
"virtue",   "vivanite",   "voltic",
"voltic2",
}

-- 高级选项
Config.DisableSound = false
Config.AutoRunSQL = true
Config.Debug = false

这是配置文件的中文翻译版本,所有注释和字符串都已翻译为中文,其余代码部分保持不变。请根据需要调整和使用。

CrazyGhost 发表于 2024-10-17 07:49:30

---------------------------------------------------------------------------------------
---------------------------------- GTA MODIFICATIONS ----------------------------------
---------------------------------------------------------------------------------------
-- All the base GTA modifications. You *probably* won't need to modify this file
-- unless you a nerd and know what you are going. In that case, have fun <3
---------------------------------------------------------------------------------------

Config.Mods = {}

Config.Mods.ItemsRequired = {
repair = { itemName = "repair_kit", removeItem = true },
performance = { itemName = "performance_part", removeItem = true },
cosmetics = { itemName = "cosmetic_part", removeItem = true },
stance = { itemName = "stancing_kit", removeItem = false },
respray = { itemName = "respray_kit", removeItem = true },
wheels = { itemName = "vehicle_wheels", removeItem = true },
neonLights = { itemName = "lighting_controller", removeItem = true },
headlights = { itemName = "lighting_controller", removeItem = true },
tyreSmoke = { itemName = "tyre_smoke_kit", removeItem = true },
bulletproofTyres = { itemName = "bulletproof_tyres", removeItem = true },
extras = { itemName = "extras_kit", removeItem = true }
}

Config.Mods.Performance = {
{ modType = 11, name = "Engine" },
{ modType = 12, name = "Brakes" },
{ modType = 13, name = "Transmission" },
{ modType = 15, name = "Suspension" },
{ modType = 16, name = "Armour" },
{ modType = 18, name = "Turbocharging", toggle = true }
}

Config.Mods.Cosmetics = {
{ modType = 0, name = "Spoilers" },
{ modType = 1, name = "Front Bumper" },
{ modType = 2, name = "Rear Bumper" },
{ modType = 3, name = "Side Skirt" },
{ modType = 4, name = "Exhaust" },
{ modType = 5, name = "Chassis" },
{ modType = 6, name = "Grill" },
{ modType = 7, name = "Bonnet" },
{ modType = 8, name = "Left Wing" },
{ modType = 9, name = "Right Wing" },
{ modType = 10, name = "Roof" },
{ modType = 14, name = "Horn" },
{ modType = 19, name = "Subwoofer" },
{ modType = 21, name = "Hydraulics" },
{ modType = 25, name = "Plate Holders" },
{ modType = 26, name = "Vanity Plate" },
{ modType = 27, name = "Trim Design" },
{ modType = 28, name = "Ornaments" },
{ modType = 29, name = "Dashboard" },
{ modType = 30, name = "Dial Design" },
{ modType = 31, name = "Door Speaker" },
{ modType = 32, name = "Seats" },
{ modType = 33, name = "Steering Wheel" },
{ modType = 34, name = "Shift Lever" },
{ modType = 35, name = "Plaques" },
{ modType = 36, name = "ICE" },
{ modType = 37, name = "Trunk" },
{ modType = 38, name = "Hydraulics" },
{ modType = 39, name = "Engine Block" },
{ modType = 40, name = "Air Filter/Boost" },
{ modType = 41, name = "Struts" },
{ modType = 42, name = "Arch Cover" },
{ modType = 43, name = "Aerials" },
{ modType = 44, name = "Trim" },
{ modType = 45, name = "Tank" },
{ modType = 46, name = "Door Left" },
{ modType = 47, name = "Door Right" },
{ modType = 48, name = "Stickers" },
{ modType = 49, name = "Lightbar" },

-- Named cosmetics
{ modType = "LIVERY", name = "Livery" },
{ modType = "LIVERY_ROOF", name = "Livery Roof" },
{ modType = "PLATE_INDEX", name = "Plate Index" },
{ modType = "WINDOW_TINT", name = "Window Tint" }
}

Config.Mods.PlateIndexes = {
{ modIndex = 0, name = "Blue On White" },
{ modIndex = 1, name = "Yellow On Black" },
{ modIndex = 2, name = "Yellow On Blue" },
{ modIndex = 3, name = "Blue On White" },
{ modIndex = 4, name = "Blue On White" },
{ modIndex = 5, name = "North Yankton" },

-- mp2023_02 (Chop Shop) only
{ modIndex = 6, name = "eCola" },
{ modIndex = 7, name = "Las Venturas" },
{ modIndex = 8, name = "Liberty City" },
{ modIndex = 9, name = "Los Santos Car Meet" },
{ modIndex = 10, name = "Los Santos Panic" },
{ modIndex = 11, name = "Los Santos Pounders" },
{ modIndex = 12, name = "Sprunk" }
}

Config.Mods.WindowTints = {
{ modIndex = 0, name = "No Tint" },
{ modIndex = 3, name = "Lightsmoke" },
{ modIndex = 2, name = "Darksmoke" },
{ modIndex = 1, name = "Pure Black" }
}

Config.Mods.WheelTypes = {
{ modIndex = 0, name = "Sport" },
{ modIndex = 1, name = "Muscle" },
{ modIndex = 2, name = "Lowrider" },
{ modIndex = 3, name = "SUV" },
{ modIndex = 4, name = "Offroad" },
{ modIndex = 5, name = "Tuner" },
{ modIndex = 6, name = "Bike" },
{ modIndex = 7, name = "High End" },
{ modIndex = 8, name = "Benny's Original" },
{ modIndex = 9, name = "Benny's Bespoke" },
{ modIndex = 10, name = "Open Wheel" },
{ modIndex = 11, name = "Street" },
{ modIndex = 12, name = "Track" },
}

Config.Mods.Horns = {
{ modIndex = -1, name = "Stock", musical = false },
{ modIndex = 0,name = "Truck Horn", musical = false },
{ modIndex = 1,name = "Cop Horn", musical = false },
{ modIndex = 2,name = "Clown Horn", musical = false },
{ modIndex = 3,name = "Musical Horn 1", musical = true },
{ modIndex = 4,name = "Musical Horn 2", musical = true },
{ modIndex = 5,name = "Musical Horn 3", musical = true },
{ modIndex = 6,name = "Musical Horn 4", musical = true },
{ modIndex = 7,name = "Musical Horn 5", musical = true },
{ modIndex = 8,name = "Sad Trombone", musical = true },
{ modIndex = 9,name = "Classical Horn 1", musical = true },
{ modIndex = 10, name = "Classical Horn 2", musical = true },
{ modIndex = 11, name = "Classical Horn 3", musical = true },
{ modIndex = 12, name = "Classical Horn 4", musical = true },
{ modIndex = 13, name = "Classical Horn 5", musical = true },
{ modIndex = 14, name = "Classical Horn 6", musical = true },
{ modIndex = 15, name = "Classical Horn 7", musical = true },
{ modIndex = 16, name = "Scale - Do", musical = false },
{ modIndex = 17, name = "Scale - Re", musical = false },
{ modIndex = 18, name = "Scale - Mi", musical = false },
{ modIndex = 19, name = "Scale - Fa", musical = false },
{ modIndex = 20, name = "Scale - Sol", musical = false },
{ modIndex = 21, name = "Scale - La", musical = false },
{ modIndex = 22, name = "Scale - Ti", musical = false },
{ modIndex = 23, name = "Scale - Do", musical = false },
{ modIndex = 24, name = "Jazz Horn 1", musical = true },
{ modIndex = 25, name = "Jazz Horn 2", musical = true },
{ modIndex = 26, name = "Jazz Horn 3", musical = true },
{ modIndex = 27, name = "Jazz Horn Loop", musical = true },
{ modIndex = 28, name = "Star Spangled Banner 1", musical = true },
{ modIndex = 29, name = "Star Spangled Banner 2", musical = true },
{ modIndex = 30, name = "Star Spangled Banner 3", musical = true },
{ modIndex = 31, name = "Star Spangled Banner 4", musical = true },
{ modIndex = 32, name = "Classical Horn 8 Loop", musical = true },
{ modIndex = 33, name = "Classical Horn 9 Loop", musical = true },
{ modIndex = 34, name = "Classical Horn 10 Loop", musical = true },
{ modIndex = 35, name = "Classical Horn 8", musical = true },
{ modIndex = 36, name = "Classical Horn 9", musical = true },
{ modIndex = 37, name = "Classical Horn 10", musical = true },
{ modIndex = 38, name = "Funeral Loop", musical = true },
{ modIndex = 39, name = "Funeral", musical = true },
{ modIndex = 40, name = "Spooky Loop", musical = true },
{ modIndex = 41, name = "Spooky", musical = true },
{ modIndex = 42, name = "San Andreas Loop", musical = true },
{ modIndex = 43, name = "San Andreas", musical = true },
{ modIndex = 44, name = "Liberty City Loop", musical = true },
{ modIndex = 45, name = "Liberty City", musical = true },
{ modIndex = 46, name = "Festive 1 Loop", musical = true },
{ modIndex = 47, name = "Festive 1", musical = true },
{ modIndex = 48, name = "Festive 2 Loop", musical = true },
{ modIndex = 49, name = "Festive 2", musical = true },
{ modIndex = 50, name = "Festive 3 Loop", musical = true },
{ modIndex = 51, name = "Festive 3", musical = true },
{ modIndex = 52, name = "Air Horn Low Loop", musical = false },
{ modIndex = 53, name = "Air Horn Low", musical = false },
{ modIndex = 54, name = "Air Horn Medium Loop", musical = false },
{ modIndex = 55, name = "Air Horn Medium", musical = false },
{ modIndex = 56, name = "Air Horn High Loop", musical = false },
{ modIndex = 57, name = "Air Horn High", musical = false },
}

Config.Mods.Colours = {
{ name = "Primary", paintTypeKey = "paintType1", colourKey = "color1" },
{ name = "Secondary", paintTypeKey = "paintType2", colourKey = "color2" },
{ name = "Pearlescent", colourIdKey = "pearlescentColor" },
{ name = "Dashboard", colourIdKey = "dashboardColor" },
{ name = "Interior", colourIdKey = "interiorColor" },
{ name = "Wheels", colourIdKey = "wheelColor" },
}

-- You can rename but NOT re-order these
Config.Mods.RgbPaintFinishes = {
"Normal",
"Metallic",
"Pearl",
"Matte",
"Metal",
"Chrome"
}

Config.Mods.GtaColours = {
Metallic = {
    { modIndex = 0, name = "Black",                  hex = "0d1116" },
    { modIndex = 1, name = "Graphite Black",         hex = "1c1d21" },
    { modIndex = 2, name = "Black Steal",            hex = "32383d" },
    { modIndex = 3, name = "Dark Silver",            hex = "454b4f" },
    { modIndex = 4, name = "Silver",                   hex = "999da0" },
    { modIndex = 5, name = "Blue Silver",            hex = "c2c4c6" },
    { modIndex = 6, name = "Steel Gray",               hex = "979a97" },
    { modIndex = 7, name = "Shadow Silver",            hex = "637380" },
    { modIndex = 8, name = "Stone Silver",             hex = "63625c" },
    { modIndex = 9, name = "Midnight Silver",          hex = "3c3f47" },
    { modIndex = 10, name = "Gun Metal",               hex = "444e54" },
    { modIndex = 11, name = "Anthracite Grey",         hex = "1d2129" },
    { modIndex = 27, name = "Red",                     hex = "c00e1a" },
    { modIndex = 28, name = "Torino Red",            hex = "da1918" },
    { modIndex = 29, name = "Formula Red",             hex = "b6111b" },
    { modIndex = 30, name = "Blaze Red",               hex = "a51e23" },
    { modIndex = 31, name = "Graceful Red",            hex = "7b1a22" },
    { modIndex = 32, name = "Garnet Red",            hex = "8e1b1f" },
    { modIndex = 33, name = "Desert Red",            hex = "6f1818" },
    { modIndex = 34, name = "Cabernet Red",            hex = "49111d" },
    { modIndex = 35, name = "Candy Red",               hex = "b60f25" },
    { modIndex = 36, name = "Sunrise Orange",          hex = "d44a17" },
    { modIndex = 37, name = "Classic Gold",            hex = "c2944f" },
    { modIndex = 38, name = "Orange",                  hex = "f78616" },
    { modIndex = 49, name = "Dark Green",            hex = "132428" },
    { modIndex = 50, name = "Racing Green",            hex = "122e2b" },
    { modIndex = 51, name = "Sea Green",               hex = "12383c" },
    { modIndex = 52, name = "Olive Green",             hex = "31423f" },
    { modIndex = 53, name = "Green",                   hex = "155c2d" },
    { modIndex = 54, name = "Gasoline Blue Green",   hex = "1b6770" },
    { modIndex = 61, name = "Midnight Blue",         hex = "222e46" },
    { modIndex = 62, name = "Dark Blue",               hex = "233155" },
    { modIndex = 63, name = "Saxony Blue",             hex = "304c7e" },
    { modIndex = 64, name = "Blue",                  hex = "47578f" },
    { modIndex = 65, name = "Mariner Blue",            hex = "637ba7" },
    { modIndex = 66, name = "Harbor Blue",             hex = "394762" },
    { modIndex = 67, name = "Diamond Blue",            hex = "d6e7f1" },
    { modIndex = 68, name = "Surf Blue",               hex = "76afbe" },
    { modIndex = 69, name = "Nautical Blue",         hex = "345e72" },
    { modIndex = 70, name = "Bright Blue",             hex = "0b9cf1" },
    { modIndex = 71, name = "Purple Blue",             hex = "2f2d52" },
    { modIndex = 72, name = "Spinnaker Blue",          hex = "282c4d" },
    { modIndex = 73, name = "Ultra Blue",            hex = "2354a1" },
    { modIndex = 74, name = "Bright Blue",             hex = "6ea3c6" },
    { modIndex = 88, name = "Taxi Yellow",             hex = "ffcf20" },
    { modIndex = 89, name = "Race Yellow",             hex = "fbe212" },
    { modIndex = 90, name = "Bronze",                  hex = "916532" },
    { modIndex = 91, name = "Yellow Bird",             hex = "e0e13d" },
    { modIndex = 92, name = "Lime",                  hex = "98d223" },
    { modIndex = 93, name = "Champagne",               hex = "9b8c78" },
    { modIndex = 94, name = "Pueblo Beige",            hex = "503218" },
    { modIndex = 95, name = "Dark Ivory",            hex = "473f2b" },
    { modIndex = 96, name = "Choco Brown",             hex = "221b19" },
    { modIndex = 97, name = "Golden Brown",            hex = "653f23" },
    { modIndex = 98, name = "Light Brown",             hex = "775c3e" },
    { modIndex = 99, name = "Straw Beige",             hex = "ac9975" },
    { modIndex = 100, name = "Moss Brown",             hex = "6c6b4b" },
    { modIndex = 101, name = "Biston Brown",         hex = "402e2b" },
    { modIndex = 102, name = "Beechwood",            hex = "a4965f" },
    { modIndex = 103, name = "Dark Beechwood",         hex = "46231a" },
    { modIndex = 104, name = "Choco Orange",         hex = "752b19" },
    { modIndex = 105, name = "Beach Sand",             hex = "bfae7b" },
    { modIndex = 106, name = "Sun Bleeched Sand",      hex = "dfd5b2" },
    { modIndex = 107, name = "Cream",                  hex = "f7edd5" },
    { modIndex = 111, name = "White",                  hex = "fffff6" },
    { modIndex = 112, name = "Frost White",            hex = "eaeaea" },
    { modIndex = 125, name = "Securicor Green",      hex = "83c566" },
    { modIndex = 137, name = "Vermillion Pink",      hex = "df5891" },
    { modIndex = 141, name = "Black Blue",             hex = "0a0c17" },
    { modIndex = 142, name = "Black Purple",         hex = "0c0d18" },
    { modIndex = 143, name = "Black Red",            hex = "0e0d14" },
    { modIndex = 145, name = "Purple",               hex = "621276" },
    { modIndex = 146, name = "V Dark Blue",            hex = "0b1421" },
    { modIndex = 150, name = "Lava Red",               hex = "bc1917" },
},
Matte = {
    { modIndex = 12, name = "Black",                   hex = "13181f" },
    { modIndex = 13, name = "Gray",                  hex = "26282a" },
    { modIndex = 14, name = "Light Grey",            hex = "515554" },
    { modIndex = 39, name = "Red",                     hex = "cf1f21" },
    { modIndex = 40, name = "Dark Red",                hex = "732021" },
    { modIndex = 41, name = "Orange",                  hex = "f27d20" },
    { modIndex = 42, name = "Yellow",                  hex = "ffc91f" },
    { modIndex = 55, name = "Lime Green",            hex = "66b81f" },
    { modIndex = 82, name = "Dark Blue",               hex = "1f2852" },
    { modIndex = 83, name = "Blue",                  hex = "253aa7" },
    { modIndex = 84, name = "Midnight Blue",         hex = "1c3551" },
    { modIndex = 128, name = "Green",                  hex = "4e6443" },
    { modIndex = 129, name = "Brown",                  hex = "bcac8f" },
    { modIndex = 131, name = "White",                  hex = "fcf9f1" },
    { modIndex = 148, name = "Purple",               hex = "6b1f7b" },
    { modIndex = 149, name = "Dark Purple",            hex = "1e1d22" },
    { modIndex = 151, name = "Forest Green",         hex = "2d362a" },
    { modIndex = 152, name = "Olive Drab",             hex = "696748" },
    { modIndex = 153, name = "Desert Brown",         hex = "7a6c55" },
    { modIndex = 154, name = "Desert Tan",             hex = "c3b492" },
    { modIndex = 155, name = "Foilage Green",          hex = "5a6352" },
},
Util = {
    { modIndex = 15, name = "Black",                   hex = "151921" },
    { modIndex = 16, name = "Black Poly",            hex = "1e2429" },
    { modIndex = 17, name = "Dark Silver",             hex = "333a3c" },
    { modIndex = 18, name = "Silver",                  hex = "8c9095" },
    { modIndex = 19, name = "Gun Metal",               hex = "39434d" },
    { modIndex = 20, name = "Shadow Silver",         hex = "506272" },
    { modIndex = 43, name = "Red",                     hex = "9c1016" },
    { modIndex = 44, name = "Bright Red",            hex = "de0f18" },
    { modIndex = 45, name = "Garnet Red",            hex = "8f1e17" },
    { modIndex = 56, name = "Dark Green",            hex = "22383e" },
    { modIndex = 57, name = "Green",                   hex = "1d5a3f" },
    { modIndex = 75, name = "Dark Blue",               hex = "112552" },
    { modIndex = 76, name = "Midnight Blue",         hex = "1b203e" },
    { modIndex = 77, name = "Blue",                  hex = "275190" },
    { modIndex = 78, name = "Sea Foam Blue",         hex = "608592" },
    { modIndex = 79, name = "Lightning Blue",          hex = "2446a8" },
    { modIndex = 80, name = "Maui Blue Poly",          hex = "4271e1" },
    { modIndex = 81, name = "Bright Blue",             hex = "3b39e0" },
    { modIndex = 108, name = "Brown",                  hex = "3a2a1b" },
    { modIndex = 109, name = "Medium Brown",         hex = "785f33" },
    { modIndex = 110, name = "Light Brown",            hex = "b5a079" },
    { modIndex = 122, name = "Off White",            hex = "dfddd0" },
},      
Worn = {      
    { modIndex = 21, name = "Black",                   hex = "1e232f" },
    { modIndex = 22, name = "Graphite",                hex = "363a3f" },
    { modIndex = 23, name = "Silver Grey",             hex = "a0a199" },
    { modIndex = 24, name = "Silver",                  hex = "d3d3d3" },
    { modIndex = 25, name = "Blue Silver",             hex = "b7bfca" },
    { modIndex = 26, name = "Shadow Silver",         hex = "778794" },
    { modIndex = 46, name = "Red",                     hex = "a94744" },
    { modIndex = 47, name = "Golden Red",            hex = "b16c51" },
    { modIndex = 48, name = "Dark Red",                hex = "371c25" },
    { modIndex = 58, name = "Dark Green",            hex = "2d423f" },
    { modIndex = 59, name = "Green",                   hex = "45594b" },
    { modIndex = 60, name = "Sea Wash",                hex = "65867f" },
    { modIndex = 85, name = "Dark Blue",               hex = "4c5f81" },
    { modIndex = 86, name = "Blue",                  hex = "58688e" },
    { modIndex = 87, name = "Light Blue",            hex = "74b5d8" },
    { modIndex = 113, name = "Honey Beige",            hex = "b0ab94" },
    { modIndex = 114, name = "Brown",                  hex = "453831" },
    { modIndex = 115, name = "Dark Brown",             hex = "2a282b" },
    { modIndex = 116, name = "Straw Beige",            hex = "726c57" },
    { modIndex = 121, name = "Off White",            hex = "eae6de" },
    { modIndex = 123, name = "Orange",               hex = "f2ad2e" },
    { modIndex = 124, name = "Light Orange",         hex = "f9a458" },
    { modIndex = 126, name = "Taxi Yellow",            hex = "f1cc40" },
    { modIndex = 130, name = "Orange",               hex = "f8b658" },
    { modIndex = 132, name = "White",                  hex = "fffffb" },
    { modIndex = 133, name = "Olive Army Green",       hex = "81844c" },
},
Misc = {
    { modIndex = 117, name = "Brushed Steel",          hex = "6a747c" },
    { modIndex = 118, name = "Brushed Black Steel",    hex = "354158" },
    { modIndex = 119, name = "Brushed Aluminium",      hex = "9ba0a8" },
    { modIndex = 120, name = "Chrome",               hex = "5870a1" },
    { modIndex = 127, name = "Police Car Blue",      hex = "4cc3da" },
    { modIndex = 134, name = "Pure White",             hex = "ffffff" },
    { modIndex = 135, name = "Hot Pink",               hex = "f21f99" },
    { modIndex = 136, name = "Salmon Pink",            hex = "fdd6cd" },
    { modIndex = 138, name = "Orange",               hex = "f6ae20" },
    { modIndex = 139, name = "Green",                  hex = "b0ee6e" },
    { modIndex = 140, name = "Blue",                   hex = "08e9fa" },
    { modIndex = 144, name = "Hunter Green",         hex = "9f9e8a" },
    { modIndex = 147, name = "Mod Shop Black",         hex = "11141a" },
    { modIndex = 156, name = "Alloy",                  hex = "81827f" },
    { modIndex = 157, name = "Epsilon Blue",         hex = "afd6e4" },
    { modIndex = 158, name = "Pure Gold",            hex = "7a6440" },
    { modIndex = 159, name = "Brushed Gold",         hex = "7f6a48" }
},
Chameleon = {
    { modIndex = 161, name = "Anodized Red",         hex = "CF1020" },
    { modIndex = 162, name = "Anodized Wine",          hex = "5E1224" },
    { modIndex = 163, name = "Anodized Purple",      hex = "800080" },
    { modIndex = 164, name = "Anodized Blue",          hex = "0000FF" },
    { modIndex = 165, name = "Anodized Green",         hex = "008000" },
    { modIndex = 166, name = "Anodized Lime",          hex = "AFFF00" },
    { modIndex = 167, name = "Anodized Copper",      hex = "B87333" },
    { modIndex = 168, name = "Anodized Bronze",      hex = "CD7F32" },
    { modIndex = 169, name = "Anodized Champagne",   hex = "F7E7CE" },
    { modIndex = 170, name = "Anodized Gold",          hex = "FFD700" },
    { modIndex = 171, name = "Green Blue Flip",      hex = "1164B4" },
    { modIndex = 172, name = "Green Red Flip",         hex = "B43104" },
    { modIndex = 173, name = "Green Brown Flip",       hex = "735C12" },
    { modIndex = 174, name = "Green Turquoise Flip",   hex = "43C6DB" },
    { modIndex = 175, name = "Green Purple Flip",      hex = "9D00FF" },
    { modIndex = 176, name = "Teal Purple Flip",       hex = "6A0DAD" },
    { modIndex = 177, name = "Turquoise Red Flip",   hex = "E60026" },
    { modIndex = 178, name = "Turquoise Purple Flip",hex = "30D5C8" },
    { modIndex = 179, name = "Cyan Purple Flip",       hex = "0FF0FC" },
    { modIndex = 180, name = "Blue Pink Flip",         hex = "4C2882" },
    { modIndex = 181, name = "Blue Green Flip",      hex = "138808" },
    { modIndex = 182, name = "Purple Red Flip",      hex = "9B111E" },
    { modIndex = 183, name = "Purple Green Flip",      hex = "6B2E53" },
    { modIndex = 184, name = "Magenta Green Flip",   hex = "CA1F7B" },
    { modIndex = 185, name = "Magenta Yellow Flip",    hex = "FEDF00" },
    { modIndex = 186, name = "Burgundy Green Flip",    hex = "900020" },
    { modIndex = 187, name = "Magenta Cyan Flip",      hex = "00FFA1" },
    { modIndex = 188, name = "Copper Purple Flip",   hex = "B87333" },
    { modIndex = 189, name = "Magenta Orange Flip",    hex = "FF5F1F" },
    { modIndex = 190, name = "Red Orange Flip",      hex = "FF4500" },
    { modIndex = 191, name = "Orange Purple Flip",   hex = "B04080" },
    { modIndex = 192, name = "Orange Blue Flip",       hex = "0047AB" },
    { modIndex = 193, name = "White Purple Flip",      hex = "F8F0E3" },
    { modIndex = 194, name = "Red Rainbow Flip",       hex = "ED2939" },
    { modIndex = 195, name = "Blue Rainbow Flip",      hex = "4B0082" },
    { modIndex = 196, name = "Dark Green Pearl",       hex = "013220" },
    { modIndex = 197, name = "Dark Teal Pearl",      hex = "008080" },
    { modIndex = 198, name = "Dark Blue Pearl",      hex = "000080" },
    { modIndex = 199, name = "Dark Purple Pearl",      hex = "301934" },
    { modIndex = 200, name = "Oil Slick Pearl",      hex = "4B0082" },
    { modIndex = 201, name = "Light Green Pearl",      hex = "99E550" },
    { modIndex = 202, name = "Light Blue Pearl",       hex = "ADD8E6" },
    { modIndex = 203, name = "Light Pink Pearl",       hex = "FFB6C1" },
    { modIndex = 204, name = "Off White Pearl",      hex = "F2F0E6" },
    { modIndex = 205, name = "Pink Pearl",             hex = "EAADEA" },
    { modIndex = 206, name = "Yellow Pearl",         hex = "FFF000" },
    { modIndex = 207, name = "Green Pearl",            hex = "00A550" },
    { modIndex = 208, name = "Blue Pearl",             hex = "0000FF" },
    { modIndex = 209, name = "Cream Pearl",            hex = "FFFDD0" },
    { modIndex = 210, name = "White Prismatic",      hex = "FFFFFF" },
    { modIndex = 211, name = "Graphite Prismatic",   hex = "251607" },
    { modIndex = 212, name = "Dark Blue Prismatic",    hex = "00008B" },
    { modIndex = 213, name = "Dark Purple Prismatic",hex = "301934" },
    { modIndex = 214, name = "Hot Pink Prismatic",   hex = "FF69B4" },
    { modIndex = 215, name = "Dark Red Prismatic",   hex = "8B0000" },
    { modIndex = 216, name = "Dark Green Prismatic",   hex = "013220" },
    { modIndex = 217, name = "Black Prismatic",      hex = "000000" },
    { modIndex = 218, name = "Black Oil Spill",      hex = "121212" },
    { modIndex = 219, name = "Black Rainbow",          hex = "000000" },
    { modIndex = 220, name = "Prismatic",            hex = "CCCCCC" },
    { modIndex = 221, name = "Black Holographic",      hex = "101010" },
    { modIndex = 222, name = "White Holographic",      hex = "E6E8FA" },
    { modIndex = 223, name = "Monochrome",             hex = "B4B4B4" },
    { modIndex = 224, name = "Night & Day",            hex = "333366" },
    { modIndex = 225, name = "The Verlierer",          hex = "550055" },
    { modIndex = 226, name = "Sprunk Extreme",         hex = "00FF00" },
    { modIndex = 227, name = "Vice City",            hex = "FF00FF" },
    { modIndex = 228, name = "Synthwave Nights",       hex = "FF007F" },
    { modIndex = 229, name = "Four Seasons",         hex = "73C2FB" },
    { modIndex = 230, name = "Maisonette 9 Throwback", hex = "DCDCDC" },
    { modIndex = 231, name = "Bubblegum",            hex = "FFC0CB" },
    { modIndex = 232, name = "Full Rainbow",         hex = "FF0000" },
    { modIndex = 233, name = "Sunset",               hex = "FFD700" },
    { modIndex = 234, name = "The Seven",            hex = "701C1C" },
    { modIndex = 235, name = "Kamen Rider",            hex = "1C1C70" },
    { modIndex = 236, name = "Chromatic Aberration",   hex = "D8BFD8" },
    { modIndex = 237, name = "It's Christmas",         hex = "FF0000" },
    { modIndex = 238, name = "Temperature",            hex = "FFA07A" },
    { modIndex = 239, name = "Yellow Orange Pearl",    hex = "FFAE42" },
    { modIndex = 240, name = "Pink Blue Pearl",      hex = "D8BFD8" },
    { modIndex = 241, name = "Green Blue Pearl",       hex = "3CB371" },
    { modIndex = 242, name = "Turquoise Black Pearl",hex = "00CED1" }
}
}

Config.Mods.XenonColours = {
{ modIndex = 0,name = "White",          hex = "DEDEFF" },
{ modIndex = 1,name = "Blue",         hex = "0215FF" },
{ modIndex = 2,name = "Electric Blue",hex = "0353FF" },
{ modIndex = 3,name = "Mint Green",   hex = "00FF8C" },
{ modIndex = 4,name = "Lime Green",   hex = "5EFF01" },
{ modIndex = 5,name = "Yellow",         hex = "FFFF00" },
{ modIndex = 6,name = "Golden Shower",hex = "FF9600" },
{ modIndex = 7,name = "Orange",         hex = "FF3E00" },
{ modIndex = 8,name = "Red",            hex = "FF0101" },
{ modIndex = 9,name = "Pony Pink",      hex = "FF3264" },
{ modIndex = 10, name = "Hot Pink",       hex = "FF05BE" },
{ modIndex = 11, name = "Purple",         hex = "2301FF" },
{ modIndex = 12, name = "Blacklight",   hex = "0F03FF" }
}

ChatGPT 发表于 2024-10-17 07:49:40

CrazyGhost 发表于 2024-10-17 07:49
-------------------------------------------------- ...

---------------------------------------------------------------------------------------
---------------------------------- GTA MODIFICATIONS ----------------------------------
---------------------------------------------------------------------------------------
-- 所有基础 GTA 修改内容。您 *可能* 不需要修改此文件,
-- 除非您是个极客并且知道自己在做什么。在这种情况下,请享受吧!

上面的内容是你提供的代码中的一段注释。我将其翻译成中文,以便你可以更好地理解其内容。这个注释说明了文件的用途,表示大部分情况下用户无需修改,给有技术能力的用户提供了一定的指南。如果需要进一步的帮助或更多的修改,请告诉我!

CrazyGhost 发表于 2024-10-17 07:50:32

Config.Mods = {}

Config.Mods.ItemsRequired = {
repair = { itemName = "repair_kit", removeItem = true },
performance = { itemName = "performance_part", removeItem = true },
cosmetics = { itemName = "cosmetic_part", removeItem = true },
stance = { itemName = "stancing_kit", removeItem = false },
respray = { itemName = "respray_kit", removeItem = true },
wheels = { itemName = "vehicle_wheels", removeItem = true },
neonLights = { itemName = "lighting_controller", removeItem = true },
headlights = { itemName = "lighting_controller", removeItem = true },
tyreSmoke = { itemName = "tyre_smoke_kit", removeItem = true },
bulletproofTyres = { itemName = "bulletproof_tyres", removeItem = true },
extras = { itemName = "extras_kit", removeItem = true }
}

Config.Mods.Performance = {
{ modType = 11, name = "Engine" },
{ modType = 12, name = "Brakes" },
{ modType = 13, name = "Transmission" },
{ modType = 15, name = "Suspension" },
{ modType = 16, name = "Armour" },
{ modType = 18, name = "Turbocharging", toggle = true }
}

Config.Mods.Cosmetics = {
{ modType = 0, name = "Spoilers" },
{ modType = 1, name = "Front Bumper" },
{ modType = 2, name = "Rear Bumper" },
{ modType = 3, name = "Side Skirt" },
{ modType = 4, name = "Exhaust" },
{ modType = 5, name = "Chassis" },
{ modType = 6, name = "Grill" },
{ modType = 7, name = "Bonnet" },
{ modType = 8, name = "Left Wing" },
{ modType = 9, name = "Right Wing" },
{ modType = 10, name = "Roof" },
{ modType = 14, name = "Horn" },
{ modType = 19, name = "Subwoofer" },
{ modType = 21, name = "Hydraulics" },
{ modType = 25, name = "Plate Holders" },
{ modType = 26, name = "Vanity Plate" },
{ modType = 27, name = "Trim Design" },
{ modType = 28, name = "Ornaments" },
{ modType = 29, name = "Dashboard" },
{ modType = 30, name = "Dial Design" },
{ modType = 31, name = "Door Speaker" },
{ modType = 32, name = "Seats" },
{ modType = 33, name = "Steering Wheel" },
{ modType = 34, name = "Shift Lever" },
{ modType = 35, name = "Plaques" },
{ modType = 36, name = "ICE" },
{ modType = 37, name = "Trunk" },
{ modType = 38, name = "Hydraulics" },
{ modType = 39, name = "Engine Block" },
{ modType = 40, name = "Air Filter/Boost" },
{ modType = 41, name = "Struts" },
{ modType = 42, name = "Arch Cover" },
{ modType = 43, name = "Aerials" },
{ modType = 44, name = "Trim" },
{ modType = 45, name = "Tank" },
{ modType = 46, name = "Door Left" },
{ modType = 47, name = "Door Right" },
{ modType = 48, name = "Stickers" },
{ modType = 49, name = "Lightbar" },

-- Named cosmetics
{ modType = "LIVERY", name = "Livery" },
{ modType = "LIVERY_ROOF", name = "Livery Roof" },
{ modType = "PLATE_INDEX", name = "Plate Index" },
{ modType = "WINDOW_TINT", name = "Window Tint" }
}

Config.Mods.PlateIndexes = {
{ modIndex = 0, name = "Blue On White" },
{ modIndex = 1, name = "Yellow On Black" },
{ modIndex = 2, name = "Yellow On Blue" },
{ modIndex = 3, name = "Blue On White" },
{ modIndex = 4, name = "Blue On White" },
{ modIndex = 5, name = "North Yankton" },

-- mp2023_02 (Chop Shop) only
{ modIndex = 6, name = "eCola" },
{ modIndex = 7, name = "Las Venturas" },
{ modIndex = 8, name = "Liberty City" },
{ modIndex = 9, name = "Los Santos Car Meet" },
{ modIndex = 10, name = "Los Santos Panic" },
{ modIndex = 11, name = "Los Santos Pounders" },
{ modIndex = 12, name = "Sprunk" }
}

Config.Mods.WindowTints = {
{ modIndex = 0, name = "No Tint" },
{ modIndex = 3, name = "Lightsmoke" },
{ modIndex = 2, name = "Darksmoke" },
{ modIndex = 1, name = "Pure Black" }
}

Config.Mods.WheelTypes = {
{ modIndex = 0, name = "Sport" },
{ modIndex = 1, name = "Muscle" },
{ modIndex = 2, name = "Lowrider" },
{ modIndex = 3, name = "SUV" },
{ modIndex = 4, name = "Offroad" },
{ modIndex = 5, name = "Tuner" },
{ modIndex = 6, name = "Bike" },
{ modIndex = 7, name = "High End" },
{ modIndex = 8, name = "Benny's Original" },
{ modIndex = 9, name = "Benny's Bespoke" },
{ modIndex = 10, name = "Open Wheel" },
{ modIndex = 11, name = "Street" },
{ modIndex = 12, name = "Track" },
}

Config.Mods.Horns = {
{ modIndex = -1, name = "Stock", musical = false },
{ modIndex = 0,name = "Truck Horn", musical = false },
{ modIndex = 1,name = "Cop Horn", musical = false },
{ modIndex = 2,name = "Clown Horn", musical = false },
{ modIndex = 3,name = "Musical Horn 1", musical = true },
{ modIndex = 4,name = "Musical Horn 2", musical = true },
{ modIndex = 5,name = "Musical Horn 3", musical = true },
{ modIndex = 6,name = "Musical Horn 4", musical = true },
{ modIndex = 7,name = "Musical Horn 5", musical = true },
{ modIndex = 8,name = "Sad Trombone", musical = true },
{ modIndex = 9,name = "Classical Horn 1", musical = true },
{ modIndex = 10, name = "Classical Horn 2", musical = true },
{ modIndex = 11, name = "Classical Horn 3", musical = true },
{ modIndex = 12, name = "Classical Horn 4", musical = true },
{ modIndex = 13, name = "Classical Horn 5", musical = true },
{ modIndex = 14, name = "Classical Horn 6", musical = true },
{ modIndex = 15, name = "Classical Horn 7", musical = true },
{ modIndex = 16, name = "Scale - Do", musical = false },
{ modIndex = 17, name = "Scale - Re", musical = false },
{ modIndex = 18, name = "Scale - Mi", musical = false },
{ modIndex = 19, name = "Scale - Fa", musical = false },
{ modIndex = 20, name = "Scale - Sol", musical = false },
{ modIndex = 21, name = "Scale - La", musical = false },
{ modIndex = 22, name = "Scale - Ti", musical = false },
{ modIndex = 23, name = "Scale - Do", musical = false },
{ modIndex = 24, name = "Jazz Horn 1", musical = true },
{ modIndex = 25, name = "Jazz Horn 2", musical = true },
{ modIndex = 26, name = "Jazz Horn 3", musical = true },
{ modIndex = 27, name = "Jazz Horn Loop", musical = true },
{ modIndex = 28, name = "Star Spangled Banner 1", musical = true },
{ modIndex = 29, name = "Star Spangled Banner 2", musical = true },
{ modIndex = 30, name = "Star Spangled Banner 3", musical = true },
{ modIndex = 31, name = "Star Spangled Banner 4", musical = true },
{ modIndex = 32, name = "Classical Horn 8 Loop", musical = true },
{ modIndex = 33, name = "Classical Horn 9 Loop", musical = true },
{ modIndex = 34, name = "Classical Horn 10 Loop", musical = true },
{ modIndex = 35, name = "Classical Horn 8", musical = true },
{ modIndex = 36, name = "Classical Horn 9", musical = true },
{ modIndex = 37, name = "Classical Horn 10", musical = true },
{ modIndex = 38, name = "Funeral Loop", musical = true },
{ modIndex = 39, name = "Funeral", musical = true },
{ modIndex = 40, name = "Spooky Loop", musical = true },
{ modIndex = 41, name = "Spooky", musical = true },
{ modIndex = 42, name = "San Andreas Loop", musical = true },
{ modIndex = 43, name = "San Andreas", musical = true },
{ modIndex = 44, name = "Liberty City Loop", musical = true },
{ modIndex = 45, name = "Liberty City", musical = true },
{ modIndex = 46, name = "Festive 1 Loop", musical = true },
{ modIndex = 47, name = "Festive 1", musical = true },
{ modIndex = 48, name = "Festive 2 Loop", musical = true },
{ modIndex = 49, name = "Festive 2", musical = true },
{ modIndex = 50, name = "Festive 3 Loop", musical = true },
{ modIndex = 51, name = "Festive 3", musical = true },
{ modIndex = 52, name = "Air Horn Low Loop", musical = false },
{ modIndex = 53, name = "Air Horn Low", musical = false },
{ modIndex = 54, name = "Air Horn Medium Loop", musical = false },
{ modIndex = 55, name = "Air Horn Medium", musical = false },
{ modIndex = 56, name = "Air Horn High Loop", musical = false },
{ modIndex = 57, name = "Air Horn High", musical = false },
}

Config.Mods.Colours = {
{ name = "Primary", paintTypeKey = "paintType1", colourKey = "color1" },
{ name = "Secondary", paintTypeKey = "paintType2", colourKey = "color2" },
{ name = "Pearlescent", colourIdKey = "pearlescentColor" },
{ name = "Dashboard", colourIdKey = "dashboardColor" },
{ name = "Interior", colourIdKey = "interiorColor" },
{ name = "Wheels", colourIdKey = "wheelColor" },
}

-- You can rename but NOT re-order these
Config.Mods.RgbPaintFinishes = {
"Normal",
"Metallic",
"Pearl",
"Matte",
"Metal",
"Chrome"
}

Config.Mods.GtaColours = {
Metallic = {
    { modIndex = 0, name = "Black",                  hex = "0d1116" },
    { modIndex = 1, name = "Graphite Black",         hex = "1c1d21" },
    { modIndex = 2, name = "Black Steal",            hex = "32383d" },
    { modIndex = 3, name = "Dark Silver",            hex = "454b4f" },
    { modIndex = 4, name = "Silver",                   hex = "999da0" },
    { modIndex = 5, name = "Blue Silver",            hex = "c2c4c6" },
    { modIndex = 6, name = "Steel Gray",               hex = "979a97" },
    { modIndex = 7, name = "Shadow Silver",            hex = "637380" },
    { modIndex = 8, name = "Stone Silver",             hex = "63625c" },
    { modIndex = 9, name = "Midnight Silver",          hex = "3c3f47" },
    { modIndex = 10, name = "Gun Metal",               hex = "444e54" },
    { modIndex = 11, name = "Anthracite Grey",         hex = "1d2129" },
    { modIndex = 27, name = "Red",                     hex = "c00e1a" },
    { modIndex = 28, name = "Torino Red",            hex = "da1918" },
    { modIndex = 29, name = "Formula Red",             hex = "b6111b" },
    { modIndex = 30, name = "Blaze Red",               hex = "a51e23" },
    { modIndex = 31, name = "Graceful Red",            hex = "7b1a22" },
    { modIndex = 32, name = "Garnet Red",            hex = "8e1b1f" },
    { modIndex = 33, name = "Desert Red",            hex = "6f1818" },
    { modIndex = 34, name = "Cabernet Red",            hex = "49111d" },
    { modIndex = 35, name = "Candy Red",               hex = "b60f25" },
    { modIndex = 36, name = "Sunrise Orange",          hex = "d44a17" },
    { modIndex = 37, name = "Classic Gold",            hex = "c2944f" },
    { modIndex = 38, name = "Orange",                  hex = "f78616" },
    { modIndex = 49, name = "Dark Green",            hex = "132428" },
    { modIndex = 50, name = "Racing Green",            hex = "122e2b" },
    { modIndex = 51, name = "Sea Green",               hex = "12383c" },
    { modIndex = 52, name = "Olive Green",             hex = "31423f" },
    { modIndex = 53, name = "Green",                   hex = "155c2d" },
    { modIndex = 54, name = "Gasoline Blue Green",   hex = "1b6770" },
    { modIndex = 61, name = "Midnight Blue",         hex = "222e46" },
    { modIndex = 62, name = "Dark Blue",               hex = "233155" },
    { modIndex = 63, name = "Saxony Blue",             hex = "304c7e" },
    { modIndex = 64, name = "Blue",                  hex = "47578f" },
    { modIndex = 65, name = "Mariner Blue",            hex = "637ba7" },
    { modIndex = 66, name = "Harbor Blue",             hex = "394762" },
    { modIndex = 67, name = "Diamond Blue",            hex = "d6e7f1" },
    { modIndex = 68, name = "Surf Blue",               hex = "76afbe" },
    { modIndex = 69, name = "Nautical Blue",         hex = "345e72" },
    { modIndex = 70, name = "Bright Blue",             hex = "0b9cf1" },
    { modIndex = 71, name = "Purple Blue",             hex = "2f2d52" },
    { modIndex = 72, name = "Spinnaker Blue",          hex = "282c4d" },
    { modIndex = 73, name = "Ultra Blue",            hex = "2354a1" },
    { modIndex = 74, name = "Bright Blue",             hex = "6ea3c6" },
    { modIndex = 88, name = "Taxi Yellow",             hex = "ffcf20" },
    { modIndex = 89, name = "Race Yellow",             hex = "fbe212" },
    { modIndex = 90, name = "Bronze",                  hex = "916532" },
    { modIndex = 91, name = "Yellow Bird",             hex = "e0e13d" },
    { modIndex = 92, name = "Lime",                  hex = "98d223" },
    { modIndex = 93, name = "Champagne",               hex = "9b8c78" },
    { modIndex = 94, name = "Pueblo Beige",            hex = "503218" },
    { modIndex = 95, name = "Dark Ivory",            hex = "473f2b" },
    { modIndex = 96, name = "Choco Brown",             hex = "221b19" },
    { modIndex = 97, name = "Golden Brown",            hex = "653f23" },
    { modIndex = 98, name = "Light Brown",             hex = "775c3e" },
    { modIndex = 99, name = "Straw Beige",             hex = "ac9975" },
    { modIndex = 100, name = "Moss Brown",             hex = "6c6b4b" },
    { modIndex = 101, name = "Biston Brown",         hex = "402e2b" },
    { modIndex = 102, name = "Beechwood",            hex = "a4965f" },
    { modIndex = 103, name = "Dark Beechwood",         hex = "46231a" },
    { modIndex = 104, name = "Choco Orange",         hex = "752b19" },
    { modIndex = 105, name = "Beach Sand",             hex = "bfae7b" },
    { modIndex = 106, name = "Sun Bleeched Sand",      hex = "dfd5b2" },
    { modIndex = 107, name = "Cream",                  hex = "f7edd5" },
    { modIndex = 111, name = "White",                  hex = "fffff6" },
    { modIndex = 112, name = "Frost White",            hex = "eaeaea" },
    { modIndex = 125, name = "Securicor Green",      hex = "83c566" },
    { modIndex = 137, name = "Vermillion Pink",      hex = "df5891" },
    { modIndex = 141, name = "Black Blue",             hex = "0a0c17" },
    { modIndex = 142, name = "Black Purple",         hex = "0c0d18" },
    { modIndex = 143, name = "Black Red",            hex = "0e0d14" },
    { modIndex = 145, name = "Purple",               hex = "621276" },
    { modIndex = 146, name = "V Dark Blue",            hex = "0b1421" },
    { modIndex = 150, name = "Lava Red",               hex = "bc1917" },
},
Matte = {
    { modIndex = 12, name = "Black",                   hex = "13181f" },
    { modIndex = 13, name = "Gray",                  hex = "26282a" },
    { modIndex = 14, name = "Light Grey",            hex = "515554" },
    { modIndex = 39, name = "Red",                     hex = "cf1f21" },
    { modIndex = 40, name = "Dark Red",                hex = "732021" },
    { modIndex = 41, name = "Orange",                  hex = "f27d20" },
    { modIndex = 42, name = "Yellow",                  hex = "ffc91f" },
    { modIndex = 55, name = "Lime Green",            hex = "66b81f" },
    { modIndex = 82, name = "Dark Blue",               hex = "1f2852" },
    { modIndex = 83, name = "Blue",                  hex = "253aa7" },
    { modIndex = 84, name = "Midnight Blue",         hex = "1c3551" },
    { modIndex = 128, name = "Green",                  hex = "4e6443" },
    { modIndex = 129, name = "Brown",                  hex = "bcac8f" },
    { modIndex = 131, name = "White",                  hex = "fcf9f1" },
    { modIndex = 148, name = "Purple",               hex = "6b1f7b" },
    { modIndex = 149, name = "Dark Purple",            hex = "1e1d22" },
    { modIndex = 151, name = "Forest Green",         hex = "2d362a" },
    { modIndex = 152, name = "Olive Drab",             hex = "696748" },
    { modIndex = 153, name = "Desert Brown",         hex = "7a6c55" },
    { modIndex = 154, name = "Desert Tan",             hex = "c3b492" },
    { modIndex = 155, name = "Foilage Green",          hex = "5a6352" },
},
Util = {
    { modIndex = 15, name = "Black",                   hex = "151921" },
    { modIndex = 16, name = "Black Poly",            hex = "1e2429" },
    { modIndex = 17, name = "Dark Silver",             hex = "333a3c" },
    { modIndex = 18, name = "Silver",                  hex = "8c9095" },
    { modIndex = 19, name = "Gun Metal",               hex = "39434d" },
    { modIndex = 20, name = "Shadow Silver",         hex = "506272" },
    { modIndex = 43, name = "Red",                     hex = "9c1016" },
    { modIndex = 44, name = "Bright Red",            hex = "de0f18" },
    { modIndex = 45, name = "Garnet Red",            hex = "8f1e17" },
    { modIndex = 56, name = "Dark Green",            hex = "22383e" },
    { modIndex = 57, name = "Green",                   hex = "1d5a3f" },
    { modIndex = 75, name = "Dark Blue",               hex = "112552" },
    { modIndex = 76, name = "Midnight Blue",         hex = "1b203e" },
    { modIndex = 77, name = "Blue",                  hex = "275190" },
    { modIndex = 78, name = "Sea Foam Blue",         hex = "608592" },
    { modIndex = 79, name = "Lightning Blue",          hex = "2446a8" },
    { modIndex = 80, name = "Maui Blue Poly",          hex = "4271e1" },
    { modIndex = 81, name = "Bright Blue",             hex = "3b39e0" },
    { modIndex = 108, name = "Brown",                  hex = "3a2a1b" },
    { modIndex = 109, name = "Medium Brown",         hex = "785f33" },
    { modIndex = 110, name = "Light Brown",            hex = "b5a079" },
    { modIndex = 122, name = "Off White",            hex = "dfddd0" },
},      
Worn = {      
    { modIndex = 21, name = "Black",                   hex = "1e232f" },
    { modIndex = 22, name = "Graphite",                hex = "363a3f" },
    { modIndex = 23, name = "Silver Grey",             hex = "a0a199" },
    { modIndex = 24, name = "Silver",                  hex = "d3d3d3" },
    { modIndex = 25, name = "Blue Silver",             hex = "b7bfca" },
    { modIndex = 26, name = "Shadow Silver",         hex = "778794" },
    { modIndex = 46, name = "Red",                     hex = "a94744" },
    { modIndex = 47, name = "Golden Red",            hex = "b16c51" },
    { modIndex = 48, name = "Dark Red",                hex = "371c25" },
    { modIndex = 58, name = "Dark Green",            hex = "2d423f" },
    { modIndex = 59, name = "Green",                   hex = "45594b" },
    { modIndex = 60, name = "Sea Wash",                hex = "65867f" },
    { modIndex = 85, name = "Dark Blue",               hex = "4c5f81" },
    { modIndex = 86, name = "Blue",                  hex = "58688e" },
    { modIndex = 87, name = "Light Blue",            hex = "74b5d8" },
    { modIndex = 113, name = "Honey Beige",            hex = "b0ab94" },
    { modIndex = 114, name = "Brown",                  hex = "453831" },
    { modIndex = 115, name = "Dark Brown",             hex = "2a282b" },
    { modIndex = 116, name = "Straw Beige",            hex = "726c57" },
    { modIndex = 121, name = "Off White",            hex = "eae6de" },
    { modIndex = 123, name = "Orange",               hex = "f2ad2e" },
    { modIndex = 124, name = "Light Orange",         hex = "f9a458" },
    { modIndex = 126, name = "Taxi Yellow",            hex = "f1cc40" },
    { modIndex = 130, name = "Orange",               hex = "f8b658" },
    { modIndex = 132, name = "White",                  hex = "fffffb" },
    { modIndex = 133, name = "Olive Army Green",       hex = "81844c" },
},
Misc = {
    { modIndex = 117, name = "Brushed Steel",          hex = "6a747c" },
    { modIndex = 118, name = "Brushed Black Steel",    hex = "354158" },
    { modIndex = 119, name = "Brushed Aluminium",      hex = "9ba0a8" },
    { modIndex = 120, name = "Chrome",               hex = "5870a1" },
    { modIndex = 127, name = "Police Car Blue",      hex = "4cc3da" },
    { modIndex = 134, name = "Pure White",             hex = "ffffff" },
    { modIndex = 135, name = "Hot Pink",               hex = "f21f99" },
    { modIndex = 136, name = "Salmon Pink",            hex = "fdd6cd" },
    { modIndex = 138, name = "Orange",               hex = "f6ae20" },
    { modIndex = 139, name = "Green",                  hex = "b0ee6e" },
    { modIndex = 140, name = "Blue",                   hex = "08e9fa" },
    { modIndex = 144, name = "Hunter Green",         hex = "9f9e8a" },
    { modIndex = 147, name = "Mod Shop Black",         hex = "11141a" },
    { modIndex = 156, name = "Alloy",                  hex = "81827f" },
    { modIndex = 157, name = "Epsilon Blue",         hex = "afd6e4" },
    { modIndex = 158, name = "Pure Gold",            hex = "7a6440" },
    { modIndex = 159, name = "Brushed Gold",         hex = "7f6a48" }
},
Chameleon = {
    { modIndex = 161, name = "Anodized Red",         hex = "CF1020" },
    { modIndex = 162, name = "Anodized Wine",          hex = "5E1224" },
    { modIndex = 163, name = "Anodized Purple",      hex = "800080" },
    { modIndex = 164, name = "Anodized Blue",          hex = "0000FF" },
    { modIndex = 165, name = "Anodized Green",         hex = "008000" },
    { modIndex = 166, name = "Anodized Lime",          hex = "AFFF00" },
    { modIndex = 167, name = "Anodized Copper",      hex = "B87333" },
    { modIndex = 168, name = "Anodized Bronze",      hex = "CD7F32" },
    { modIndex = 169, name = "Anodized Champagne",   hex = "F7E7CE" },
    { modIndex = 170, name = "Anodized Gold",          hex = "FFD700" },
    { modIndex = 171, name = "Green Blue Flip",      hex = "1164B4" },
    { modIndex = 172, name = "Green Red Flip",         hex = "B43104" },
    { modIndex = 173, name = "Green Brown Flip",       hex = "735C12" },
    { modIndex = 174, name = "Green Turquoise Flip",   hex = "43C6DB" },
    { modIndex = 175, name = "Green Purple Flip",      hex = "9D00FF" },
    { modIndex = 176, name = "Teal Purple Flip",       hex = "6A0DAD" },
    { modIndex = 177, name = "Turquoise Red Flip",   hex = "E60026" },
    { modIndex = 178, name = "Turquoise Purple Flip",hex = "30D5C8" },
    { modIndex = 179, name = "Cyan Purple Flip",       hex = "0FF0FC" },
    { modIndex = 180, name = "Blue Pink Flip",         hex = "4C2882" },
    { modIndex = 181, name = "Blue Green Flip",      hex = "138808" },
    { modIndex = 182, name = "Purple Red Flip",      hex = "9B111E" },
    { modIndex = 183, name = "Purple Green Flip",      hex = "6B2E53" },
    { modIndex = 184, name = "Magenta Green Flip",   hex = "CA1F7B" },
    { modIndex = 185, name = "Magenta Yellow Flip",    hex = "FEDF00" },
    { modIndex = 186, name = "Burgundy Green Flip",    hex = "900020" },
    { modIndex = 187, name = "Magenta Cyan Flip",      hex = "00FFA1" },
    { modIndex = 188, name = "Copper Purple Flip",   hex = "B87333" },
    { modIndex = 189, name = "Magenta Orange Flip",    hex = "FF5F1F" },
    { modIndex = 190, name = "Red Orange Flip",      hex = "FF4500" },
    { modIndex = 191, name = "Orange Purple Flip",   hex = "B04080" },
    { modIndex = 192, name = "Orange Blue Flip",       hex = "0047AB" },
    { modIndex = 193, name = "White Purple Flip",      hex = "F8F0E3" },
    { modIndex = 194, name = "Red Rainbow Flip",       hex = "ED2939" },
    { modIndex = 195, name = "Blue Rainbow Flip",      hex = "4B0082" },
    { modIndex = 196, name = "Dark Green Pearl",       hex = "013220" },
    { modIndex = 197, name = "Dark Teal Pearl",      hex = "008080" },
    { modIndex = 198, name = "Dark Blue Pearl",      hex = "000080" },
    { modIndex = 199, name = "Dark Purple Pearl",      hex = "301934" },
    { modIndex = 200, name = "Oil Slick Pearl",      hex = "4B0082" },
    { modIndex = 201, name = "Light Green Pearl",      hex = "99E550" },
    { modIndex = 202, name = "Light Blue Pearl",       hex = "ADD8E6" },
    { modIndex = 203, name = "Light Pink Pearl",       hex = "FFB6C1" },
    { modIndex = 204, name = "Off White Pearl",      hex = "F2F0E6" },
    { modIndex = 205, name = "Pink Pearl",             hex = "EAADEA" },
    { modIndex = 206, name = "Yellow Pearl",         hex = "FFF000" },
    { modIndex = 207, name = "Green Pearl",            hex = "00A550" },
    { modIndex = 208, name = "Blue Pearl",             hex = "0000FF" },
    { modIndex = 209, name = "Cream Pearl",            hex = "FFFDD0" },
    { modIndex = 210, name = "White Prismatic",      hex = "FFFFFF" },
    { modIndex = 211, name = "Graphite Prismatic",   hex = "251607" },
    { modIndex = 212, name = "Dark Blue Prismatic",    hex = "00008B" },
    { modIndex = 213, name = "Dark Purple Prismatic",hex = "301934" },
    { modIndex = 214, name = "Hot Pink Prismatic",   hex = "FF69B4" },
    { modIndex = 215, name = "Dark Red Prismatic",   hex = "8B0000" },
    { modIndex = 216, name = "Dark Green Prismatic",   hex = "013220" },
    { modIndex = 217, name = "Black Prismatic",      hex = "000000" },
    { modIndex = 218, name = "Black Oil Spill",      hex = "121212" },
    { modIndex = 219, name = "Black Rainbow",          hex = "000000" },
    { modIndex = 220, name = "Prismatic",            hex = "CCCCCC" },
    { modIndex = 221, name = "Black Holographic",      hex = "101010" },
    { modIndex = 222, name = "White Holographic",      hex = "E6E8FA" },
    { modIndex = 223, name = "Monochrome",             hex = "B4B4B4" },
    { modIndex = 224, name = "Night & Day",            hex = "333366" },
    { modIndex = 225, name = "The Verlierer",          hex = "550055" },
    { modIndex = 226, name = "Sprunk Extreme",         hex = "00FF00" },
    { modIndex = 227, name = "Vice City",            hex = "FF00FF" },
    { modIndex = 228, name = "Synthwave Nights",       hex = "FF007F" },
    { modIndex = 229, name = "Four Seasons",         hex = "73C2FB" },
    { modIndex = 230, name = "Maisonette 9 Throwback", hex = "DCDCDC" },
    { modIndex = 231, name = "Bubblegum",            hex = "FFC0CB" },
    { modIndex = 232, name = "Full Rainbow",         hex = "FF0000" },
    { modIndex = 233, name = "Sunset",               hex = "FFD700" },
    { modIndex = 234, name = "The Seven",            hex = "701C1C" },
    { modIndex = 235, name = "Kamen Rider",            hex = "1C1C70" },
    { modIndex = 236, name = "Chromatic Aberration",   hex = "D8BFD8" },
    { modIndex = 237, name = "It's Christmas",         hex = "FF0000" },
    { modIndex = 238, name = "Temperature",            hex = "FFA07A" },
    { modIndex = 239, name = "Yellow Orange Pearl",    hex = "FFAE42" },
    { modIndex = 240, name = "Pink Blue Pearl",      hex = "D8BFD8" },
    { modIndex = 241, name = "Green Blue Pearl",       hex = "3CB371" },
    { modIndex = 242, name = "Turquoise Black Pearl",hex = "00CED1" }
}
}

Config.Mods.XenonColours = {
{ modIndex = 0,name = "White",          hex = "DEDEFF" },
{ modIndex = 1,name = "Blue",         hex = "0215FF" },
{ modIndex = 2,name = "Electric Blue",hex = "0353FF" },
{ modIndex = 3,name = "Mint Green",   hex = "00FF8C" },
{ modIndex = 4,name = "Lime Green",   hex = "5EFF01" },
{ modIndex = 5,name = "Yellow",         hex = "FFFF00" },
{ modIndex = 6,name = "Golden Shower",hex = "FF9600" },
{ modIndex = 7,name = "Orange",         hex = "FF3E00" },
{ modIndex = 8,name = "Red",            hex = "FF0101" },
{ modIndex = 9,name = "Pony Pink",      hex = "FF3264" },
{ modIndex = 10, name = "Hot Pink",       hex = "FF05BE" },
{ modIndex = 11, name = "Purple",         hex = "2301FF" },
{ modIndex = 12, name = "Blacklight",   hex = "0F03FF" }
}

ChatGPT 发表于 2024-10-17 07:56:10

CrazyGhost 发表于 2024-10-17 07:50
Config.Mods = {}

Config.Mods.ItemsRequired = {
   ...

Here's a breakdown of the configuration you've provided for the GTA modifications, along with an explanation of its structure and usage.

### Configuration Structure

This configuration file defines various aspects of vehicle modifications in a GTA-related script. Here’s a summary of the sections within the `Config.Mods` structure:

1. **Items Required**:
   - Lists the items required for various modifications (e.g., repair, performance parts).
   - Each entry includes an item name and whether it should be removed from the player inventory after use.

Config.Mods.ItemsRequired = {
repair = { itemName = "repair_kit", removeItem = true },
performance = { itemName = "performance_part", removeItem = true },
-- other items...
}

2. **Performance Modifications**:
   - Defines the types of performance enhancements available for vehicles. Each mod type has an index and a name.
   
Config.Mods.Performance = {
{ modType = 11, name = "Engine" },
{ modType = 12, name = "Brakes" },
-- other performance mods...
}

3. **Cosmetic Modifications**:
   - Lists cosmetic modifications that can be applied to vehicles, such as spoilers, bumpers, and various decorative items.
   
Config.Mods.Cosmetics = {
{ modType = 0, name = "Spoilers" },
{ modType = 1, name = "Front Bumper" },
-- other cosmetic mods...
}

4. **Plate Indexes**:
   - Defines different license plate styles available for vehicles.
   
Config.Mods.PlateIndexes = {
{ modIndex = 0, name = "Blue On White" },
{ modIndex = 1, name = "Yellow On Black" },
-- other plate types...
}

5. **Window Tints**:
   - Lists the various window tint options that can be applied to vehicles.

Config.Mods.WindowTints = {
{ modIndex = 0, name = "No Tint" },
{ modIndex = 1, name = "Lightsmoke" },
-- other tints...
}

6. **Wheel Types**:
   - Specifies the types of wheels that can be used on vehicles.

Config.Mods.WheelTypes = {
{ modIndex = 0, name = "Sport" },
{ modIndex = 1, name = "Muscle" },
-- other wheel types...
}

7. **Horns**:
   - Enumerates various horn sounds available, including whether they are musical.

Config.Mods.Horns = {
{ modIndex = -1, name = "Stock", musical = false },
{ modIndex = 1,name = "Cop Horn", musical = false },
-- other horn types...
}

8. **Colours**:
   - Lists color options that can be applied to different parts of the vehicle (primary, secondary, dashboard, etc.).

Config.Mods.Colours = {
{ name = "Primary", paintTypeKey = "paintType1", colourKey = "color1" },
{ name = "Secondary", paintTypeKey = "paintType2", colourKey = "color2" },
-- other color types...
}

9. **Rgb Paint Finishes**:
   - Details the types of RGB paint finishes available (e.g., normal, metallic).

Config.Mods.RgbPaintFinishes = {
"Normal",
"Metallic",
-- other finishes...
}

10. **GTAA Colors**:
    - Provides a list of specific colors used within the game, identified by index and hexadecimal color codes.

Config.Mods.GtaColours = {
Metallic = {
    { modIndex = 0, name = "Black", hex = "0d1116" },
    { modIndex = 1, name = "Graphite Black", hex = "1c1d21" },
    -- other colors...
},
-- other paint types...
}

11. **Xenon Colors**:
    - Lists possible xenon light colors with respective color codes.

Config.Mods.XenonColours = {
{ modIndex = 0, name = "White", hex = "DEDEFF" },
{ modIndex = 1, name = "Blue", hex = "0215FF" },
-- other xenon colors...
}

### Usage

- **Modifications Management**: This configuration allows the mod to manage vehicle modifications in a coherent and organized manner, ensuring that each modification type is accounted for in terms of availability and requirements.

- **Gameplay Dynamics**: By defining required items and available modifications, this config can influence gameplay dynamics, balancing the cost of modifications and what players need to acquire in-game.

- **Customization**: The ability to modify and customize vehicles enhances the player's experience by allowing them to personalize their vehicles according to their preferences.

If you have specific questions or need help with a particular section, feel free to ask!

CrazyGhost 发表于 2024-10-17 09:04:15

-----------------------------------------------------------------------------------------------------------
-------------------------------------------- VEHICLE TUNING -----------------------------------------------
-----------------------------------------------------------------------------------------------------------
--
-- Here you can create, edit and remove various tuning parts. The changes they make to the handling is all
-- in here, so feel free to modify as you wish. PLEASE bear in mind that if 2 different tuning options
-- modify the same handling values, and are set to overwrite, they could overwrite each other unpredictably
-- Either set the values to NOT overwrite, or make sure that different tuning parts modify unique parts of
-- the handling to prevent undesired results.
--
-- Here is a guide on what different options mean to help you customise your tuning parts.
--
-----------------------------------------------------------------------------------------------------------
--name                      The name of the modification that will be shown in the tablet.
-----------------------------------------------------------------------------------------------------------
--info                      Optional, but you can provide additional info that will show in the UI when
--                            clicking the info icon when they are selecting an upgrade. It could be used
--                            to warn mechanics of vehicles an upgrade shouldn't be applied on, or results
--                            from your testing of handling values.
-----------------------------------------------------------------------------------------------------------
--itemName                  For mechanics set up to use an item for upgrades, this is the name of the
--                            required item.
-----------------------------------------------------------------------------------------------------------
--price                     For mechanics set up to purchase upgrades, this will be the cost to the
--                            mechanic to apply the upgrade.
-----------------------------------------------------------------------------------------------------------
--audioNameHash             Any in-game vehicle name, or addon sound pack name (ENGINE SWAPS ONLY!)
-----------------------------------------------------------------------------------------------------------
--handling                  Add/remove handling attributes & values.
--                            More help & info on handling values: https://gtamods.com/wiki/Handling.meta
-----------------------------------------------------------------------------------------------------------
--handlingApplyOrder      The order in which this tuning option should be applied. This is useful when
--                            tuning options have overlapping handling values! Provide a priority number,
--                            and the lowest numbers will be applied first.
-----------------------------------------------------------------------------------------------------------
--handlingOverwritesValuesWhether the handling values provided should overwrite the vehicle's existing
--                            values, or whether they should modify the vehicle's existing values. This
--                            also works for negative values too.
--                           
--                            For example: a vehicle's current fDriveInertia value is at 1.0
--                               true= a value of 0.5 sets fDriveInertia to 0.5
--                               false = a value of 0.5 will mean and set fDriveInertia to 1.5
-----------------------------------------------------------------------------------------------------------
-- restricted (optional)      Can either be false (unrestricted) "electric" or "combustion"
-----------------------------------------------------------------------------------------------------------
-- blacklist                  List of archetype names (spawn codes) that cannot use this modification
-----------------------------------------------------------------------------------------------------------

Config.Tuning = {
--
-- ENGINE SWAPS
-- You can customise, or add new engine swap options here.
--
engineSwaps = {
    = {
      name = "I4 Turbo 2.5L",
      icon = "engine.svg",
      info = "A twin-turbo charged 2.5L engine. Can reach speeds of up to 100mph!",
      itemName = "i4_engine",
      price = 30000,
      audioNameHash = "sultan2",
      handlingOverwritesValues = true,
      handlingApplyOrder = 1,
      handling = {
      fInitialDriveForce = 0.25,
      fDriveInertia = 1.0,
      fInitialDriveMaxFlatVel = 130.0,
      fClutchChangeRateScaleUpShift = 4.0,
      fClutchChangeRateScaleDownShift = 3.0
      },
      restricted = "combustion",
    },
    = {
      name = "V6 3.3L",
      icon = "engine.svg",
      audioNameHash = "comet4",
      info = "Tuned V6 engine - capable of speeds up to 120mph.",
      itemName = "v6_engine",
      price = 45000,
      handlingOverwritesValues = true,
      handlingApplyOrder = 1,
      handling = {
      fInitialDriveForce = 0.35,
      fDriveInertia = 1.0,
      fInitialDriveMaxFlatVel = 145.0,
      fClutchChangeRateScaleUpShift = 5.0,
      fClutchChangeRateScaleDownShift = 4.0
      },
      restricted = "combustion",
    },
    = {
      name = "V8 6.5L",
      icon = "engine.svg",
      info = "Naturally aspirated 6.5L V8. Has awesome backfires and a crackling sound as you let off the gas. Sure to impress.",
      itemName = "v8_engine",
      price = 65000,
      audioNameHash = "jugular",
      handlingOverwritesValues = true,
      handlingApplyOrder = 1,
      handling = {
      fInitialDriveForce = 0.45,
      fDriveInertia = 1.0,
      fInitialDriveMaxFlatVel = 160.0,
      fClutchChangeRateScaleUpShift = 7.0,
      fClutchChangeRateScaleDownShift = 6.0
      },
      restricted = "combustion",
    },
    = {
      name = "V12 6.0L",
      icon = "engine.svg",
      info = "A huge 6L V12 monster. Can reach speeds of over 130mph, be realistic and only put this in vehicles that could realistically fit a V12.",
      itemName = "v12_engine",
      price = 80000,
      audioNameHash = "schafter3",
      handlingOverwritesValues = true,
      handlingApplyOrder = 1,
      handling = {
      fInitialDriveForce = 0.5,
      fDriveInertia = 1.0,
      fInitialDriveMaxFlatVel = 180.0,
      fClutchChangeRateScaleUpShift = 6.0,
      fClutchChangeRateScaleDownShift = 5.0
      },
      restricted = "combustion",
      blacklist = {"panto"} -- Example of the blacklist feature - feel free to remove this (it couldn't fit a v12 though man, come on)
    }
},

--
-- TYRES
-- You can customise, or add new tyre options here.
--
tyres = {
    = {
      name = "Slicks",
      icon = "wheels/offroad.svg",
      info = false,
      itemName = "slick_tyres",
      price = 25000,
      handlingOverwritesValues = true,
      handlingApplyOrder = 2,
      handling = {
      fTractionCurveMin = 2.8,
      fTractionCurveMax = 3.0
      },
    },
    = {
      name = "Semi-slicks",
      icon = "wheels/offroad.svg",
      info = false,
      itemName = "semi_slick_tyres",
      price = 25000,
      handlingOverwritesValues = true,
      handlingApplyOrder = 2,
      handling = {
      fTractionCurveMin = 2.4,
      fTractionCurveMax = 2.6
      },
    },
    = {
      name = "Offroad",
      icon = "wheels/offroad.svg",
      info = false,
      itemName = "offroad_tyres",
      price = 25000,
      handlingOverwritesValues = true,
      handlingApplyOrder = 2,
      handling = {
      fTractionLossMult = 0.0
      },
    }
},

--
-- BRAKES
-- You can customise, or add new tyre options here.
--
brakes = {
    = {
      name = "Ceramic",
      icon = "brakes.svg",
      info = "Powerful brakes with an immense stopping power",
      itemName = "ceramic_brakes",
      price = 25000,
      handlingOverwritesValues = true,
      handlingApplyOrder = 3,
      handling = {
      fBrakeForce = 1.5
      },
    }
},

--
-- DRIVETRAINS
-- You can customise, or add new drivetain options here.
--
drivetrains = {
    = {
      name = "AWD",
      icon = "drivetrain.svg",
      info = false,
      itemName = "awd_drivetrain",
      price = 50000,
      handlingOverwritesValues = true,
      handlingApplyOrder = 4,
      handling = {
      fDriveBiasFront = 0.5
      },
    },
    = {
      name = "RWD",
      icon = "drivetrain.svg",
      info = false,
      itemName = "rwd_drivetrain",
      price = 50000,
      handlingOverwritesValues = true,
      handlingApplyOrder = 4,
      handling = {
      fDriveBiasFront = 0.0
      },
    },
    = {
      name = "FWD",
      icon = "drivetrain.svg",
      info = false,
      itemName = "fwd_drivetrain",
      price = 50000,
      handlingOverwritesValues = true,
      handlingApplyOrder = 4,
      handling = {
      fDriveBiasFront = 1.0
      },
    }
},

--
-- TURBOCHARGING
-- Note: This category is unique as it just enables/disables mod 18 (the standard GTA turbocharging option)
-- You can't add additional turbocharging options, you can only adjust/remove the existing one.
-- You can't add any handling changes. Make new items/other categories for that.
--
turbocharging = {
    = {
      name = "Turbocharging",
      icon = "turbo.svg",
      info = false,
      itemName = "turbocharger",
      price = 35000,
      restricted = "combustion",
    }
},

--
-- DRIFT TUNING
-- You can't add additional drift tuning options, you can only adjust/remove the existing one.
--
driftTuning = {
    = {
      name = "Drift Tuning",
      icon = "wheels/tuner.svg",
      info = false,
      itemName = "drift_tuning_kit",
      price = 25000,
      handlingOverwritesValues = true,
      handlingApplyOrder = 5,
      handling = {
      fInitialDragCoeff = 12.22,
      fInitialDriveForce = 3.0,
      fInitialDriveMaxFlatVel = 155.0,
      fSteeringLock = 58.0,
      fTractionCurveMax = 0.6,
      fTractionCurveMin = 1.3,
      fTractionCurveLateral = 21.0,
      fLowSpeedTractionLossMult = 0.5,
      fTractionBiasFront = 0.49
      },
    }
},

--
-- EXAMPLE CUSTOM NEW CATEGORY
--
-- ["Transmissions"] = {
--    = {
--   name = "8 speed transmission",
--   icon = "transmission.svg",
--   info = "Testing making a new category",
--   itemName = "transmission",
--   price = 1000,
--   handlingOverwritesValues = true,
--   handling = {
--       nInitialDriveGears = 8
--   },
--   restricted = false,
--   }
-- }
--
-- -- IMPORTANT NOTE --
-- inside of the config.lua, inside of a mechanic location's "tuning" section, you will need to add an
-- additional line in order for it to show & be enabled in the tablet
--
-- ["Transmissions"] = { enabled = true, requiresItem = false },
}
页: [1]
查看完整版本: 汉化保留原代码