搜索
开启左侧

汉化

[复制链接]
赴爱 发表于 5 天前 | 显示全部楼层 |阅读模式

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 = false -- 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 -- [in seconds] How long a nitrous tank lasts
Config.NitrousBottleCooldown = 5 -- [in seconds] 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 = "[E] 使用升降梯"
Config.UseCarLiftKey = 38
Config.CustomiseVehiclePrompt = "[E] 定制车辆"
Config.CustomiseVehicleKey = 38

-- Update vehicle props whenever they are changed [probably should not touch]
-- 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 = {
  lscustoms = {
    type = "owned", -- 自有服务类型
    job = "dujiaoshou", -- 工作名称
    jobManagementRanks = {4}, -- 工作管理权限
    logo = "ls_customs.png", -- 图标文件路径
    locations = {
      {
        coords = vector3(824.8524, -958.4214, 26.4989), -- 位置坐标
        size = 5.0,
        showBlip = false,
      },
      {
        coords = vector3(823.8075, -965.9629, 26.4989), -- 位置坐标
        size = 5.0,
        showBlip = true,
      },
      {
        coords = vector3(823.3945, -974.0840, 26.4989), -- 位置坐标
        size = 5.0,
        showBlip = false,
      },
      {
        coords = vector3(834.8203, -976.9252, 26.6462), -- 位置坐标
        size = 5.0,
        showBlip = true,
      },
      {
        coords = vector3(84.1413, -1756.4185, 29.2867), -- 位置坐标
        size = 5.0,
        showBlip = false,
      },
      {
        coords = vector3(89.8951, -1761.2595, 29.2842), -- 位置坐标
        size = 5.0,
        showBlip = true,
      },
      {
        coords = vector3(95.2821, -1766.2394, 29.2910), -- 位置坐标
        size = 5.0,
        showBlip = false,
      },
      {
        coords = vector3(101.4441, -1770.8038, 29.2835), -- 位置坐标
        size = 5.0,
        showBlip = true,
      },
      {
        coords = vector3(106.9447, -1775.6949, 29.2893), -- 位置坐标
        size = 5.0,
        showBlip = false,
      },
      {
        coords = vector3(113.0211, -1780.2893, 29.2888), -- 位置坐标
        size = 5.0,
        showBlip = true,
      },
      {
        coords = vector3(95.5741, -1799.7483, 29.2830), -- 位置坐标
        size = 5.0,
        showBlip = false,
      },
      {
        coords = vector3(91.1230, -1805.8328, 29.2865), -- 位置坐标
        size = 5.0,
        showBlip = true,
      },
      {
        coords = vector3(66.0702, -1789.7036, 29.2866), -- 位置坐标
        size = 5.0,
        showBlip = false,
      },
      {
        coords = vector3(60.6477, -1784.6561, 29.2882), -- 位置坐标
        size = 5.0,
        showBlip = true,
      },
      --{
       -- coords = vector3(-364.78, -85.71, 38.61),
       -- 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 = false, 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(37.5871, -1782.1504, 29.1189, 48.5281)
    }
  },
}

-- 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


[发帖际遇]: 赴爱 发帖时在路边捡到 34 贡献,偷偷放进了口袋. 幸运榜 / 衰神榜
回复 论坛版权

使用道具 举报

ChatGPT 发表于 5 天前 | 显示全部楼层
Config = {}

-- 集成 (建议保持为 "auto")
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 = "en" -- 语言设置
Config.NumberAndDateFormat = "en-US" -- 数字和日期格式
Config.Currency = "USD" -- 货币设置

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

-- 机械师平板电脑
Config.UseTabletCommand = "tablet" -- 设置为 false 禁用命令
Config.TabletConnectionMaxDistance = 4.0 -- 平板电脑连接最大距离

-- 技能条
Config.UseSkillbars = false -- 设置为 false 使用进度条代替技能条进行安装
Config.ProgressBarDuration = 10000 -- 如果不使用技能条,这是进度条的持续时间(毫秒)
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 -- 每辆车最多3瓶氮气
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 -- 定制车辆按键

-- 每当改变时更新车辆属性 
Config.UpdatePropsOnChange = true -- 设置为 false 留下保存车型变化数据给车库或其他脚本

-- 杂项设置
Config.UniqueBlips = true -- 唯一地图图标
Config.ModsPricesAsPercentageOfVehicleValue = true -- 调整车辆价值的百分比
Config.AdminsHaveEmployeePermissions = false -- 管理员可以像老板一样使用平板电脑与机械师互动
Config.MechanicEmployeesCanSelfServiceMods = false -- 允许机械员工跳过"下单"系统
Config.FullRepairAdminCommand = "vfix" -- 完全修复命令
Config.MechanicAdminCommand = "mechanicadmin" -- 机械管理员命令
Config.ChangePlateDuringPreview = false -- 预览期间更改车牌

-- 机械位置
Config.MechanicLocations = {
  lscustoms = {
    type = "owned", -- 自有服务类型
    job = "dujiaoshou", -- 工作名称
    jobManagementRanks = {4}, -- 工作管理权限
    logo = "ls_customs.png", -- 图标文件路径
    locations = {
      {
        coords = vector3(824.8524, -958.4214, 26.4989), -- 位置坐标
        size = 5.0,
        showBlip = false,
      },
      {
        coords = vector3(823.8075, -965.9629, 26.4989), -- 位置坐标
        size = 5.0,
        showBlip = true,
      },
      {
        coords = vector3(823.3945, -974.0840, 26.4989), -- 位置坐标
        size = 5.0,
        showBlip = false,
      },
      {
        coords = vector3(834.8203, -976.9252, 26.6462), -- 位置坐标
        size = 5.0,
        showBlip = true,
      },
      {
        coords = vector3(84.1413, -1756.4185, 29.2867), -- 位置坐标
        size = 5.0,
        showBlip = false,
      },
      {
        coords = vector3(89.8951, -1761.2595, 29.2842), -- 位置坐标
        size = 5.0,
        showBlip = true,
      },
      {
        coords = vector3(95.2821, -1766.2394, 29.2910), -- 位置坐标
        size = 5.0,
        showBlip = false,
      },
      {
        coords = vector3(101.4441, -1770.8038, 29.2835), -- 位置坐标
        size = 5.0,
        showBlip = true,
      },
      {
        coords = vector3(106.9447, -1775.6949, 29.2893), -- 位置坐标
        size = 5.0,
        showBlip = false,
      },
      {
        coords = vector3(113.0211, -1780.2893, 29.2888), -- 位置坐标
        size = 5.0,
        showBlip = true,
      },
      {
        coords = vector3(95.5741, -1799.7483, 29.2830), -- 位置坐标
        size = 5.0,
        showBlip = false,
      },
      {
        coords = vector3(91.1230, -1805.8328, 29.2865), -- 位置坐标
        size = 5.0,
        showBlip = true,
      },
      {
        coords = vector3(66.0702, -1789.7036, 29.2866), -- 位置坐标
        size = 5.0,
        showBlip = false,
      },
      {
        coords = vector3(60.6477, -1784.6561, 29.2882), -- 位置坐标
        size = 5.0,
        showBlip = true,
      },
    },
    blip = {
      id = 446, -- 地图图标ID
      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 = false, 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(37.5871, -1782.1504, 29.1189, 48.5281)
    }
  },
}

-- 添加电动车以禁用燃油发动机功能
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 -- 自动运行SQL
Config.Debug = false -- 调试模式
回复

使用道具 举报

文明发言,和谐互动
文明发言,和谐互动
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

QQ|Archiver|手机版|小黑屋|FiveM技术教程分享 ( 冀ICP备2021005225号-1 ) |网站地图

GMT+8, 2025-4-25 17:17 , Processed in 0.125115 second(s), 25 queries , Gzip On.

Powered by Discuz! X3.4

© 2001-2013 ELITE论坛【技术无价-分享快乐】

快速回复 返回顶部 返回列表