杰瑞米瓦德 发表于 2024-9-21 02:55:22

翻译 保留原代码


Config          = {} -- DO NOT MODIFY THIS LINE OF CODE
DREAM_TRANSLATE = {} -- DO NOT MODIFY THIS LINE OF CODE

--- Language configuration setting.
-- This sets the active language for translations in the system.
---@usage Config.LANGUAGE = 'en'-- This sets the language to English.
---@field Config.LANGUAGE string (only 'en', 'es', 'fr', or 'et' are valid).
-- If you want to add more languages, follow the format in the code or open a ticket
-- in the Discord for assistance.
Config.LANGUAGE = 'en' -- 'en' | 'es | 'fr' | 'et'

Config.NOTIFY    = 'qb' -- 'qb' | 'ox' | 'esx' | 'esx-new' | 'okok' | 'mythic' | 'chat'
Config.TARGET    = 'qb-target' -- 'ox' | 'qb-target'
Config.FRAMEWORK = 'qb' -- 'qb' | 'esx' | 'esx-old'
-- COMMENT OUT GET_CORE if using 'esx' or 'esx-old'
-- optional to fill in, if you use qb-core this is your getCoreObject function you use.
Config.GET_CORE= exports['qb-core']:GetCoreObject()

Config.DEBUG = false -- debug target boxes

-- Whether or not to only allow a certain job to do postal deliveries
Config.IS_WHITELISTED_TO_JOB = false
-- IF we are whitelisting to a job, whats the job code name?
Config.WHITELISTED_JOB_TITLE = 'postal'

-- Start job ped location
Config.POSTAL_BOSS_COORDS   = vec3(132.9577, 96.1347, 82.5076)
Config.POSTAL_BOSS_HEADING = 149.7562

-- Start job ped hash and animation
Config.POSTAL_BOSS_HASH      = "s_m_y_construct_01"
Config.POSTAL_BOSS_ANIMATION = 'WORLD_HUMAN_SMOKING'

-- Hash for the peds that you drop off packages to
Config.DROP_OFF_PED_HASH = 's_m_y_construct_01'

-- GoPostal Van hash & spawn location
Config.POSTAL_VEHICLE_HASH         = 'boxville2'
Config.POSTAL_VEHICLE_SPAWN_COORDS = vec4(130.4967, 88.7683, 82.1197, 248.5475)

-- Pay multiplier for the job. Increase this for players to be compensated higher for their work
Config.PAY_MULTIPLIER = 1.5

-- Whether or not to show the white arrow marker above the drop off ped & blue postal boxes.
Config.SHOW_WHITE_ARROW_MARKER = true

-- List of coordinates that hold the pick-up locations for the packages.
-- TO FIND MORE LOCATIONS:
-- 1. Execute /pbox to find a singular location.
    -- OR
-- 1. Execute /pbox_record to record while driving around an area.
-- 2. Execute /pbox_record again, press F8, click "open log."
-- 3. Scroll to the bottom of the log and copy the coordinates to paste here.













DREAM_TRANSLATE.en = {
    please_clear_area = 'Please clear the area of vehicles before we bring out the postal van.',
    head_over_to_waypoint = 'Head over to the waypoint to grab your delivery!',
    grab_package = 'Grab Package',
    you_are_not_on_the_job = 'You are not on a postal delivery job so you cannot do this!',
    place_package_in_back_of_van = 'Place the package in the back of your delivery van',
    drop_off_package_in_trunk = 'Drop off package in trunk',
    take_out_package = 'Take out package',
    put_package_in_van = 'Put package in van',
    you_are_done_with_shift = 'You are done with your shift for the day!',
    start_postal_job = 'Start Postal Job',
    end_postal_job = 'End Postal Job',
    drop_off_package = 'Drop off Package',
    where_is_the_package = 'Where is the package? Is it in the back of your van?',
    you_delivered_the_package = 'You have succesfully delivered the package!',
    you_cannot_drive_with_box = 'You cannot drive this vehicle with a box in your hand...',
    force_clock_out_script_restart = 'Our GoPostal IT system just went down, we are forcing you to clock out. Please do not follow through with your delivery.',
    started_postal_job = 'Started postal job',
    player_tried_picking_up_mail_exploit = 'Player tried picking up mail while not on the job... possible exploiter.',
    picked_up_mail = 'Picked up mail from pick up location',
    ended_shift = 'Ended shift',
    tried_to_deliver_while_clocked_out = 'Tried to deliver a package without being clocked in. Possible exploiter.',
    tried_to_deliver_no_van = 'Tried to deliver a package without the GoPostal Van within 30 units of proximity. Possible exploiter.',
    delivered_a_package = 'Delivered a package to a drop off location.',
    you_have_been_paid = 'You have been paid ${{ compensation }} for your delivery.',
}





ChatGPT 发表于 2024-9-21 02:57:34

Config          = {} -- 请勿修改此行代码
DREAM_TRANSLATE = {} -- 请勿修改此行代码

