请帮我翻译 并保留原代码
-----------------For support, scripts, and more----------------
--------------- https://discord.gg/wasabiscripts-------------
---------------------------------------------------------------
local seconds, minutes = 1000, 60000
Config = {}
--------------------------------------------------------------
-- TO MODIFY NOTIFICATIONS TO YOUR OWN CUSTOM NOTIFICATIONS:--
---------- Navigate to client/client.lua line ~96 ------------
--------------------------------------------------------------
Config.gksPhoneDistress = true -- If you use GKS Phone and want to use it for distress signals(If set to true, the default distress will be disabled regardless)
Config.customCarlock = false -- If you use wasabi_carlock(Or want to add your own key system to client/client.lua line ~579)
Config.MythicHospital = false -- If you use that old injury script by mythic. (Added per request to reset injuries on respawn)
Config.jobMenu = 'F6' -- Default job menu key
Config.billingSystem = true -- Current options: 'esx' (For esx_billing) / 'okok' (For okokBilling) (Easy to add more in editable client - SET TO false IF UNDESIRED) or of course false to disable
Config.skinScript = true -- Current options: 'esx' (For esx_skin) / 'appearance' (For wasabi-fivem-appearance) or of course false to disable
Config.RespawnTimer = 1 * minutes -- Time before optional respawn
Config.BleedoutTimer = 20 * minutes -- Time before it forces respawn
Config.removeItemsOnDeath = true -- Remove items on death?
Config.Inventory = 'ox' -- Options include: 'ox' - (ox_inventory) / 'mf' - (mf-inventory) / 'qs' (qs-inventory) / 'other' (whatever else) // This only really matters if using Config.removeItemsOnDeath
Config.AntiCombatLog = { -- When enabled will kill player who logged out while dead
enabled = true, -- enabled?
notification = {
enabled = true, -- enabled notify of wrong-doings??
title = 'Logged While Dead',
desc = 'You last left dead and now have returned dead'
}
}
Config.RespawnPoint = { -- Where player respawns if bleeds out
coords = vec3(324.15, -583.14, 44.20), -- This defaults pillbox
heading = 332.22
}
Config.EMSItems = {
revive = {
item = 'defib', -- Item used for reviving
remove = false -- Remove item when using?
},
heal = {
item = 'medikit', -- Item used for healing
duration = 5 * seconds, -- Time to use
remove = true -- Remove item when using?
},
sedate = {
item = 'sedative', -- Item used to sedate players temporarily
duration = 8 * seconds, -- Time sedative effects last
remove = true -- Remove item when using?
},
medbag = 'medbag', -- Medbag item name used for getting supplies to treat patient
stretcher = 'stretcher' -- Item used for stretcher
}
Config.ReviveRewards = {
enabled = true, -- Enable cash rewards for reviving
no_injury = 4000, -- If above enabled, how much reward for fully treated patient with no injury in diagnosis
burned = 3000,-- How much if player is burned and revived without being treated
beat = 2500, -- So on, so forth
stabbed = 2000,
shot = 1500,
}
Config.ReviveHealth = { -- How much health to deduct for those revived without proper treatment
shot = 60, -- Ex. If player is shot and revived without having the gunshots treated; they will respond with 60 health removed
stabbed = 50,
beat = 40,
burned = 20
}
Config.TreatmentTime = 9 * seconds -- Time to perform treatment
Config.TreatmentItems = {
shot = 'tweezers',
stabbed = 'suturekit',
beat = 'icepack',
burned = 'burncream'
}
Config.Locations = {
Pillbox = {
Blip = {
Enabled = true,
Coords = vec3(324.15, -583.14, 44.20),
Sprite = 61,
Color = 2,
Scale = 1.0,
String = 'Pillbox Hospital'
},
BossMenu = {
Enabled = true,
Target = {
label = 'Access Boss Menu',
coords = vec3(335.59, -594.33, 43.21),
heading = 269.85,
width = 2.0,
length = 1.0,
minZ = 43.21-0.9,
maxZ = 43.21+0.9
}
},
CheckIn = { -- Hospital check-in
Enabled = true, -- Enabled?
Ped = 's_m_m_scientist_01', -- Check in ped
Coords = vec3(308.58, -595.31, 43.28-0.9), -- Coords of ped
Heading = 63.26, -- Heading of ped
Cost = 3000, -- Cost of using hospital check-in. Set to false for free
MaxOnDuty = 3, -- If this amount or less you can use, otherwise it will tell you that EMS is avaliable(Set to false to always enable check-in)
PayAccount = 'bank', -- Account dead player pays from to check-in
Label = ' - Check In'
},
Cloakroom = {
Enabled = true, -- Set to false if you don't want to use (Compatible with esx_skin & wasabi fivem-appearance fork)
Coords = vec3(300.6, -597.7, 42.1), -- Coords of cloakroom
Label = ' - Change Clothes', -- String of text ui of cloakroom
Range = 2.0, -- Range away from coords you can use.
Uniforms = { -- Uniform choices
['Medic'] = { -- Name of outfit that will display in menu
male = { -- Male variation
['tshirt_1'] = 15,['tshirt_2'] = 0,
['torso_1'] = 5, ['torso_2'] = 2,
['arms'] = 5,
['pants_1'] = 6, ['pants_2'] = 1,
['shoes_1'] = 16, ['shoes_2'] = 7,
['helmet_1'] = 44,['helmet_2'] = 7,
},
female = {
['tshirt_1'] = 15,['tshirt_2'] = 0,
['torso_1'] = 4, ['torso_2'] = 14,
['arms'] = 4,
['pants_1'] = 25, ['pants_2'] = 1,
['shoes_1'] = 16, ['shoes_2'] = 4,
}
},
['Doctor'] = {
male = {
['tshirt_1'] = 15,['tshirt_2'] = 0,
['torso_1'] = 5, ['torso_2'] = 2,
['arms'] = 5,
['pants_1'] = 6, ['pants_2'] = 1,
['shoes_1'] = 16, ['shoes_2'] = 7,
['helmet_1'] = 44,['helmet_2'] = 7,
},
female = {
['tshirt_1'] = 15,['tshirt_2'] = 0,
['torso_1'] = 4, ['torso_2'] = 14,
['arms'] = 4,
['pants_1'] = 25, ['pants_2'] = 1,
['shoes_1'] = 16, ['shoes_2'] = 4,
}
},
}
},
MedicalSupplies = { -- EMS Shop for supplies
Enabled = true, -- If set to false, rest of this table do not matter
Ped = 's_m_m_doctor_01', -- Ped to target
Coords = vec3(306.63, -601.44, 43.28-0.95), -- Coords of ped/target
Heading = 337.64, -- Heading of ped
Supplies = { -- Supplies
{ item = 'medbag', label = 'Medical Bag', price = 1000 }, -- Pretty self explanatory, price may be set to 'false' to make free
{ item = 'medikit', label = 'First-Aid Kit', price = 150 },
}
},
Vehicles = { -- Vehicle Garage
Enabled = true, -- Enable? False if you have you're own way for medics to obtain vehicles.
Zone = {
coords = vec3(298.54, -606.79, 43.27), -- Area to prompt vehicle garage
range = 5.5, -- Range it will prompt from coords above
label = ' - Access Garage',
return_label = ' - Return Vehicle'
},
Spawn = {
land = {
coords = vec3(296.16, -607.67, 43.25),
heading = 68.43
},
air = {
coords = vec3(351.24, -587.67, 74.55),
heading =289.29
}
},
Options = {
['ambulance'] = { -- Car/Helicopter/Vehicle Spawn Code/Model Name
label = 'Ambulance',
category = 'land', -- Options are 'land' and 'air'
},
['dodgeems'] = { -- Car/Helicopter/Vehicle Spawn Code/Model Name
label = 'Dodge Charger',
category = 'land', -- Options are 'land' and 'air'
},
['polmav'] = { -- Car/Helicopter/Vehicle Spawn Code/Model Name
label = 'Maverick',
category = 'air', -- Options are 'land' and 'air'
},
}
},
}
}
-----------------获取支持、脚本和更多资源请访问----------------
--------------- https://discord.gg/wasabiscripts-------------
---------------------------------------------------------------
local seconds, minutes = 1000, 60000
Config = {}
--------------------------------------------------------------
-- 要修改通知为自定义通知,请执行以下操作:--
---------- 转到 client/client.lua 的第96行 ------------
--------------------------------------------------------------
Config.gksPhoneDistress = true -- 如果使用 GKS Phone 并希望用它发送紧急信号(如果设置为 true,则默认的紧急信号将被禁用)
Config.customCarlock = false -- 如果使用 wasabi_carlock(或者想要在客户端/client.lua第579行添加自己的密钥系统)
Config.MythicHospital = false -- 如果使用那个旧的 myhtic 受伤脚本(根据请求添加以在重生时重置受伤)
Config.jobMenu = 'F6' -- 默认工作菜单键
Config.billingSystem = true -- 当前选项: 'esx'(对应 esx_billing)/'okok'(对应 okokBilling)(在可编辑的 client 中轻松添加更多选项,如果不需要则设置为 false)
Config.skinScript = true -- 当前选项: 'esx'(对应 esx_skin)/'appearance'(对应 wasabi-fivem-appearance)或者设置为 false
Config.RespawnTimer = 1 * minutes -- 可选重生之前的时间
Config.BleedoutTimer = 20 * minutes -- 强制重生之前的时间
Config.removeItemsOnDeath = true -- 死亡时删除物品?
Config.Inventory = 'ox' -- 选项包括: 'ox' - (ox_inventory)/'mf' - (mf-inventory)/'qs'(qs-inventory)/'other'(其他任何东西)//这只在使用 Config.removeItemsOnDeath 时重要
Config.AntiCombatLog = { -- 启用后会杀死登出时处于死亡状态的玩家
enabled = true, -- 启用?
notification = {
enabled = true, -- 启用错误通知吗?
title = '登出时死亡',
desc = '您上次处于死亡状态并且现在已返回死亡状态'
}
}
Config.RespawnPoint = { -- 玩家在流血致死时重生的地点
coords = vec3(324.15, -583.14, 44.20), -- 默认为医院
heading = 332.22
}
Config.EMSItems = {
revive = {
item = 'defib', -- 用于复活的物品
remove = false -- 使用时移除物品?
},
heal = {
item = 'medikit', -- 用于治疗的物品
duration = 5 * seconds, -- 使用时间
remove = true -- 使用时移除物品?
},
sedate = {
item = 'sedative', -- 用于暂时镇静玩家的物品
duration = 8 * seconds, -- 镇静效果持续时间
remove = true -- 使用时移除物品?
},
medbag = 'medbag', -- 用于获取治疗患者所需物品的医疗包
stretcher = 'stretcher' -- 担架物品
}
Config.ReviveRewards = {
enabled = true, -- 启用复活奖励
no_injury = 4000, -- 如果上述启用了,在诊断中完全治疗且没有受伤的病人的奖励金额
burned = 3000,-- 如果玩家被烧伤并在未接受治疗的情况下被复活,奖励金额为多少
beat = 2500, -- 如此类推
stabbed = 2000,
shot = 1500,
}
Config.ReviveHealth = { -- 对于未经妥善治疗而复活的玩家减少的健康值
shot = 60, -- 例如,如果玩家被射击并在未经过枪伤处理的情况下被复活,他们将减少60点生命值
stabbed = 50,
beat = 40,
burned = 20
}
Config.TreatmentTime = 9 * seconds -- 执行治疗的时间
Config.TreatmentItems = {
shot = 'tweezers',
stabbed = 'suturekit',
beat = 'icepack',
burned = 'burncream'
}
Config.Locations = {
Pillbox = {
Blip = {
Enabled = true,
Coords = vec3(324.15, -583.14, 44.20),
Sprite = 61,
Color = 2,
Scale = 1.0,
String = 'Pillbox 医院'
},
BossMenu = {
Enabled = true,
Target = {
label = '访问老板菜单',
coords = vec3(335.59, -594.33, 43.21),
heading = 269.85,
width = 2.0,
length = 1.0,
minZ = 43.21-0.9,
maxZ = 43.21+0.9
}
},
CheckIn = { -- 医院办理登记手续
Enabled = true, -- 启用?
Ped = 's_m_m_scientist_01', -- 登记员 ped
Coords = vec3(308.58, -595.31, 43.28-0.9), -- ped的坐标
Heading = 63.26, -- ped的朝向
Cost = 3000, -- 使用医院登记的费用。设置为 false 则免费
MaxOnDuty = 3, -- 如果少于此数量,您可以使用,否则会告诉您 EMS 可用(设置为 false 总是启用登记)
PayAccount = 'bank', -- 死亡的玩家支付医院登记的账户
Label = ' - 登记'
},
Cloakroom = {
Enabled = true, -- 如果不想使用,则设置为 false(与 esx_skin 和 wasabi fivem-appearance 兼容)
Coords = vec3(300.6, -597.7, 42.1), -- 衣帽间坐标
Label = ' - 更换服装', -- 衣帽间的文本 UI 字符串
Range = 2.0, -- 可用的范围
Uniforms = { -- 制服选择
['Medic'] = { -- 在菜单中显示的制服名称
male = { -- 男性变体
['tshirt_1'] = 15,['tshirt_2'] = 0,
['torso_1'] = 5, ['torso_2'] = 2,
['arms'] = 5,
['pants_1'] = 6, ['pants_2'] = 1,
['shoes_1'] = 16, ['shoes_2'] = 7,
['helmet_1'] = 44,['helmet_2'] = 7,
},
female = {
['tshirt_1'] = 15,['tshirt_2'] = 0,
['torso_1'] = 4, ['torso_2'] = 14,
['arms'] = 4,
['pants_1'] = 25, ['pants_2'] = 1,
['shoes_1'] = 16, ['shoes_2'] = 4,
}
},
['Doctor'] = {
male = {
['tshirt_1'] = 15,['tshirt_2'] = 0,
['torso_1'] = 5, ['torso_2'] = 2,
['arms'] = 5,
['pants_1'] = 6, ['pants_2'] = 1,
['shoes_1'] = 16, ['shoes_2'] = 7,
['helmet_1'] = 44,['helmet_2'] = 7,
},
female = {
['tshirt_1'] = 15,['tshirt_2'] = 0,
['torso_1'] = 4, ['torso_2'] = 14,
['arms'] = 4,
['pants_1'] = 25, ['pants_2'] = 1,
['shoes_1'] = 16, ['shoes_2'] = 4,
}
},
}
},
MedicalSupplies = { -- 供应品 EMS 商店
Enabled = true, -- 如果设置为 false,则其余部分无关紧要
Ped = 's_m_m_doctor_01', -- 目标 ped
Coords = vec3(306.63, -601.44, 43.28-0.95), -- ped/target 的坐标
Heading = 337.64, -- ped 的朝向
Supplies = { -- 供应品
{ item = 'medbag', label = '医疗包', price = 1000 }, -- 相当直白,price 可设置为 'false' 来设置为免费
{ item = 'medikit', label = '急救包', price = 150 },
}
},
Vehicles = { -- 车辆车库
Enabled = true, -- 启用?如果有自己获取救护车的方式,则设为 false
Zone = {
coords = vec3(298.54, -606.79, 43.27), -- 提示车辆车库的区域
range = 5.5, -- 提示范围
label = ' - 访问车库',
return_label = ' - 归还车辆'
},
Spawn = {
land = {
coords = vec3(296.16, -607.67, 43.25),
heading = 68.43
},
air = {
coords = vec3(351.24, -587.67, 74.55),
heading =289.29
}
},
Options = {
['ambulance'] = { -- 车辆(直升机)生成代码/模型名称
label = '救护车',
category = 'land', -- 选项为 'land' 和 'air'
},
['dodgeems'] = { -- 车辆(直升机)生成代码/模型名称
label = '道奇充电器',
category = 'land', -- 选项为 'land' 和 'air'
},
['polmav'] = { -- 车辆(直升机)生成代码/模型名称
label = 'Maverick',
category = 'air', -- 选项为 'land' 和 'air'
},
}
},
}
}lua
-- 以上代码应放在服务器的脚本文件server.lua中--
页:
[1]