翻译成中文,保留源代码
-- [[ Core ]]
-- Configuration settings
Config = {}
-- Debug print setting for displaying debug messages.
Config.DebugPrint = false
-- Locale setting for language localization.
Config.Locale = "en"
-- ("esx" | "qb") -- > The latest version is always used.
Config.FrameWork= "esx"
-- ("esx_notify" | "qb_notify" | "custom_notify") -- > System to be used
Config.NotifyType = "esx_notify"
--[[
- ("target" | "drawtext" | "wais-npcdialog") -- > The setting to use when interacting with NPCs, items and vehicles.
- To select wais-npcdialog, you must have it.
- To select wais-npcdialog, At some points, I use target, so target must be installed.
Config.InteractType = "target"
-- ("ox_target" | "qb_target" | "custom")
Config.TargetType = "ox_target"
-- ("ox_textui" | "qb_textui" | "drawtext")
Config.TextUIType = "ox_textui"
-- [[ Delivery Config]]
--[[
client/utils.lua:Utils.Functions.GiveVehicleKey
You need to edit the function according to your own script !
Changing the "script" value is not enough.
Config.VehicleKeySystem = {
active = false,
script = "qb-vehiclekeys",
}
Config.JobOptions = {
--[[ Ranks
Determines the completion experience of each level.
The more there are, the more levels there are.
So in this value, 7 levels have been added.
ranks = { 0, 1800, 4000, 6100, 9500, 12500, 16000 },
--[[ Starting Point
Options for where to receive the job.
startPoints = {
--[[ Start Point #1 ]]
[1] = {
active = true,
--[[
Restrict jobs that can do this job
Value: nil or "job_name" or {job_name_1 = 0, job_name_2 = 0}
job = nil,
-- [[ Employer Options ]]
employerPed = {
-- [[ Employer will be here ]]
spawnCoords = vector4(162.58, -3083.86, 5.95, 266.45),
model = "mp_m_forgery_01",
blip = {
active = true,
scale = 0.8,
color = 16,
sprite = 318,
title = "Delivery Job"
},
--[[ If you have and want Wais Dialog]]
waisDialog = {
coords = vec4(163.674728, -3083.802246, 6.5, 90.708656)
},
},
-- [[ Uniform Options ]]
uniforms = {
active = false,
male = {
["tshirt_1"] = 15,
["tshirt_2"] = 0,
["torso_1"] = 13,
["torso_2"] = 3,
["decals_1"] = 0,
["decals_2"] = 0,
["arms"] = 11,
["pants_1"] = 96,
["pants_2"] = 0,
["shoes_1"] = 10,
["shoes_2"] = 0,
["chain_1"] = 0,
["chain_2"] = 0,
["helmet_1"] = -1,
["helmet_2"] = 0
},
female = {
["tshirt_1"] = 15,
["tshirt_2"] = 0,
["torso_1"] = 13,
["torso_2"] = 3,
["decals_1"] = 0,
["decals_2"] = 0,
["arms"] = 11,
["pants_1"] = 96,
["pants_2"] = 0,
["shoes_1"] = 10,
["shoes_2"] = 0,
["chain_1"] = 0,
["chain_2"] = 0,
["helmet_1"] = -1,
["helmet_2"] = 0
}
},
-- [[ Vehicle Options ]]
taskVehicle = {
model = "boxville2", -- !!! I don't recommend changing it.
-- The vehicle will spawn in the empty slot at the specified coordinates.
spawnCoords = {
vec4(150.750000, -3082.590000, 5.9, 180.0),
vec4(145.859344, -3083.010986, 5.9, 180.0),
vec4(140.399994, -3082.773682, 5.9, 180.0),
vec4(134.149445, -3085.160400, 5.9, 180.0),
vec4(126.435165, -3082.984619, 5.9, 180.0),
vec4(148.167038, -3102.197754, 5.9, 0.0),
vec4(134.597809, -3101.894531, 5.9, 0.0),
vec4(129.415390, -3102.039551, 5.9, 0.0),
vec4(123.969231, -3102.355957, 5.9, 0.0),
},
--[[
-- The coordinates where the boxes to be distributed will be loaded on the vehicles.
-- It will work if the task type is "delivery".
cargoBoxesLoadCoords = {
vec3(144.224182, -3074.505615, 5.892334),
vec3(140.294510, -3074.782471, 5.892334),
vec3(128.729675, -3078.540771, 5.909180),
vec3(121.740662, -3112.021973, 5.993408),
vec3(138.184616, -3111.797852, 5.892334),
},
cargoHoldCoords = {
--[[ I do not recommend changing it. ]]
-- Left --
{ pos = vec3(-0.70, -3.13, 0.265), rot = vec3(0.0, 0.0, 0.0) },
{ pos = vec3(-0.70, -2.75, 0.265), rot = vec3(0.0, 0.0, 0.0) },
{ pos = vec3(-0.70, -2.35, 0.265), rot = vec3(0.0, 0.0, 0.0) },
{ pos = vec3(-0.70, -1.95, 0.265), rot = vec3(0.0, 0.0, 0.0) },
{ pos = vec3(-0.70, -1.55, 0.265), rot = vec3(0.0, 0.0, 0.0) },
{ pos = vec3(-0.70, -1.15, 0.265), rot = vec3(0.0, 0.0, 0.0) },
{ pos = vec3(-0.70, -0.75, 0.265), rot = vec3(0.0, 0.0, 0.0) },
{ pos = vec3(-0.70, -0.35, 0.265), rot = vec3(0.0, 0.0, 0.0) },
-- Right --
{ pos = vec3(0.70, -3.13, 0.265),rot = vec3(0.0, 0.0, 0.0) },
{ pos = vec3(0.70, -2.75, 0.265),rot = vec3(0.0, 0.0, 0.0) },
{ pos = vec3(0.70, -2.35, 0.265),rot = vec3(0.0, 0.0, 0.0) },
{ pos = vec3(0.70, -1.95, 0.265),rot = vec3(0.0, 0.0, 0.0) },
{ pos = vec3(0.70, -1.55, 0.265),rot = vec3(0.0, 0.0, 0.0) },
{ pos = vec3(0.70, -1.15, 0.265),rot = vec3(0.0, 0.0, 0.0) },
{ pos = vec3(0.70, -0.75, 0.265),rot = vec3(0.0, 0.0, 0.0) },
{ pos = vec3(0.70, -0.35, 0.265),rot = vec3(0.0, 0.0, 0.0) },
},
plate = "DELIVERY",
}
},
},
--[[ Delivery | Random objects and peds to be used in tasks. ]]
delivery = {
taskProps = {
{ model = "prop_cs_cardbox_01",coords = vec3(0.05, 0.1, -0.3),rot = vec3(300.0, 250.0, 20.0) },
{ model = "prop_cs_rub_box_01",coords = vec3(0.25, 0.35, -0.3), rot = vec3(80.0, -0.0, 20.0) },
{ model = "prop_cs_package_01",coords = vec3(0.15, 0.0, -0.25), rot = vec3(72.0, 85.0, 2.0) },
{ model = "prop_cs_box_clothes", coords = vec3(0.15, 0.0, -0.25), rot = vec3(72.0, 85.0, 2.0) },
-- { model = "prop_cs_box_step", coords = vec3(0.35, 0.15, -0.5), rot = vec3(72.0, 85.0, 2.0) },
},
taskPeds = {
"u_m_m_aldinapoli", "a_f_m_eastsa_02", "a_m_m_farmer_01", "a_f_y_business_02",
"a_m_m_hasjew_01", "a_f_y_yoga_01", "g_f_y_vagos_01", "g_m_y_korlieut_01",
"g_f_y_ballas_01", "g_m_y_mexgoon_03",
},
},
}
-- []
-- 配置设置
Config = {}
-- 用于显示调试消息的调试打印设置。
Config.DebugPrint = false
-- 语言本地化的区域设置。
Config.Locale = "zh" -- 修改为简体中文
-- ("esx" | "qb") -- > 始终使用最新版本。
Config.FrameWork= "esx"
-- ("esx_notify" | "qb_notify" | "custom_notify") -- > 要使用的系统
Config.NotifyType = "esx_notify"
--[[
- ("target" | "drawtext" | "wais-npcdialog") -- > 与NPC、物品和车辆交互时使用的设置。
- 选择wais-npcdialog时,必须安装它。
- 在某些情况下,我使用target,因此必须安装target。
Config.InteractType = "target"
-- ("ox_target" | "qb_target" | "custom")
Config.TargetType = "ox_target"
-- ("ox_textui" | "qb_textui" | "drawtext")
Config.TextUIType = "ox_textui"
-- []
--[[
client/utils.lua:Utils.Functions.GiveVehicleKey
需要根据自己的脚本编辑该函数!
仅更改“script”值是不够的。
Config.VehicleKeySystem = {
active = false,
script = "qb-vehiclekeys",
}
Config.JobOptions = {
--[[ 职位等级
确定每个级别的完成经验。
级别越多,级别越多。
因此在此值中,添加了7个级别。
ranks = { 0, 1800, 4000, 6100, 9500, 12500, 16000 },
--[[ 起始点
接收工作的选项。
startPoints = {
--[]
= {
active = true,
--[[ 限制可以做此工作的职位
值:nil或“job_name”或{job_name_1 = 0, job_name_2 = 0}
job = nil,
-- []
employerPed = {
-- []
spawnCoords = vector4(162.58, -3083.86, 5.95, 266.45),
model = "mp_m_forgery_01",
blip = {
active = true,
scale = 0.8,
color = 16,
sprite = 318,
title = "送货工作"
},
--[]
waisDialog = {
coords = vec4(163.674728, -3083.802246, 6.5, 90.708656)
},
},
-- []
uniforms = {
active = false,
male = {
["tshirt_1"] = 15,
["tshirt_2"] = 0,
["torso_1"] = 13,
["torso_2"] = 3,
["decals_1"] = 0,
["decals_2"] = 0,
["arms"] = 11,
["pants_1"] = 96,
["pants_2"] = 0,
["shoes_1"] = 10,
["shoes_2"] = 0,
["chain_1"] = 0,
["chain_2"] = 0,
["helmet_1"] = -1,
["helmet_2"] = 0
},
female = {
["tshirt_1"] = 15,
["tshirt_2"] = 0,
["torso_1"] = 13,
["torso_2"] = 3,
["decals_1"] = 0,
["decals_2"] = 0,
["arms"] = 11,
["pants_1"] = 96,
["pants_2"] = 0,
["shoes_1"] = 10,
["shoes_2"] = 0,
["chain_1"] = 0,
["chain_2"] = 0,
["helmet_1"] = -1,
["helmet_2"] = 0
}
},
-- []
taskVehicle = {
model = "boxville2", -- !!! 我不建议更改它。
-- 车辆将在指定坐标的空槽中生成。
spawnCoords = {
vec4(150.750000, -3082.590000, 5.9, 180.0),
vec4(145.859344, -3083.010986, 5.9, 180.0),
vec4(140.399994, -3082.773682, 5.9, 180.0),
vec4(134.149445, -3085.160400, 5.9, 180.0),
vec4(126.435165, -3082.984619, 5.9, 180.0),
vec4(148.167038, -3102.197754, 5.9, 0.0),
vec4(134.597809, -3101.894531, 5.9, 0.0),
vec4(129.415390, -3102.039551, 5.9, 0.0),
vec4(123.969231, -3102.355957, 5.9, 0.0),
},
--[[
-- 货物将被装载到车辆上的坐标。
-- 如果任务类型是“送货”,它将起作用。
cargoBoxesLoadCoords = {
vec3(144.224182, -3074.505615, 5.892334),
vec3(140.294510, -3074.782471, 5.892334),
vec3(128.729675, -3078.540771, 5.909180),
vec3(121.740662, -3112.021973, 5.993408),
vec3(138.184616, -3111.797852, 5.892334),
},
cargoHoldCoords = {
--[]
-- 左侧 --
{ pos = vec3(-0.70, -3.13, 0.265), rot = vec3(0.0, 0.0, 0.0) },
{ pos = vec3(-0.70, -2.75, 0.265), rot = vec3(0.0, 0.0, 0.0) },
{ pos = vec3(-0.70, -2.35, 0.265), rot = vec3(0.0, 0.0, 0.0) },
{ pos = vec3(-0.70, -1.95, 0.265), rot = vec3(0.0, 0.0, 0.0) },
{ pos = vec3(-0.70, -1.55, 0.265), rot = vec3(0.0, 0.0, 0.0) },
{ pos = vec3(-0.70, -1.15, 0.265), rot = vec3(0.0, 0.0, 0.0) },
{ pos = vec3(-0.70, -0.75, 0.265), rot = vec3(0.0, 0.0, 0.0) },
{ pos = vec3(-0.70, -0.35, 0.265), rot = vec3(0.0, 0.0, 0.0) },
-- 右侧 --
{ pos = vec3(0.70, -3.13, 0.265),rot = vec3(0.0, 0.0, 0.0) },
{ pos = vec3(0.70, -2.75, 0.265),rot = vec3(0.0, 0.0, 0.0) },
{ pos = vec3(0.70, -2.35, 0.265),rot = vec3(0.0, 0.0, 0.0) },
{ pos = vec3(0.70, -1.95, 0.265),rot = vec3(0.0, 0.0, 0.0) },
{ pos = vec3(0.70, -1.55, 0.265),rot = vec3(0.0, 0.0, 0.0) },
{ pos = vec3(0.70, -1.15, 0.265),rot = vec3(0.0, 0.0, 0.0) },
{ pos = vec3(0.70, -0.75, 0.265),rot = vec3(0.0, 0.0, 0.0) },
{ pos = vec3(0.70, -0.35, 0.265),rot = vec3(0.0, 0.0, 0.0) },
},
plate = "DELIVERY",
}
},
},
--[]
delivery = {
taskProps = {
{ model = "prop_cs_cardbox_01",coords = vec3(0.05, 0.1, -0.3),rot = vec3(300.0, 250.0, 20.0) },
{ model = "prop_cs_rub_box_01",coords = vec3(0.25, 0.35, -0.3), rot = vec3(80.0, -0.0, 20.0) },
{ model = "prop_cs_package_01",coords = vec3(0.15, 0.0, -0.25), rot = vec3(72.0, 85.0, 2.0) },
{ model = "prop_cs_box_clothes", coords = vec3(0.15, 0.0, -0.25), rot = vec3(72.0, 85.0, 2.0) },
-- { model = "prop_cs_box_step", coords = vec3(0.35, 0.15, -0.5), rot = vec3(72.0, 85.0, 2.0) },
},
taskPeds = {
"u_m_m_aldinapoli", "a_f_m_eastsa_02", "a_m_m_farmer_01", "a_f_y_business_02",
"a_m_m_hasjew_01", "a_f_y_yoga_01", "g_f_y_vagos_01", "g_m_y_korlieut_01",
"g_f_y_ballas_01", "g_m_y_mexgoon_03",
},
},
}
页:
[1]