--- 语言配置设置。
-- 这设置了系统中翻译的活动语言。
---@usage Config.LANGUAGE = 'en'-- 这将语言设置为英语。
---@field Config.LANGUAGE string (仅 'en', 'es', 'fr', 或 'et' 是有效的)。
-- 如果您想添加更多语言,请按照代码中的格式进行,或在 Discord 中提交工单以获取帮助。
Config.LANGUAGE = 'en' -- 'en' | 'es' | 'fr' | 'et'

Config.NOTIFY    = 'qb' -- 'qb' | 'ox' | 'esx' | 'esx-new' | 'okok' | 'mythic' | 'chat'
Config.TARGET    = 'qb-target' -- 'ox' | 'qb-target'
Config.FRAMEWORK = 'qb' -- 'qb' | 'esx' | 'esx-old'
-- 如果使用 'esx' 或 'esx-old',请注释掉 GET_CORE
-- 如果您使用 qb-core,这是您使用的 getCoreObject 函数。
Config.GET_CORE= exports['qb-core']:GetCoreObject()

Config.DEBUG = false -- 调试目标框

-- 是否仅允许某个工作进行邮政投递
Config.IS_WHITELISTED_TO_JOB = false
-- 如果我们将工作列入白名单,工作代码名称是什么?
Config.WHITELISTED_JOB_TITLE = 'postal'

-- 开始工作的 NPC 位置
Config.POSTAL_BOSS_COORDS   = vec3(132.9577, 96.1347, 82.5076)
Config.POSTAL_BOSS_HEADING = 149.7562

-- 开始工作的 NPC 哈希和动画
Config.POSTAL_BOSS_HASH      = "s_m_y_construct_01"
Config.POSTAL_BOSS_ANIMATION = 'WORLD_HUMAN_SMOKING'

-- 投递包裹的 NPC 哈希
Config.DROP_OFF_PED_HASH = 's_m_y_construct_01'

-- GoPostal 面包车哈希和生成位置
Config.POSTAL_VEHICLE_HASH         = 'boxville2'
Config.POSTAL_VEHICLE_SPAWN_COORDS = vec4(130.4967, 88.7683, 82.1197, 248.5475)

-- 工作的支付倍数。增加此值以提高玩家的报酬
Config.PAY_MULTIPLIER = 1.5

-- 是否在投递 NPC 和蓝色邮政箱上方显示白色箭头标记。
Config.SHOW_WHITE_ARROW_MARKER = true

-- 存放包裹取件位置的坐标列表。
-- 查找更多位置:
-- 1. 执行 /pbox 查找单个位置。
    -- 或
-- 1. 执行 /pbox_record 在某个区域驾驶时记录。
-- 2. 再次执行 /pbox_record,按 F8,点击“打开日志”。
-- 3. 滚动到日志底部并复制坐标以粘贴到此处。

DREAM_TRANSLATE.en = {
    please_clear_area = '请在我们拿出邮政面包车之前清理区域内的车辆。',
    head_over_to_waypoint = '前往路标以获取您的投递!',
    grab_package = '取包裹',
    you_are_not_on_the_job = '您并没有在邮政投递工作中,因此无法执行此操作!',
    place_package_in_back_of_van = '将包裹放在您的投递面包车后面',
    drop_off_package_in_trunk = '将包裹放入后备箱',
    take_out_package = '取出包裹',
    put_package_in_van = '将包裹放入面包车',
    you_are_done_with_shift = '您今天的工作已结束!',
    start_postal_job = '开始邮政工作',
    end_postal_job = '结束邮政工作',
    drop_off_package = '投递包裹',
    where_is_the_package = '包裹在哪里?它在您的面包车后面吗?',
    you_delivered_the_package = '您已成功投递包裹!',
    you_cannot_drive_with_box = '您无法手持包裹驾驶此车辆...',
    force_clock_out_script_restart = '我们的 GoPostal IT 系统刚刚崩溃,我们强制您下班。请不要继续进行投递。',
    started_postal_job = '开始邮政工作',
    player_tried_picking_up_mail_exploit = '玩家尝试在未上班时取邮件... 可能是利用者。',
    picked_up_mail = '从取件地点取邮件',
    ended_shift = '结束班次',
    tried_to_deliver_while_clocked_out = '尝试在未上班时投递包裹。可能是利用者。',
    tried_to_deliver_no_van = '尝试在距离 GoPostal 面包车 30 个单位外投递包裹。可能是利用者。',
    delivered_a_package = '将包裹投递到指定地点。',
    you_have_been_paid = '您已获得 ${{ compensation }} 的投递报酬。',
}

杰瑞米瓦德 发表于 2024-9-21 03:19:59



Config = {} --don't touch

Config.Framework = 'qbcore' --standalone, esx, qbcore

Config.Payment = 'bank' -- bank or cash payment

Config.EnableMarkers = false -- Do you want to enable markers?

Config.Start = vector3(729.4091796875,-1974.2263183594,29.292043685913) -- don't touch

Config.Veh = vector3(729.50396728516,-1961.6475830078,29.287824630737) -- don't touch

Config.VehSpawn = vector4(732.17559814453,-1983.8890380859,29.292043685913, 347.86053466797) -- don't touch

