帮我汉化且不修改源码
帮我汉化且不修改源码Config = {}
-- QBCore Framework
Config.Framework = "esx" -- Set you framework "qbcore" or "esx" or "" if you use standalone framework and use /drone 1 or 2 command to use the Drone
Config.QBCoreName = false-- You QBCore script name must be correct to work (only if you use QBCore Framework)
-- ESX Framework
Config.IsESXLegacy = true -- Set it true is you're using esx legacy (only if you use ESX Framework)
Config.ESXLegacyName = "es_extended" -- You ESX Legacy script name must be correct to work (only if you use ESX Legacy Framework)
Config.SQL = "oxmysql" -- Set the SQL to "oxmysql" or "mysql-async" depends on what you use on you ESX framework
-- Drone Controls
Config.Controls = { -- FiveM Controls: https://docs.fivem.net/docs/game-references/controls/
Forward = 32, -- W for Qwerty / Z for Azerty
Backward = 33, -- S
Left = 34, -- A for Qwerty / Q for Azerty
Right = 35, -- D
Up = 51, -- E
Down = 52, -- Q for Qwerty / A for Azerty
Stop = 22, -- Space
ZoomOut = 16, -- Mouse Scroll Whell Down
ZoomIn = 17, -- Mouse Scroll Whell Up
Nightvision = 140,-- R
Heatvision = 75, -- F
Spotlight = 47, -- G
ReleaseDrone = 168,-- F7
Scanner = 24, -- Left Mouse Button
SoundBoard = 29, -- B
Cancel = 200,-- ESC
}
Config.SyncDroneSound = false -- if you set it to "true" you may experience a little performance issue, test it
Config.DroneInitAnimations = true -- drone initiation animations (requested by customer)
-- Drone Scanner
Config.ScannerRange = 50.0
Config.ScannerIgnoreMask = false
Config.NoMaskComponentId = 0
-- Drone Text Font
Config.TextFont = 4 -- Text font type
Config.TextCustomFont = { -- This option for servers that use custom fonts or other languages - Used Natives: RegisterFontFile(FontName) / RegisterFontId(FontName)
UseCustomFont = false, -- Set to "true" to enable using custom font
FontName = '', -- Custom font file name
}
-- Drone Transition
Config.Transition = {
['direction'] = 'Direction',
['height'] = 'Height',
['camera'] = 'Camera',
['zoom'] = 'Zoom',
['nightvision'] = 'Nightvision',
['heatvision'] = 'Heatvision',
['spotlight'] = 'Spotlight',
['scan_player'] = 'Scan Player',
['soundboard'] = 'Soundboard',
['cancel'] = 'Cancel',
['cant_use_drone'] = 'You can\'t use the drone',
['release_drone'] = 'Release Drone',
['reconnect_drone'] = 'Reconnect to Drone',
['scan_searching'] = 'Searching...',
['scan_searching_db'] = 'Searching in database...',
['scan_unknown'] = 'Unknown',
['scan_not_recognized'] = 'Target cannot be recognized',
}
Config.UseDroneInVehicle = true
-- This two commands are made for servers that want to toggle ON/OFF the Instructional Buttons or Cam Scaleforms - Default is ON
Config.DroneCamScaleforms = "dronecamscaleforms"
Config.DroneInstructionalButtons = "droneinstructionalbuttons"
-- Drone play sound option settings
Config.SoundsRange = 50.0
Config.SoundsList = {
{
Text = "Pull the car over",
File = "car_over.ogg",
},
{
Text = "LSPD! Pull your car over immediately",
File = "pull_imm.ogg",
},
{
Text = "San Andreas Highway Patrol, stop the car",
File = "sahp_stop.ogg",
},
{
Text = "Last Chance! Stop the car",
File = "last_chance.ogg",
},
{
Text = "Los Santos Police Department, stop the vehicle",
File = "los_santos.ogg",
},
{
Text = "Turn off the engine in your vehicle",
File = "engine_off.ogg",
},
{
Text = "Stop of the vehicle and get out",
File = "get_out.ogg",
},
{
Text = "Freeze! LSPD",
File = "freeze_lspd.ogg",
},
{
Text = "You are not getting away that easy",
File = "away_easy.ogg",
},
{
Text = "The warning is going to be a bullet a******, stop",
File = "bullet_ass.ogg",
},
{
Text = "You can't Hide boy, we will track you down",
File = "cant_hide_boi.ogg",
},
{
Text = "Stop! Don't make me shoot you, give yourself up",
File = "dont_make_me.ogg",
},
{
Text = "LSPD! Give up",
File = "give_up.ogg",
},
{
Text = "This is the LSPD, disperse now",
File = "disperse_now.ogg",
},
{
Text = "Get out of here now, this is the LSPD",
File = "get_out_of_here_now.ogg",
},
{
Text = "This is the LSPD, clear the area now",
File = "clear_the_area.ogg",
},
{
Text = "Move along people! We don't want trouble",
File = "move_along_people.ogg",
},
{
Text = "This is the LSPD, go away now or there will be trouble",
File = "this_is_the_lspd.ogg",
},
}
Config.DevDebug = false -- Just prints few lines for test purposes
好的,我将按照您的要求进行汉化,但不修改源码。以下是汉化后的内容:
Config = {}
-- QBCore 框架
Config.Framework = "esx" -- 设置您的框架 "qbcore" 或 "esx",如果使用独立框架并使用 /drone 1 或 2 命令来使用无人机,请留空
Config.QBCoreName = false-- 您的 QBCore 脚本名称必须是正确的(仅在使用 QBCore 框架时)
-- ESX 框架
Config.IsESXLegacy = true -- 如果您使用 esx legacy,请设置为 true(仅在使用 ESX 框架时)
Config.ESXLegacyName = "es_extended" -- 您的 ESX Legacy 脚本名称必须正确(仅在使用 ESX Legacy 框架时)
Config.SQL = "oxmysql" -- 将 SQL 设置为 "oxmysql" 或 "mysql-async",具体取决于您在 ESX 框架中使用的内容
-- 无人机控制
Config.Controls = { -- FiveM 控制: https://docs.fivem.net/docs/game-references/controls/
Forward = 32, -- W(Qwerty)/ Z(Azerty)
Backward = 33, -- S
Left = 34, -- A(Qwerty)/ Q(Azerty)
Right = 35, -- D
Up = 51, -- E
Down = 52, -- Q(Qwerty)/ A(Azerty)
Stop = 22, -- 空格
ZoomOut = 16, -- 鼠标滚轮向下
ZoomIn = 17, -- 鼠标滚轮向上
Nightvision = 140,-- R
Heatvision = 75, -- F
Spotlight = 47, -- G
ReleaseDrone = 168,-- F7
Scanner = 24, -- 左鼠标按钮
SoundBoard = 29, -- B
Cancel = 200,-- ESC
}
Config.SyncDroneSound = false -- 如果设置为 "true",可能会出现一些性能问题,请测试
Config.DroneInitAnimations = true -- 无人机启动动画(客户要求)
-- 无人机扫描仪
Config.ScannerRange = 50.0
Config.ScannerIgnoreMask = false
Config.NoMaskComponentId = 0
-- 无人机文本字体
Config.TextFont = 4 -- 文本字体类型
Config.TextCustomFont = { -- 此选项适用于使用自定义字体或其他语言的服务器 - 使用的本地内容:RegisterFontFile(FontName) / RegisterFontId(FontName)
UseCustomFont = false, -- 设置为 "true" 以启用使用自定义字体
FontName = '', -- 自定义字体文件名称
}
-- 无人机转换
Config.Transition = {
['direction'] = '方向',
['height'] = '高度',
['camera'] = '相机',
['zoom'] = '缩放',
['nightvision'] = '夜视',
['heatvision'] = '热成像',
['spotlight'] = '聚光灯',
['scan_player'] = '扫描玩家',
['soundboard'] = '音效板',
['cancel'] = '取消',
['cant_use_drone'] = '您无法使用无人机',
['release_drone'] = '释放无人机',
['reconnect_drone'] = '重新连接无人机',
['scan_searching'] = '搜索中...',
['scan_searching_db'] = '在数据库中搜索...',
['scan_unknown'] = '未知',
['scan_not_recognized'] = '目标无法识别',
}
Config.UseDroneInVehicle = true
-- 这两个命令适用于希望打开/关闭说明按钮或摄像机缩放表单的服务器 - 默认是开启
Config.DroneCamScaleforms = "dronecamscaleforms"
Config.DroneInstructionalButtons = "droneinstructionalbuttons"
-- 无人机播放声音选项设置
Config.SoundsRange = 50.0
Config.SoundsList = {
{
Text = "把车停下来",
File = "car_over.ogg",
},
{
Text = "LSPD!立即停车",
File = "pull_imm.ogg",
},
{
Text = "圣安地列斯高速公路巡警,停车",
File = "sahp_stop.ogg",
},
{
Text = "最后一次机会!停车",
File = "last_chance.ogg",
},
{
Text = "洛杉矶警察局,停车",
File = "los_santos.ogg",
},
{
Text = "关闭您的车辆引擎",
File = "engine_off.ogg",
},
{
Text = "停车并下车",
File = "get_out.ogg",
},
{
Text = "不许动!LSPD",
File = "freeze_lspd.ogg",
},
{
Text = "你不能这么容易逃跑",
File = "away_easy.ogg",
},
{
Text = "警告将是子弹,停车",
File = "bullet_ass.ogg",
},
{
Text = "你不能躲,警察会追到你",
File = "cant_hide_boi.ogg",
},
{
Text = "停下!别让我开枪,投降吧",
File = "dont_make_me.ogg",
},
{
Text = "LSPD!投降",
File = "give_up.ogg",
},
{
Text = "这是 LSPD,立即撤离",
File = "disperse_now.ogg",
},
{
Text = "赶快离开,这里是 LSPD",
File = "get_out_of_here_now.ogg",
},
{
Text = "这是 LSPD,立即清理区域",
File = "clear_the_area.ogg",
},
{
Text = "大家散开!我们不想惹麻烦",
File = "move_along_people.ogg",
},
{
Text = "这里是 LSPD,快走,否则会出事",
File = "this_is_the_lspd.ogg",
},
}
Config.DevDebug = false -- 仅用于测试目的,打印几行信息
请注意,以上汉化只是对英文部分进行了翻译,代码的结构和功能没有任何改动。
页:
[1]