搜索
开启左侧

汉化

[复制链接]
赴爱 发表于 2025-4-5 22:17:24 | 显示全部楼层 |阅读模式

Config = {}

Config.NpcCoords = {x = 2764.02,y = 1358.86,z = 24.5,h = 89.11}  --NPC位置

Config.MaxPlayers = 40

Config.MinPlayersToStartPUBGGame = 2

Config.TimeUntilStartInTicks = (10 * 1000) --from queue

Config.QueueLobby = {x = 2594.33,y = 373.4,z = 108.27,h = 7.0}    --等待区

Config.MapCenter = {x = 4811.110,y = -5101.85,z = 15.57}        

Config.PlaneStartingPosition = {x = 4515.6,y = -4619.3,z = 319.67}  --飞机起飞点

Config.PlaneCameraPosition = {x = -31.64,y = -0.0,z = -208.384} --find camera coords from cl_zoyg.lua line : 697

Config.JumpTime = 15 --in seconds

Config.Circle = {MarkerId = 28, BlipColour = 53, MarkerAlpha = 128, startradius = 700.0,endradius = 10.0,Colour = {r = 40,g = 163,b = 224,a = 200},Height = 200.0}

Config.CircleDamage = {tickrate = 700, damage = 5}  -- hit every x seconds, damage circle will hit every x seconds (max is 200)

Config.CircleSpeed = 0.03 -- lower slow down circle

Config.MaxGameTime = 500 --in seconds

Config.BPPerKill = 20 --point for every kill

Config.BPForWinner = 100 --only when match is full of players. For

Config.useAmbulanceJobDeathCombatLog = false --true

Config.anountKill = true --false

Config.spawnVehicles = true

Config.RankPointsFromWins = 100

Config.RankPointsFromKills = 10

Config.Vehicles = {
    --{model = "dune",x = 4662.5,y = -426.6,z = 19.0,h = 191.0},
    --{model = "issi3",x = 4744.26,y = -580.39,z = 19.0,h = 143.0},
    --{model = "cheburek",x = 4706.43,y = -661.12,z = 19.0,h = 166.72},
    --{model = "pcj",x = 4553.92,y = -605.25,z = 19.0,h = 5.0},
    --{model = "enduro",x = 4349.75,y = -813.24,z = 19.0,h = 14.34},
    --{model = "issi3",x = 4540.34,y = -444.53,z = 19.0,h = 103.53},
    --{model = "dune",x = 4506.05,y = -791.06,z = 19.0,h = 94.0},
    --{model = "bodhi2",x = 4423.44,y = -595.47,z = 19.0,h = 237.0},
    --{model = "crusader",x = 4433.04,y = -470.94,z = 19.0,h = 228.0},

}

Config.Weapons = {
    --[[["WEAPON_PISTOL"] = {
        label = "Pistol",
        cost = 3000, -- in BP points
    },
    ["WEAPON_SMG"] = {
        label = "SMG",
        cost = 10000,
    },
    ["WEAPON_MICROSMG"] = {
        label = "MICRO SMG",
        cost = 7000,
    },
    ["WEAPON_PUMPSHOTGUN"] = {
        label = "PUMPSHOTGUN",
        cost = 15000,
    },
    ["WEAPON_ASSAULTRIFLE"] = {
        label = "ASSAULT RIFLE",
        cost = 15000,
    },
    ["WEAPON_BULLPUPRIFLE"] = {
        label = "BULLPUP RIFLE",
        cost = 25000,
    },
    ["WEAPON_SPECIALCARBINE"] = {
        label = "SPECIAL CARBINE",
        cost = 20000,
    },
    ["WEAPON_KNIFE"] = {
        label = "KNIFE",
        cost = 200,
    },
    ["WEAPON_CARBINERIFLE"] = {
        label = "Carbine Rifle",
        cost = 14000,
    },]]--
}

Config.Items = {
    --[[["phone"] = {
        label = "Phone",
        cost = 100,
    },
    ["bread"] = {
        label = "Ψωμί",
        cost = 1,
    },
    ["clip"] = {
        label = "Ammo",
        cost = 500,
    },
    ["bulletproof"] = {
        label = "Bulletproof",
        cost = 500,
    },]]--
}


[发帖际遇]: 赴爱 乐于助人,奖励 29 贡献. 幸运榜 / 衰神榜
回复 论坛版权

使用道具 举报

ChatGPT 发表于 2025-4-5 22:17:44 | 显示全部楼层
以下是代码的汉化版本及相关注释:
Config = {}

Config.NpcCoords = {x = 2764.02, y = 1358.86, z = 24.5, h = 89.11}  -- NPC位置

Config.MaxPlayers = 40  -- 最大玩家数

