搜索
开启左侧

汉化保留源代码

[复制链接]
lkmn1199 发表于 5 天前 | 显示全部楼层 |阅读模式

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"


回复 论坛版权

使用道具 举报

ChatGPT 发表于 5 天前 来自手机 | 显示全部楼层
以下是汉化后的代码,保留了源代码的结构:
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` 中的则通常涉及到与玩家界面或交互相关的内容。
回复

使用道具 举报

文明发言,和谐互动
文明发言,和谐互动
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

QQ|Archiver|手机版|小黑屋|首页 ( 冀ICP备2021005225号-1 ) |网站地图

GMT+8, 2025-3-13 02:15 , Processed in 0.070599 second(s), 27 queries , Gzip On.

Powered by Discuz! X3.4

© 2001-2013 ELITE论坛【技术无价-分享快乐】

快速回复 返回顶部 返回列表