汉化保留源代码
Config = {}
--QBCore or ESX
Config.Base = "ESX"
Config.CustomBase = false
-- this will be used when CustomBase is true
function GetCustomExportObject()
-- for qbcore
--return exports['qb-core']:GetCoreObject()
-- for esx
return exports['es_extended']:getSharedObject()
end
--Lawyer Grade should be greater than this to perform action on warrants
Config.LawyerGradeForWarrant = 0
-- ps-dispatch
Config.RecentCalls = true -- ignore this for ps-dispatch v2.x.x
Config.psDispatchVersion = 2
--Jobs
Config.police = {
["police"] = true
}
Config.lawyer = {
["lawyer"] = true
}
Config.ems = {
["ambulance"] = true
}
Config.state = {
["taxi"] = true
}
Config.policeItem = "pdmdt"
Config.lawyerItem = "lawyermdt"
Config.emsItem = "emsmdt"
Config.stateItem = "statemdt"
Config.EnableCommands = true
-- only for ESX, set this to true if you have esx_license
Config.EnableLicenses = false
-- Revokable license ids to be shown in MDT
-- label not required for ESX since it picks from database already
-- you can just set it to true instead of providing label for esx
Config.RevokableLicenses = {
-- id = label
business = "Business",
weapon = "Weapon",
driver = "Driver"
}
Config.EnableHouseListing = false
Config.ShowDispatchMsgContent = true
-- for ESX users only, please uncomment and use this column only if you want profile, criminal scum to work based show different
-- player identifier for profiles and profile search and for criminal scums
-- specify the alternate user identifier column in `users` table to be used for the same in ESX
-- Config.ESXUserIdentifierSecondaryColumn = "id"
以下是汉化后的代码,保留了源代码的结构:
Config = {}
-- QBCore 或 ESX
Config.Base = "ESX"
Config.CustomBase = false
-- 当 CustomBase 为 true 时将使用此函数
function GetCustomExportObject()
-- 针对 qbcore
-- return exports:GetCoreObject()
-- 针对 esx
return exports['es_extended']:getSharedObject()
end
-- 律师等级必须大于此值才能对逮捕令执行操作
Config.LawyerGradeForWarrant = 0
-- ps-dispatch
Config.RecentCalls = true -- 对于 ps-dispatch v2.x.x 忽略此项
Config.psDispatchVersion = 2
-- 职业
Config.police = {
["police"] = true
}
Config.lawyer = {
["lawyer"] = true
}
Config.ems = {
["ambulance"] = true
}
Config.state = {
["taxi"] = true
}
Config.policeItem = "pdmdt"
Config.lawyerItem = "lawyermdt"
Config.emsItem = "emsmdt"
Config.stateItem = "statemdt"
Config.EnableCommands = true
-- 仅针对 ESX,如果您有 esx_license,请将此设置为 true
Config.EnableLicenses = false
-- 要在 MDT 中显示的可撤销许可证 ID
-- 对于 ESX,不需要标签,因为它已从数据库中获取
-- 您可以将其设置为 true,而不是提供标签
Config.RevokableLicenses = {
-- id = 标签
business = "商业",
weapon = "武器",
driver = "司机"
}
Config.EnableHouseListing = false
Config.ShowDispatchMsgContent = true
-- 仅对 ESX 用户,只有在希望配置文件、犯罪分子按照不同的玩家标识符工作时才请取消注释并使用此列
-- 指定要在 ESX 的 `users` 表中用于相同目的的备用用户标识符列
-- Config.ESXUserIdentifierSecondaryColumn = "id"
请注意,代码中的中文注释部分已被添加,以帮助了解每个配置项的含义。根据该代码,主要使用在 `server.lua` 中处理的部分是与工作和许可证相关的逻辑,而使用在 `client.lua` 中的则通常涉及到与玩家界面或交互相关的内容。
页:
[1]