Config.MinPlayersToStartPUBGGame = 2  -- 开始游戏所需最小玩家数

Config.TimeUntilStartInTicks = (10 * 1000) -- 从排队到开始的时间(毫秒)

Config.QueueLobby = {x = 2594.33, y = 373.4, z = 108.27, h = 7.0}    -- 等待区位置

Config.MapCenter = {x = 4811.110, y = -5101.85, z = 15.57}         -- 地图中心坐标

Config.PlaneStartingPosition = {x = 4515.6, y = -4619.3, z = 319.67}  -- 飞机起飞点坐标

Config.PlaneCameraPosition = {x = -31.64, y = -0.0, z = -208.384} -- 从 cl_zoyg.lua 第697行获取的相机坐标

Config.JumpTime = 15 -- 跳伞时间(秒)

Config.Circle = {
    MarkerId = 28,
    BlipColour = 53,
    MarkerAlpha = 128,
    startradius = 700.0,
    endradius = 10.0,
    Colour = {r = 40, g = 163, b = 224, a = 200},
    Height = 200.0
}  -- 圆圈相关配置

Config.CircleDamage = {tickrate = 700, damage = 5}  -- 每 x 秒造成的伤害(最大值为200)

Config.CircleSpeed = 0.03 -- 圆圈缩小速度

Config.MaxGameTime = 500 -- 最大游戏时间(秒)

Config.BPPerKill = 20 -- 每击杀获得的积分

Config.BPForWinner = 100 -- 仅当比赛满员时颁发的积分

Config.useAmbulanceJobDeathCombatLog = false -- 是否使用救护车职业死亡日志

Config.anountKill = true -- 是否统计击杀

Config.spawnVehicles = true -- 是否生成车辆

Config.RankPointsFromWins = 100 -- 每场胜利获得的排名积分

Config.RankPointsFromKills = 10 -- 每击杀获得的排名积分

Config.Vehicles = {
    --{model = "dune", x = 4662.5, y = -426.6, z = 19.0, h = 191.0},
    --{model = "issi3", x = 4744.26, y = -580.39, z = 19.0, h = 143.0},
    --{model = "cheburek", x = 4706.43, y = -661.12, z = 19.0, h = 166.72},
    --{model = "pcj", x = 4553.92, y = -605.25, z = 19.0, h = 5.0},
    --{model = "enduro", x = 4349.75, y = -813.24, z = 19.0, h = 14.34},
    --{model = "issi3", x = 4540.34, y = -444.53, z = 19.0, h = 103.53},
    --{model = "dune", x = 4506.05, y = -791.06, z = 19.0, h = 94.0},
    --{model = "bodhi2", x = 4423.44, y = -595.47, z = 19.0, h = 237.0},
    --{model = "crusader", x = 4433.04, y = -470.94, z = 19.0, h = 228.0},
}

Config.Weapons = {
    -- {
        label = "手枪",  -- Pistol
        cost = 3000, -- 以 BP 积分计算
    },
    -- {
        label = "冲锋枪",  -- SMG
        cost = 10000,
    },
    -- {
        label = "微型冲锋枪",  -- MICRO SMG
        cost = 7000,
    },
    -- {
        label = "泵动霰弹枪",  -- PUMPSHOTGUN
        cost = 15000,
    },
    -- {
        label = "突击步枪",  -- ASSAULT RIFLE
        cost = 15000,
    },
    -- {
        label = "牛仔步枪",  -- BULLPUP RIFLE
        cost = 25000,
    },
    -- {
        label = "特种卡宾枪",  -- SPECIAL CARBINE
        cost = 20000,
    },
    -- {
        label = "刀",  -- KNIFE
        cost = 200,
    },
    -- {
        label = "卡宾步枪",  -- Carbine Rifle
        cost = 14000,
    }, --]]
}

Config.Items = {
    -- {
        label = "手机",  -- Phone
        cost = 100,
    },
    -- {
        label = "面包",  -- Ψωμί
        cost = 1,
    },
    -- {
        label = "子弹",  -- Ammo
        cost = 500,
    },
    -- {
        label = "防弹衣",  -- Bulletproof
        cost = 500,
    }, --]]
}

请注意,部分评论已被省略。您可以根据需要添加或修改注释。并且,这段代码适合放在 `server.lua` 中,因为它主要处理配置服务器端的游戏参数。
回复

使用道具 举报

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

本版积分规则

QQ|Archiver|手机版|小黑屋|FiveM技术教程分享 ( 冀ICP备2021005225号-1 ) |网站地图

GMT+8, 2025-4-19 07:02 , Processed in 0.074296 second(s), 26 queries , Gzip On.

Powered by Discuz! X3.4

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

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