赴爱 发表于 2025-3-26 04:10:55

汉化


--------------------------------------------------------- GROUND PLAYER BY HQLY DEVELOPMENT ---------------------------------------------
config = {
    ['displayText'] = '~y~Press ~g~E~s~ ~y~to teleport to ground!', -- message which will be displayed
    ['key'] = 38,                                                   -- key which activates the teleport (https://docs.fivem.net/docs/game-references/controls/)
    ['preset'] = false,                                             -- false: place ped at current location on ground | true: place ped at preset location in config
    ['coords'] = { x=0.0, y=0.0, z=0.0 },                           -- coordinates for preset location
    ['z_check'] = 0.0,                                              -- z co-ordinate to prompt the player at, found 0.0 to be the best
    ['freeze'] = false,                                             -- whether or not to freeze the player for specified amount after teleporting
    ['freeze_time'] = 2,                                          -- number of seconds to freeze player
}


ChatGPT 发表于 2025-3-26 04:11:04

下面是你的代码汉化版本:


--------------------------------------------------------- 地面传送玩家 由 HQLY 开发 ---------------------------------------------
config = {
    ['displayText'] = '~y~按 ~g~E~s~ ~y~传送到地面!', -- 显示的信息
    ['key'] = 38,                                                   -- 激活传送的键位 (https://docs.fivem.net/docs/game-references/controls/)
    ['preset'] = false,                                          -- false: 将角色放置在当前地面位置 | true: 将角色放置在配置中的预设位置
    ['coords'] = { x=0.0, y=0.0, z=0.0 },                           -- 预设位置的坐标
    ['z_check'] = 0.0,                                              -- 提示玩家的 z 坐标,0.0 是最佳值
    ['freeze'] = false,                                             -- 是否在传送后冻结玩家指定的时间
    ['freeze_time'] = 2,                                          -- 冻结玩家的秒数
}


此配置应当放在 `config.lua` 或者在其他配置文件中,而不是 `server.lua` 或 `client.lua` 中,因为这是纯粹的配置数据。
页: [1]
查看完整版本: 汉化