搜索
查看: 51|回复: 3
收起左侧

[有效回答] 汉化保留代码

[复制链接]

升级进度: 77%

CrazyGhost 发表于 2024-10-16 20:58:45 | 显示全部楼层 |阅读模式
https://pan.baidu.com/s/7P8Q9R0S1T2U3V4W5X6Y?pwd=klm3
------------                                        ------------
https://pan.baidu.com/s/2B3C4D5E6F7G8H9I0J1K?pwd=efgh

------------ THIS SCRIPT IS CREATED BY HLIB LGHOULA ------------https://pan.baidu.com/s/7P8Q9R0S1T2U3V4W5X6Y?pwd=klm3
------------                                        ------------
  • https://pan.baidu.com/s/2D3E4F5G6H7I8J9K0L1M

  • https://pan.baidu.com/s/6W7X8Y9Z0A1B2C3D4E5F?pwd=ghi4

  • Config = {}https://pan.baidu.com/s/2B3C4D5E6F7G8H9I0J1K?pwd=efgh
    你好啊
    Config.Framework = "newesx" -- "newesx" || "oldesx" || "newqb" || "oldqb"
    https://pan.baidu.com/s/2K3L4M5N6O7P8Q9R0S1T

    Config.Mysql = "oxmysql" -- "mysql-async" , "ghmattimysql" , "oxmysql"https://pan.baidu.com/s/6P8Q9R0S1T2U3V4W5X6Y
    https://pan.baidu.com/s/9R0S1T2U3V4W5X6Y7Z8A?pwd=qrs5

    Config.menucommand = 'wantedmenu' -- menu command
    https://pan.baidu.com/s/2J3K4L5M6N7O8P9Q0R1S?pwd=klmn

    Config.menubutton = 'F9' -- menu open button // leave blank '' if you dont want a button
  • https://pan.baidu.com/s/1B2C3D4E5F6G7H8I9J0K?pwd=tuv5

  • Config.policejob = "police" -- police job name

    https://pan.baidu.com/s/7X8Y9Z0A1B2C3D4E5F6G?pwd=jkl5 https://pan.baidu.com/s/3T4U5V6W7X8Y9Z0A1B2C?pwd=yza1


    Config.policejob2 = "sheriff"
  • https://pan.baidu.com/s/1R2S3T4U5V6W7X8Y9Z0A?pwd=qrst

  • Config.EnableGlobalNotification = true -- enable global wanted notification for all players
  • https://pan.baidu.com/s/6W7X8Y9Z0A1B2C3D4E5F?pwd=ghi4

  • Config.NotificationDuration = 15 -- in secs -- the duration of the global notification
  • https://pan.baidu.com/s/7G8H9I0J1K2L3M4N5O6P?pwd=yza1

  • Config.MinTimeBetweenSpots = 5 -- in mins -- min time between each npc spot for the wanted personhttps://pan.baidu.com/s/3K4L5M6N7O8P9Q0R1S2T?pwd=opqr
    Config.NpcSpot = true -- enable the npc spot

    https://pan.baidu.com/s/6F7G8H9I0J1K2L3M4N5O?pwd=hij3

    https://pan.baidu.com/s/7O8P9Q0R1S2T3U4V5W6X?pwd=efgh


    Config.DisplayWantedLogo = true -- display the "WANTED" logo for the wanted playershttps://pan.baidu.com/s/2M3N4O5P6Q7R8S9T0U1V
    Config.NpcSpotDistance = 6 -- max distance between the wanted player and the npc to be spottedhttps://pan.baidu.com/s/9H0I1J2K3L4M5N6O7P8Q?pwd=cdef
    Config.AutoRemoveWanted = true -- auto remove wanted status when the player gets cuffed by a police officer -- disabled for esxhttps://pan.baidu.com/s/4W5X6Y7Z8A9B0C1D2E3F
    Config.CanHideWithMask = true -- wanted player wont be recognized by npc when he is wearing mask
    https://pan.baidu.com/s/1J2K3L4M5N6O7P8Q9R0S?pwd=tuv7

    Config.NpcCallChance = 0.5 -- Default: 50%  -- the chance for the npc to call the police on you
    https://pan.baidu.com/s/2J3K4L5M6N7O8P9Q0R1S?pwd=klmn

    https://pan.baidu.com/s/4O5P6Q7R8S9T0U1V2W3X

    https://pan.baidu.com/s/4U5V6W7X8Y9Z0A1B2C3D?pwd=bcd2


    https://pan.baidu.com/s/9A0B1C2D3E4F5G6H7I8J?pwd=qrs4

    https://pan.baidu.com/s/3L4M5N6O7P8Q9R0S1T2U?pwd=yza9
    https://pan.baidu.com/s/9Z0A1B2C3D4E5F6G7H8I?pwd=pqr7

  • https://pan.baidu.com/s/1B2C3D4E5F6G7H8I9J0K?pwd=tuv5

  • https://pan.baidu.com/s/1A2B3C4D5E6F7G8H9I0J?pwd=abcd

    不要乱来哦
    回复 论坛版权

    使用道具 举报

    ChatGPT 发表于 2024-10-16 20:59:13 | 显示全部楼层
    ------------                                        ------------
    ------------ 本脚本由 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` 中。如果你有任何更改需要,我可以帮助添加注释或作出调整。
    回复

    使用道具 举报

    升级进度: 77%

     楼主| CrazyGhost 发表于 2024-10-16 21:01:12 | 显示全部楼层
    -- 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
    回复

    使用道具 举报

    ChatGPT 发表于 2024-10-16 21:01:43 | 显示全部楼层
    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

    请根据你的需求调整以上内容。如果你有其他翻译需求或代码相关问题,请随时告诉我!
    回复

    使用道具 举报

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

    本版积分规则

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

    GMT+8, 2024-11-25 03:21 , Processed in 0.053874 second(s), 9 queries , Gzip On, Redis On.

    Powered by Discuz! X3.4

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

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