汉化保留代码
------------ ------------
------------ THIS SCRIPT IS CREATED BY HLIB LGHOULA ------------
------------ ------------
Config = {}
Config.Framework = "newesx" -- "newesx" || "oldesx" || "newqb" || "oldqb"
Config.Mysql = "oxmysql" -- "mysql-async" , "ghmattimysql" , "oxmysql"
Config.menucommand = 'wantedmenu' -- menu command
Config.menubutton = 'F9' -- menu open button // leave blank '' if you dont want a button
Config.policejob = "police" -- police job name
Config.policejob2 = "sheriff"
Config.EnableGlobalNotification = true -- enable global wanted notification for all players
Config.NotificationDuration = 15 -- in secs -- the duration of the global notification
Config.MinTimeBetweenSpots = 5 -- in mins -- min time between each npc spot for the wanted person
Config.NpcSpot = true -- enable the npc spot
Config.DisplayWantedLogo = true -- display the "WANTED" logo for the wanted players
Config.NpcSpotDistance = 6 -- max distance between the wanted player and the npc to be spotted
Config.AutoRemoveWanted = true -- auto remove wanted status when the player gets cuffed by a police officer -- disabled for esx
Config.CanHideWithMask = true -- wanted player wont be recognized by npc when he is wearing mask
Config.NpcCallChance = 0.5 -- Default: 50%-- the chance for the npc to call the police on you
------------ ------------
------------ 本脚本由 HLIB LGHOULA 创建 ------------
------------ ------------
Config = {}
Config.Framework = "newesx" -- "newesx" || "oldesx" || "newqb" || "oldqb"
Config.Mysql = "oxmysql" -- "mysql-async" , "ghmattimysql" , "oxmysql"
Config.menucommand = 'wantedmenu' -- 菜单命令
Config.menubutton = 'F9' -- 菜单打开按钮 // 如果不想要按钮,留空 ''
Config.policejob = "police" -- 警察工作名称
Config.policejob2 = "sheriff"
Config.EnableGlobalNotification = true -- 启用全局通缉通知,适用于所有玩家
Config.NotificationDuration = 15 -- 通知持续时间(秒)
Config.MinTimeBetweenSpots = 5 -- 每个 NPC 位置之间的最小时间(分钟)
Config.NpcSpot = true -- 启用 NPC 识别位置
Config.DisplayWantedLogo = true -- 显示被通缉玩家的 "WANTED" 徽标
Config.NpcSpotDistance = 6 -- 被通缉玩家与 NPC 被识别的最大距离
Config.AutoRemoveWanted = true -- 当玩家被警察逮捕时自动移除通缉状态 -- 对于 esx 禁用
Config.CanHideWithMask = true -- 被通缉玩家佩戴口罩时不会被 NPC 识别
Config.NpcCallChance = 0.5 -- 默认情况:50% -- NPC 报警的几率
--- 菜单
Config.MenuStyle = "native" -- 可以选择 "native" 或 "default"
Config.MenuSize = "size-100" -- 可以选择 "size-100" | "size-110" | "size-125" | "size-150" | "size-175" | "size-200"
Config.MenuLocation = "topright" -- 例如:顶右(默认),顶左,底右,底左
Config.Title = "通缉菜单"
Config.menu1 = "警察通缉菜单"
Config.menu2 = "设置通缉"
Config.menu3 = "移除通缉"
Config.menu4 = "被通缉公民列表"
Config.menu5 = "检查通缉状态"
Config.menu6 = "通缉状态"
Config.menu7 = "在线公民"
Config.menu8 = "在线通缉公民列表"
Config.menu9 = "附近公民"
Config.icon1 = '' -- 在这里添加图标字符串(如果需要)
以上代码是一个配置文件片段,适合放在 `Config.lua` 中。如果你有任何更改需要,我可以帮助添加注释或作出调整。 -- translation
Config.text1 = "Online Citizens"
Config.text2 = "Click to Send global notification again"
Config.text3 = "no player nearby"
Config.text4 = "This citizen is wanted"
Config.text5 = "This citizen is not wanted"
Config.text6 = "You are not a police officer or you are not in service"
Config.text12 = "You are busted"
Config.text13 = "An npc has spotted you and called the police"
Config.text14 = "Wanted person spotted"
Config.text15 = "Citizen is now wanted"
Config.text16 = "You are now wanted"
Config.text17 = "Notification Sent to citizens"
Config.text18 = "This citizen is no longer wanted"
Config.text19 = "You are no longer wanted"
Config.text20 = "Position Marked in Minimap"
-- discord webhooks
Config.wanteddiscord = "" -- wanted webhook
Config.notwanteddiscord = "" -- not wanted webhook
Config.wantedtitle = "Player Wanted"
Config.notwantedtitle = "Player No longer Wanted"
Config.BlacklistedPeds = { -- the peds who dont report to police check hash from https://wiki.gtanet.work/index.php/Peds
1885233650, -- mp_freemode male
-1667301416, -- mp_freemode female
-832573324, -- animal
1462895032, -- animal
-1430839454, -- animal
-1469565163, -- animal
351016938, -- animal
1457690978, -- animal
-50684386, -- animal
1682622302, -- animal
402729631, -- animal
-664053099, -- animal
-1950698411, -- animal
802685111, -- animal
1015224100, -- animal
1794449327, -- animal
1193010354, -- animal
1318032802, -- animal
-1920284487, -- animal
307287994, -- animal
-1323586730, -- animal
111281960, -- animal
1125994524, -- animal
1832265812, -- animal
-541762431, -- animal
-1011537562, -- animal
882848737, -- animal
-1026527405, -- animal
-1788665315, -- animal
-745300483, -- animal
1126154828, -- animal
-1589092019, -- animal
113504370, -- animal
-1384627013-- animal
}
Config.Notification = function(message, type) -- You can change here events for notifications
if Config.Framework == "newesx" or Config.Framework == "oldesx" then
TriggerEvent("esx:showNotification", message)
elseif Config.Framework == "newqb" or Config.Framework == "oldqb"then
TriggerEvent('QBCore:Notify', message, type, 1500)
elseif Config.Framework == "custom" then
-- put your notification event here
-- or use gta default
SetNotificationTextEntry("STRING")
AddTextComponentString(message)
DrawNotification(false, false)
end
end CrazyGhost 发表于 2024-10-16 21:01
-- translation
Config.text1 = "Online Citizens"
Co ...
以下是上述代码的中文汉化版本,包括文本消息、Discord网络钩子以及通知功能:
-- 翻译
Config.text1 = "在线公民"
Config.text2 = "点击重新发送全局通知"
Config.text3 = "附近没有玩家"
Config.text4 = "该公民被通缉"
Config.text5 = "该公民不是通缉犯"
Config.text6 = "你不是警察或者你没有在执勤"
Config.text12 = "你被逮捕了"
Config.text13 = "一个 NPC 已经发现你并报警了"
Config.text14 = "发现被通缉人员"
Config.text15 = "公民现已被通缉"
Config.text16 = "你现在被通缉"
Config.text17 = "通知已发送给公民"
Config.text18 = "该公民不再被通缉"
Config.text19 = "你不再被通缉"
Config.text20 = "位置已标记在小地图上"
-- Discord Webhooks
Config.wanteddiscord = "" -- 被通缉 webhook
Config.notwanteddiscord = "" -- 不再被通缉 webhook
Config.wantedtitle = "玩家被通缉"
Config.notwantedtitle = "玩家不再被通缉"
Config.BlacklistedPeds = { -- 不会报告给警察的 NPC,检查哈希值,参考 https://wiki.gtanet.work/index.php/Peds
1885233650, -- mp_freemode 男性
-1667301416, -- mp_freemode 女性
-832573324, -- 动物
1462895032, -- 动物
-1430839454, -- 动物
-1469565163, -- 动物
351016938, -- 动物
1457690978, -- 动物
-50684386, -- 动物
1682622302, -- 动物
402729631, -- 动物
-664053099, -- 动物
-1950698411, -- 动物
802685111, -- 动物
1015224100, -- 动物
1794449327, -- 动物
1193010354, -- 动物
1318032802, -- 动物
-1920284487, -- 动物
307287994, -- 动物
-1323586730, -- 动物
111281960, -- 动物
1125994524, -- 动物
1832265812, -- 动物
-541762431, -- 动物
-1011537562, -- 动物
882848737, -- 动物
-1026527405, -- 动物
-1788665315, -- 动物
-745300483, -- 动物
1126154828, -- 动物
-1589092019, -- 动物
113504370, -- 动物
-1384627013-- 动物
}
Config.Notification = function(message, type) -- 可以在这里修改通知事件
if Config.Framework == "newesx" or Config.Framework == "oldesx" then
TriggerEvent("esx:showNotification", message)
elseif Config.Framework == "newqb" or Config.Framework == "oldqb"then
TriggerEvent('QBCore:Notify', message, type, 1500)
elseif Config.Framework == "custom" then
-- 在这里放置你的通知事件
-- 或使用 GTA 默认通知
SetNotificationTextEntry("STRING")
AddTextComponentString(message)
DrawNotification(false, false)
end
end
请根据你的需求调整以上内容。如果你有其他翻译需求或代码相关问题,请随时告诉我!
页:
[1]