陈文浪 发表于 2025-5-15 17:44:06

帮我保留源文件翻译


Config = {}
Config.Framework = 'autodetect'      -- esx, oldesx, qb, oldqb, autodetect
Config.SQL = "oxmysql"               -- oxmysql, ghmattimysql, mysql-async
Config.InteractionHandler = 'qb_target' -- drawtext, ox_target, qb_target, qb_textui, esx_textui, codem-textui
Config.Inventory = "codem-inventory"   -- ox_inventory, qb_inventory, esx_inventory, codem-inventory, qs_inventory
Config.EnableGhostMode = true          -- if true players cant touch eachother in vehicle spawn area
Config.DefaultImage = './assets/images/test-pp.png'
Config.Debug = true
Config.JobName = "all" -- all or jobname
Config.DailyMissions = {
["complete_mission"] = {
    header = "Complete One Mission !",
    label = "Complete at least one mission on National T&S.",
    max = 1,
    xp = 2500,
},
["complete_special_mission"] = {
    header = "Complete One Special Delivery!",
    label = "Earn one companies trust and deliver 1 special delivery!",
    max = 1,
    xp = 2500,
},
["on_the_roads"] = {
    header = "On The Roads !",
    label = "Transport goods for 30 minutes in one day.",
    max = 30,
    xp = 2500,
},
}

Config.NpcLocation = {
coords = vector4(806.30, -3183.797, 4.89, 170.07),
model = `g_m_m_chiboss_01`,
blip = {
    name   = 'Trucker Job',
    show   = true, -- if you want to disable the blip, set this to false
    sprite = 477,
    color= 42,
    scale= 0.8,
}
}


Config.IllegalNPC = {
coords = vector4(975.97, -2358.37, 30.82, 175.48),
model = `s_m_y_dealer_01`,
boardLocation = vector3(897.32, -3267.95, 5.5),
money = 10000,
item_name = "illegal_box",
}

Config.GiveXP = {
min = 100,
max = 500,
}

Config.Trucks = {
{
    name= "packer",
    image = "truck-1.png",
    label = "Packer",
    level = 1,
},
{
    name= "hauler",
    image = "truck-2.png",
    label = "Hauler",
    level = 5,
},
{
    name= "phantom3",
    image = "truck-3.png",
    label = "Phantom Classic",
    level = 10,
},
{
    name = "mule3",
    image = "truck-4.png",
    label = "Armored Mule",
    level = 15,
},
{
    name= "phantom",
    image = "truck-5.png",
    label = "Phantom",
    level = 20,
},
{
    name= "benson",
    image = "truck-6.png",
    label = "Benson",
    level = 25,
    desc= "This vehicle is needed for a mission",
},
{
    name= "pounder2",
    image = "truck-7.png",
    label = "Pounder Armored",
    level = 30,
    desc= "This vehicle is needed for a mission",
},
{
    name= "bison",
    image = "truck-8.png",
    label = "Bison",
    level = 35,
    desc= "This vehicle is needed for a mission",
},
{
    name= "terbyte",
    image = "truck-9.png",
    label = "Terbyte",
    level = 40,
    desc= "This vehicle is needed for a mission",
},
}

Config.KeyPressed = {
mark_location = {
    label = "G",
    key = 133,
}
}