Config.VehDelete = vector3(740.21, -1910.67, 29.29) -- don't touch

Config.JobPay = 100 --amount to pay

Config.FixTime = 10000 --time in ms 10000 = 10 seconds

Config.WaitForJobTime = 30000 --time in ms 30000 = 30 seconds

Config.Strings = {
    jobName = 'Electrician Job', --job name for blip on map
    alreadyCar = 'You have a work car already', --notification that car is already spawned or in world
    goTo = 'Go to your vehicle!', --go to you car friend..but it takes you there already
    workCar = 'My Work Car', --blip on the map of "your car"
    needCar = 'You must be in job vehicle to receive a job', --can not get new job without a car
    lookWork = 'Waiting for job...', --waiting for work
    workFound = 'Job found, sending you the location now.', --you found work congrats
    lightPole = 'Press E to fix light pole', --fix da pole
    fixPole = "Fixing Lightpole", --you're fixing it
    jobDone ='Job Complete on to the next', --next job
    yourPole = 'Pole', --blip for pole
    spawnVeh = 'Spawn Vehicle', --spawn vehicle dummy
    deleteVeh = 'Delete Vehicle', --delete vehicle dork
    onDuty = 'You are on duty', -- on duty notification
    offDuty = 'You are off duty', --off dutgy notification
    dtSpawn = 'Press E to spawn work vehicle', --press me to spawn
    dtDuty = 'Press E to toggle duty', --press me to toggle duty
    dtDelete = 'Press E to store work vehicle', --press me to store
    esxName = 'es_extended',
    esxMain = 'esx:getSharedObject',
    esxLoad = 'esx:playerLoaded',
    esxJob = 'esx:setJob',
    qbName = 'qb-core',
    qbMain = 'QBCore:GetObject',
    qbLoad = 'QBCore:Client:OnPlayerLoaded',
    qbjob = 'QBCore:Client:OnJobUpdate',
    qbDuty = 'QBCore:Client:SetDuty',
}

Config.JobLocations = { --locations of lightpoles don't touch unless you read rest of code

ChatGPT 发表于 2024-9-21 03:20:12

杰瑞米瓦德 发表于 2024-09-21 03:19
Config = {} --don't touch

Config.Framework = 'qbc ...

Config = {} -- 请勿触碰

Config.Framework = 'qbcore' -- standalone, esx, qbcore

Config.Payment = 'bank' -- 银行或现金支付

Config.EnableMarkers = false -- 您想启用标记吗?

Config.Start = vector3(729.4091796875,-1974.2263183594,29.292043685913) -- 请勿触碰

Config.Veh = vector3(729.50396728516,-1961.6475830078,29.287824630737) -- 请勿触碰

Config.VehSpawn = vector4(732.17559814453,-1983.8890380859,29.292043685913, 347.86053466797) -- 请勿触碰

Config.VehDelete = vector3(740.21, -1910.67, 29.29) -- 请勿触碰

Config.JobPay = 100 -- 支付金额

Config.FixTime = 10000 -- 时间(毫秒),10000 = 10秒

Config.WaitForJobTime = 30000 -- 时间(毫秒),30000 = 30秒

Config.Strings = {
    jobName = '电工工作', -- 地图上标记的工作名称
    alreadyCar = '您已经有一辆工作车', -- 通知车辆已经生成或在世界中
    goTo = '去您的车辆!', -- 去你的车,朋友..但它已经带你去了
    workCar = '我的工作车', -- "你的车" 在地图上的标记
    needCar = '您必须在工作车辆中才能接收工作', -- 没有车无法接新工作
    lookWork = '等待工作中...', -- 等待工作
    workFound = '找到工作,现在发送给您位置。', -- 恭喜你找到工作
    lightPole = '按 E 修理灯杆', -- 修理灯杆
    fixPole = "正在修理灯杆", -- 你正在修理它
    jobDone ='工作完成,继续下一个', -- 下一个工作
    yourPole = '灯杆', -- 灯杆的标记
    spawnVeh = '生成车辆', -- 生成车辆
    deleteVeh = '删除车辆', -- 删除车辆
    onDuty = '您在值班', -- 值班通知
    offDuty = '您下班了', -- 下班通知
    dtSpawn = '按 E 生成工作车辆', -- 按我生成
    dtDuty = '按 E 切换值班', -- 按我切换值班
    dtDelete = '按 E 存储工作车辆', -- 按我存储
    esxName = 'es_extended',
    esxMain = 'esx:getSharedObject',
    esxLoad = 'esx:playerLoaded',
    esxJob = 'esx:setJob',
    qbName = 'qb-core',
    qbMain = 'QBCore:GetObject',
    qbLoad = 'QBCore:Client:OnPlayerLoaded',
    qbjob = 'QBCore:Client:OnJobUpdate',
    qbDuty = 'QBCore:Client:SetDuty',
}

Config.JobLocations = { -- 灯杆的位置,请勿触碰,除非您阅读了其余代码
请继续提供代码的其余部分以便我完成翻译。
页: [1]
查看完整版本: 翻译 保留原代码