Config.VehSpawn = vector4(828.43, -3209.70, 5.89, 175.74)
Config.Missions = {

{
    id = 1,
    image = "map_1.png",
    small_image = 'map_1_small.png',
    header = "Paleto Forest Samwill Woods",
    companyIndex = 0,
    payment = 2500,
    reqPoint = 10,
   
    routes = {
      {
      label = 'LS Dock - Paleto Route',
      trailerSpawnAvaliableCoords = {
          vector4(798.7, -3216.5, 5.899686, 0),
          vector4(794.7504, -3215.694, 5.900031, 357.1012),
          vector4(789.9838, -3215.649, 5.900506, 5.107798),
          vector4(786.0539, -3215.573, 5.90051, 1.167372),
          vector4(782.1802, -3215.651, 5.900813, 4.534193),
          vector4(776.9627, -3216.09, 5.900813, 358.8745),
          vector4(772.7141, -3215.985, 5.900814, 1.223303)
      },
      trailerModel = "trailerlogs",
      vehicle = {
          "hauler",
          "packer",
          "phantom3",
          "mule3",
          "phantom",
      },
      destination = vector3(-557.17, 5380.73, 69.93),
      },
      {
      label = 'Grapeseed - Paleto Route',
      vehicle = {
          "hauler",
          "packer",
          "phantom3",
          "mule3",
          "phantom",
      },
      trailerModel = "trailerlogs",
      trailerSpawnAvaliableCoords = {
          vector4(1723.541, 4697.999, 42.7987, 91.37262),
          vector4(1723.211, 4704.551, 42.50185, 91.84235),
          vector4(1711.765, 4704.261, 42.71589, 99.38809),
      },
      destination = vector3(-557.17, 5380.73, 69.93),
      reqPoint = 5,
      extraPayment = 250,
      },
      {
      label = 'Factory - Paleto Route',
      vehicle = {
          "hauler",
          "packer",
          "phantom3",
          "mule3",
          "phantom",
      },
      trailerModel = "trailerlogs",
      attachModel = "prop_woodpile_01a",

      trailerSpawnAvaliableCoords = {
          vector4(1004.577, -2352.82, 30.50954, 272.484),
          vector4(1004.397, -2348.147, 30.50954, 263.0752),
          vector4(1005.497, -2340.967, 30.50954, 273.4695),
          vector4(1005.619, -2333.665, 30.50954, 277.6554),
          vector4(1006.049, -2325.625, 30.50958, 273.2463),
      },

      destination = vector3(-557.17, 5380.73, 69.93),
      reqPoint = 5,
      extraPayment = 250,
      },
    },
    requirementsLabel = {
      {
      label = "Wood Supply",
      icon = "supply-icon.svg",
      },
      {
      label = "$2,500 Profit",
      icon = "profit-icon.svg",
      },
      {
      label = "3 Different Route",
      icon = "route-icon.svg",
      },
      {
      label = "+1 Company Trust",
      icon= "trust-icon.svg",
      },
    },
},
{
    id = 2,
    image = "map_2.png",
    small_image = 'map_2_small.png',
    companyIndex = 0,
    payment = 4500,
    reqPoint = 10,
    header = "Fame Or Shame TV Stuffs",
    routes = {
      {
      label = 'LS Dock - Richard Majestic Route',
      trailerModel = "tvtrailer",
      vehicle = {
          "hauler",
          "packer",
          "phantom3",
          "mule3",
          "phantom",
      },
      trailerSpawnAvaliableCoords = {
          vector4(799.3639, -3214.31, 5.893721, 0),
          vector4(792.0329, -3215.035, 5.900221, 355.3375),
          vector4(786.2994, -3215.409, 5.900516, 357.7779),
          vector4(780.1738, -3216.303, 5.900813, 10.8169),
          vector4(774.7626, -3216.4, 5.900815, 358.2507),
          vector4(770.1282, -3216.466, 5.900771, 7.595522),
      },
      destination = vector3(-1046.85, -511.86, 36.04),
      },
      {
      label = 'Richards Majestic - Galileo Observotory Route',
      vehicle = {
          "hauler",
          "packer",
          "phantom3",
          "mule3",
          "phantom",
      },
      trailerModel = "tvtrailer",
      trailerSpawnAvaliableCoords = {
          vector4(-1047.13, -514.0089, 36.03854, 24.44029),
          vector4(-1038.265, -500.2329, 36.05179, 116.1902),
          vector4(-1027.843, -509.8654, 36.31044, 27.27471),
          vector4(-1031.929, -494.2613, 36.72496, 122.1846),
      },
      destination = vector3(-422.45, 1198.71, 325.64),
      reqPoint = 5,
      extraPayment = 250,
      },
    },
    requirementsLabel = {
      {
      label = "Bale Supply",
      icon = "supply-icon.svg",
      },
      {
      label = "$4,500 Profit",
      icon = "profit-icon.svg",
      },
      {
      label = "2 Different Route",
      icon = "route-icon.svg",
      },
      {
      label = "+1 Company Trust",
      icon = "trust-icon.svg",
      },
    },
},
{
    id = 3,
    image = "map_3.png",
    small_image = 'map_3_small.png',
    header = "Paleto Bay Tobaccos",
    companyIndex = 2,
    reqPoint = 10,
    payment = 10500,
    reqLevel = 25,

    routes = {
      {
      label = 'LS Dock - Paleto Bay Route',
      vehicle = {
          "hauler",
          "packer",
          "phantom3",
          "mule3",
          "phantom",
      },
      trailerModel = "trailers",
      trailerSpawnAvaliableCoords = {
          vector4(799.3649, -3214.31, 5.893924, 0),
          vector4(795.2145, -3214.251, 5.900215, 1.973009),
          vector4(790.6353, -3214.163, 5.900066, 4.824779),
          vector4(785.3427, -3214.404, 5.900518, 350.2079),
          vector4(779.6624, -3214.523, 5.900812, 6.768034),
          vector4(774.1818, -3215.198, 5.900813, 6.995431),
          vector4(770.2321, -3215.323, 5.900747, 359.741),
      },
      destination = vector3(-22.11, 6404.47, 31.49),

      },
      {
      label = 'Paleto Bay - Elysian Island Route',
      trailerModel = "trailers",
      vehicle = {
          "hauler",
          "packer",
          "phantom3",
          "mule3",
          "phantom",
      },

      trailerSpawnAvaliableCoords = {
          vector4(-19.89689, 6407.285, 31.49038, 227.0173),
          vector4(-22.22347, 6404.834, 31.48478, 226.5558),
          vector4(-37.39086, 6415.241, 31.49046, 315.7942),
      },
      destination = vector3(-246.92, -2574.15, 6.0),
      reqPoint = 5,
      extraPayment = 250,
      },

    },
    requirementsLabel = {
      {
      label = "Packed Cigar Supply",
      icon = "supply-icon.svg",
      },
      {
      label = "$10,500 Profit",
      icon = "profit-icon.svg",
      },
      {
      label = "2 Different Route",
      icon = "route-icon.svg",
      },
      {
      label = "+1 Company Trust",
      icon = "trust-icon.svg",
      },
    },
},
{
    id = 4,
    image = "map_4.png",
    small_image = 'map_4_small.png',
    header = "Grapeseed Tobaccos",
    companyIndex = 2,
    reqPoint = 10,
    payment = 14500,
    routes = {
      {
      label = 'LS Dock - Grapeseed Route',
      trailerModel = "trailers4",
      vehicle = {
          "hauler",
          "packer",
          "phantom3",
          "mule3",
          "phantom",
      },
      trailerSpawnAvaliableCoords = {
          vector4(799.3651, -3214.31, 5.893404, 0),
          vector4(794.5779, -3214.407, 5.900177, 357.5678),
          vector4(791.3696, -3214.817, 5.900245, 2.14888),
          vector4(786.3469, -3214.882, 5.900516, 358.6359),
          vector4(781.1396, -3215.533, 5.900811, 0.1206731),
          vector4(775.7214, -3215.284, 5.900813, 3.294684),
          vector4(771.1802, -3215.677, 5.900662, 358.6042),
          vector4(767.4213, -3215.72, 5.900539, 2.267155),
      },

      destination = vector3(2133.47, 4820.71, 41.22),
      },
      {
      label = 'Grapeseed - Elysian Island Route',
      trailerModel = "trailers4",
      vehicle = {
          "hauler",
          "packer",
          "phantom3",
          "mule3",
          "phantom",
      },

      trailerSpawnAvaliableCoords = {
          vector4(2412.109, 4988.813, 46.22875, 136.4334),
          vector4(2421.288, 4974.819, 46.03722, 145.2324),
          vector4(2407.5, 4958.54, 44.67709, 135.9021),
          vector4(2389.343, 4956.381, 42.94651, 178.8681),
      },
      destination = vector3(-137.71, -2508.03, 6.0),
      reqPoint = 5,
      extraPayment = 250,
      },
    },
    requirementsLabel = {
      {
      label = "Packed Tobacco Supply",
      icon = "supply-icon.svg",
      },
      {
      label = "$14,500 Profit",
      icon = "profit-icon.svg",
      },
      {
      label = "2 Different Route",
      icon = "route-icon.svg",
      },
      {
      label = "+1 Company Trust",
      icon = "trust-icon.svg",
      },
    },
},
{
    id = 5,
    image = "map_5.png",
    header = "Grapeseed Grains",
    small_image = 'map_5_small.png',
    companyIndex = 1,
    reqPoint = 10,
    payment = 5500,
    reqLevel = 25,
    routes = {
      {
      label = 'LS Dock - Grapeseed Route',
      trailerModel = "trailers3",
      vehicle = {
          "hauler",
          "packer",
          "phantom3",
          "mule3",
          "phantom",
      },
      trailerSpawnAvaliableCoords = {
          vector4(799.3635, -3214.31, 5.894857, 0),
          vector4(795.4691, -3214.92, 5.900038, 357.4383),
          vector4(791.6484, -3215.038, 5.900298, 359.324),
          vector4(787.4124, -3215.577, 5.900514, 0.6382077),
          vector4(780.8134, -3214.466, 5.900812, 5.045791),
          vector4(775.407, -3215.005, 5.900815, 0.3904762),
          vector4(770.6196, -3215.428, 5.900711, 3.975594),
          vector4(767.7226, -3215.373, 5.900535, 6.866298),
      },
      destination = vector3(1825.45, 4945.33, 46.09),
      },
      {
      label = 'Grapeseed - Paleto Bay Route',
      trailerModel = "trailers3",
      vehicle = {
          "hauler",
          "packer",
          "phantom3",
          "mule3",
          "phantom",
      },



ChatGPT 发表于 2025-5-15 17:44:40


Config = {}-- 配置表
Config.Framework = 'autodetect'      -- 框架类型:esx、oldesx、qb、oldqb、自动检测
Config.SQL = "oxmysql"               -- 数据库类型:oxmysql、ghmattimysql、mysql-async
Config.InteractionHandler = 'qb_target' -- 交互处理器:drawtext、ox_target、qb_target、qb_textui、esx_textui、codem-textui
Config.Inventory = "codem-inventory"   -- 库存系统:ox_inventory、qb_inventory、esx_inventory、codem-inventory、qs_inventory
Config.EnableGhostMode = true          -- 是否启用幽灵模式:true表示玩家在车辆生成区无法相互接触
Config.DefaultImage = './assets/images/test-pp.png' -- 默认图片路径
Config.Debug = true                     -- 调试模式
Config.JobName = "all"               -- 工作名称:all或具体工作名称
Config.DailyMissions = {                -- 每日任务配置
["complete_mission"] = {
    header = "完成一个任务!",
    label = "在国家T&S上至少完成一个任务。",
    max = 1,
    xp = 2500,
},
["complete_special_mission"] = {
    header = "完成一个特殊送货!",
    label = "获得一家公司的信任并完成一次特殊送货!",
    max = 1,
    xp = 2500,
},
["on_the_roads"] = {
    header = "在路上!",
    label = "一天内运输货物30分钟。",
    max = 30,
    xp = 2500,
},
}

Config.NpcLocation = {                  -- NPC位置配置
coords = vector4(806.30, -3183.797, 4.89, 170.07), -- 坐标和朝向
model = `g_m_m_chiboss_01`,          -- NPC模型
blip = {                              -- 地图图标配置
    name   = '卡车司机工作',
    show   = true,                      -- 如果希望禁用图标,将其设置为false
    sprite = 477,
    color= 42,
    scale= 0.8,
}
}

Config.IllegalNPC = {                   -- 非法NPC配置
coords = vector4(975.97, -2358.37, 30.82, 175.48), -- 坐标和朝向
model = `s_m_y_dealer_01`,         -- NPC模型
boardLocation = vector3(897.32, -3267.95, 5.5), -- 上车地点
money = 10000,                     -- 提供的金额
item_name = "illegal_box",         -- 物品名称
}

Config.GiveXP = {                     -- 经验值配置
min = 100,                           -- 最小经验值
max = 500,                           -- 最大经验值
}

Config.Trucks = {                     -- 货车配置
{
    name= "packer",
    image = "truck-1.png",
    label = "打包车",
    level = 1,
},
{
    name= "hauler",
    image = "truck-2.png",
    label = "拖车",
    level = 5,
},
{
    name= "phantom3",
    image = "truck-3.png",
    label = "经典幻影",
    level = 10,
},
{
    name = "mule3",
    image = "truck-4.png",
    label = "装甲骡子",
    level = 15,
},
{
    name= "phantom",
    image = "truck-5.png",
    label = "幻影",
    level = 20,
},
{
    name= "benson",
    image = "truck-6.png",
    label = "本森",
    level = 25,
    desc= "此车辆在任务中需要使用",
},
{
    name= "pounder2",
    image = "truck-7.png",
    label = "装甲冲击者",
    level = 30,
    desc= "此车辆在任务中需要使用",
},
{
    name= "bison",
    image = "truck-8.png",
    label = "公牛",
    level = 35,
    desc= "此车辆在任务中需要使用",
},
{
    name= "terbyte",
    image = "truck-9.png",
    label = "特尔比特",
    level = 40,
    desc= "此车辆在任务中需要使用",
},
}

Config.KeyPressed = {                   -- 按键配置
mark_location = {
    label = "G",
    key = 133,
}
}

Config.VehSpawn = vector4(828.43, -3209.70, 5.89, 175.74) -- 车辆生成位置
Config.Missions = {                     -- 任务配置
{
    id = 1,
    image = "map_1.png",
    small_image = 'map_1_small.png',
    header = "帕莱托森林山林",
    companyIndex = 0,
    payment = 2500,
    reqPoint = 10,
   
    routes = {                        -- 任务路线配置
      {
      label = '洛杉矶码头 - 帕莱托路线',
      trailerSpawnAvaliableCoords = {-- 拖车生成可用坐标
          vector4(798.7, -3216.5, 5.899686, 0),
          vector4(794.7504, -3215.694, 5.900031, 357.1012),
          vector4(789.9838, -3215.649, 5.900506, 5.107798),
          vector4(786.0539, -3215.573, 5.90051, 1.167372),
          vector4(782.1802, -3215.651, 5.900813, 4.534193),
          vector4(776.9627, -3216.09, 5.900813, 358.8745),
          vector4(772.7141, -3215.985, 5.900814, 1.223303)
      },
      trailerModel = "trailerlogs",   -- 拖车模型
      vehicle = {                      -- 可用车辆
          "hauler",
          "packer",
          "phantom3",
          "mule3",
          "phantom",
      },
      destination = vector3(-557.17, 5380.73, 69.93), -- 目的地
      },
      {
      label = '葡萄种植地 - 帕莱托路线',
      vehicle = {
          "hauler",
          "packer",
          "phantom3",
          "mule3",
          "phantom",
      },
      trailerModel = "trailerlogs",
      trailerSpawnAvaliableCoords = {
          vector4(1723.541, 4697.999, 42.7987, 91.37262),
          vector4(1723.211, 4704.551, 42.50185, 91.84235),
          vector4(1711.765, 4704.261, 42.71589, 99.38809),
      },
      destination = vector3(-557.17, 5380.73, 69.93),
      reqPoint = 5,
      extraPayment = 250,
      },
      -- 其他路线配置...
    },
    requirementsLabel = {                -- 任务要求标签
      {
      label = "木材供应",
      icon = "supply-icon.svg",
      },
      {
      label = "$2,500 利润",
      icon = "profit-icon.svg",
      },
      {
      label = "3条不同路线",
      icon = "route-icon.svg",
      },
      {
      label = "+1 公司信任",
      icon= "trust-icon.svg",
      },
    },
},
-- 其他任务配置...
}


以上是保留注释并翻译成简体中文的原始代码。请根据需要进行调整或补充。
页: [1]
查看完整版本: 帮我保留源文件翻译