翻译成中文,保留源代码
Config, Locales = {}, {}
Config.Locale = 'en' -- en / pt / gr / fr / de
Config.ESX11 = false -- set it to true if you are using ESX 1.1
Config.okokTextUI = true -- true = okokTextUI (I recommend you using this since it is way more optimized than the default ShowHelpNotification) | false = ShowHelpNotification
Config.UseOkOkBankingSounds = false -- true = Uses Sounds | false = No sounds
Config.UseTargetOnAtm = false -- Using target and not TextUI to access to the atms
Config.UseTargetOnBank = false -- Using target and not TextUI to access to the bank
Config.TargetSystem = 'ox-target' -- qtarget | ox-target
Config.TargetBankDistance = 1.5 -- Distance to target a bank from ox_target or q-target ( To change the distance to ATM check line 66)
Config.DebugTargetZones = false -- Set to true only if you need to check the position of a zone
Config.IBANPrefix = "OK" -- IBAN prefix
Config.IBANNumbers = 6 -- How many characters the IBAN has by default
Config.CustomIBANMaxChars = 10 -- How many characters the IBAN can have when changing it to a custom one (on Settings tab)
Config.CustomIBANAllowLetters = true -- If the custom IBAN can have letters or only numbers (on Settings tab)
Config.IBANChangeCost = 5000 -- How much it costs to change the IBAN to a custom one (on Settings tab)
Config.PINChangeCost = 1000 -- How much it costs to change the PIN (on Settings tab)
Config.AnimTime = 2 -- Seconds (ATM animation)
Config.UseAddonAccount = false -- If true it will use the addon_account_data table | If false the okokbanking_societies table
Config.RequireCreditCardForATM = false -- Set to true if you would like players to access the ATM with a card item | If false there is no item requirement
Config.CreditCardItem = "creditcard" -- Required item to access the ATM
Config.CreditCardPrice = 100 -- How much it costs to purchase a credit card
Config.UseSteamNames = false -- If true it will use steam name | If false, the character name
Config.Locale = 'en'
Config.Societies = { -- Which societies have bank accounts
"police",
"ambulance"
}
Config.SocietyAccessRanks = { -- Which ranks of the society have access to it
"boss",
"chief",
}
Config.ShowBankBlips = true -- True = show bank blips on the map | false = don't show blips
Config.BankLocations = { -- To get blips and colors check this: https://wiki.gtanet.work/index.php?title=Blips
{blip = 108, blipColor = 2, blipScale = 0.9, x = 150.266, y = -1040.203, z = 29.374, blipText = "Bank", BankDistance = 3, boxZone = {pos = vec3(149.07, -1041.02, 29.55), size = vec3(2.85, 0.30, 1.30), rotation = 70, maxZ = 30.9}},
{blip = 108, blipColor = 2, blipScale = 0.9, x = -1212.980, y = -330.841, z = 37.787, blipText = "Bank", BankDistance = 3, boxZone = {pos = vec3(-1212.98, -331.53, 38.0), size = vec3(2.85, 0.40, 1.30), rotation = 117, maxZ = 39.25}},
{blip = 108, blipColor = 2, blipScale = 0.9, x = -2962.582, y = 482.627, z = 15.703, blipText = "Bank", BankDistance = 3, boxZone = {pos = vec3(-2962.00, 482.20, 15.92), size = vec3(2.85, 0.40, 1.30), rotation = 178, maxZ = 17.1}},
{blip = 108, blipColor = 2, blipScale = 0.9, x = -112.202, y = 6469.295, z = 31.626, blipText = "Bank", BankDistance = 3, boxZone = {pos = vec3(-111.69, 6469.5, 31.83), size = vec3(4.2, 0.40, 1.25), rotation = 45, maxZ = 33.15}},
{blip = 108, blipColor = 2, blipScale = 0.9, x = 314.187, y = -278.621, z = 54.170, blipText = "Bank", BankDistance = 3, boxZone = {pos = vec3(313.26, -279.38, 54.35), size = vec3(2.85, 0.40, 1.30), rotation = 250, maxZ = 55.7}},
{blip = 108, blipColor = 2, blipScale = 0.9, x = -351.534, y = -49.529, z = 49.042, blipText = "Bank", BankDistance = 3, boxZone = {pos = vec3(-351.81, -50.2, 49.24), size = vec3(2.85, 0.30, 1.30), rotation = 250, maxZ = 50.5}},
{blip = 108, blipColor = 3, blipScale = 1.2, x = 253.38, y = 220.79, z = 106.29, blipText = "Bank", BankDistance = 3, boxZone = {pos = vec3(252.8, 221.9, 106.20), size = vec3(3.6, 0.20, 1.70), rotation = 250, maxZ = 107.6}},
{blip = 108, blipColor = 2, blipScale = 0.9, x = 1175.064, y = 2706.643, z = 38.094, blipText = "Bank", BankDistance = 3, boxZone = {pos = vec3(1175.72, 2707.36, 38.30), size = vec3(2.85, 0.40, 1.30), rotation = 270, maxZ = 39.5}},
}
Config.ATMDistance = 1.5 -- How close you need to be in order to access the ATM
Config.ATM = { -- ATM models, do not remove any
{model = -870868698},
{model = -1126237515},
{model = -1364697528},
{model = 506770882}
}
-------------------------- DISCORD LOGS
-- To set your Discord Webhook URL go to server.lua, line 2
Config.BotName = 'ServerName' -- Write the desired bot name
Config.ServerName = 'ServerName' -- Write your server's name
Config.IconURL = '' -- Insert your desired image link
Config.DateFormat = '%d/%m/%Y [%X]' -- To change the date format check this website - https://www.lua.org/pil/22.1.html
-- To change a webhook color you need to set the decimal value of a color, you can use this website to do that - https://www.mathsisfun.com/hexadecimal-decimal-colors.html
Config.TransferWebhookColor = '16127'
Config.WithdrawWebhookColor = '16127'
Config.DepositWebhookColor = '16127'
-------------------------- LOCALES (DON'T TOUCH)
function _L(id)
if Locales[Config.Locale][id] then
return Locales[Config.Locale][id]
else
print("Locale '"..id.."' doesn't exist")
end
end
Config, Locales = {}, {}
Config.Locale = 'zh' -- en / pt / gr / fr / de
Config.ESX11 = false -- 如果使用 ESX 1.1 则设置为 true
Config.okokTextUI = true -- true = okokTextUI(我推荐使用这个,因为它比默认的 ShowHelpNotification 更优化) | false = ShowHelpNotification
Config.UseOkOkBankingSounds = false -- true = 使用声音 | false = 不使用声音
Config.UseTargetOnAtm = false -- 使用目标而不是 TextUI 访问 ATM
Config.UseTargetOnBank = false -- 使用目标而不是 TextUI 访问银行
Config.TargetSystem = 'ox-target' -- qtarget | ox-target
Config.TargetBankDistance = 1.5 -- 从 ox_target 或 q-target 针对银行的距离(要更改 ATM 的距离,请查看第 66 行)
Config.DebugTargetZones = false -- 仅在需要检查区域位置时设置为 true
Config.IBANPrefix = "OK" -- IBAN 前缀
Config.IBANNumbers = 6 -- 默认情况下 IBAN 的字符数
Config.CustomIBANMaxChars = 10 -- 当更改为自定义时,IBAN 可以拥有的字符数(在设置选项卡中)
Config.CustomIBANAllowLetters = true -- 自定义 IBAN 是否可以包含字母或仅数字(在设置选项卡中)
Config.IBANChangeCost = 5000 -- 更改 IBAN 为自定义的费用(在设置选项卡中)
Config.PINChangeCost = 1000 -- 更改 PIN 的费用(在设置选项卡中)
Config.AnimTime = 2 -- 秒(ATM 动画)
Config.UseAddonAccount = false -- 如果为 true,将使用 addon_account_data 表 | 如果为 false,将使用 okokbanking_societies 表
Config.RequireCreditCardForATM = false -- 如果希望玩家通过卡片物品访问 ATM,请设置为 true | 如果为 false,则不需要物品
Config.CreditCardItem = "creditcard" -- 访问 ATM 所需物品
Config.CreditCardPrice = 100 -- 购买信用卡的费用
Config.UseSteamNames = false -- 如果为 true,则使用 Steam 名称 | 如果为 false,则使用角色名称
Config.Locale = 'zh'
Config.Societies = { -- 哪些社团拥有银行账户
"police",
"ambulance"
}
Config.SocietyAccessRanks = { -- 哪些级别的社团有权限访问
"boss",
"chief",
}
Config.ShowBankBlips = true -- true = 在地图上显示银行标记 | false = 不显示标记
Config.BankLocations = { -- 要获取标记和颜色,请查看此链接:https://wiki.gtanet.work/index.php?title=Blips
{blip = 108, blipColor = 2, blipScale = 0.9, x = 150.266, y = -1040.203, z = 29.374, blipText = "银行", BankDistance = 3, boxZone = {pos = vec3(149.07, -1041.02, 29.55), size = vec3(2.85, 0.30, 1.30), rotation = 70, maxZ = 30.9}},
{blip = 108, blipColor = 2, blipScale = 0.9, x = -1212.980, y = -330.841, z = 37.787, blipText = "银行", BankDistance = 3, boxZone = {pos = vec3(-1212.98, -331.53, 38.0), size = vec3(2.85, 0.40, 1.30), rotation = 117, maxZ = 39.25}},
{blip = 108, blipColor = 2, blipScale = 0.9, x = -2962.582, y = 482.627, z = 15.703, blipText = "银行", BankDistance = 3, boxZone = {pos = vec3(-2962.00, 482.20, 15.92), size = vec3(2.85, 0.40, 1.30), rotation = 178, maxZ = 17.1}},
{blip = 108, blipColor = 2, blipScale = 0.9, x = -112.202, y = 6469.295, z = 31.626, blipText = "银行", BankDistance = 3, boxZone = {pos = vec3(-111.69, 6469.5, 31.83), size = vec3(4.2, 0.40, 1.25), rotation = 45, maxZ = 33.15}},
{blip = 108, blipColor = 2, blipScale = 0.9, x = 314.187, y = -278.621, z = 54.170, blipText = "银行", BankDistance = 3, boxZone = {pos = vec3(313.26, -279.38, 54.35), size = vec3(2.85, 0.40, 1.30), rotation = 250, maxZ = 55.7}},
{blip = 108, blipColor = 2, blipScale = 0.9, x = -351.534, y = -49.529, z = 49.042, blipText = "银行", BankDistance = 3, boxZone = {pos = vec3(-351.81, -50.2, 49.24), size = vec3(2.85, 0.30, 1.30), rotation = 250, maxZ = 50.5}},
{blip = 108, blipColor = 3, blipScale = 1.2, x = 253.38, y = 220.79, z = 106.29, blipText = "银行", BankDistance = 3, boxZone = {pos = vec3(252.8, 221.9, 106.20), size = vec3(3.6, 0.20, 1.70), rotation = 250, maxZ = 107.6}},
{blip = 108, blipColor = 2, blipScale = 0.9, x = 1175.064, y = 2706.643, z = 38.094, blipText = "银行", BankDistance = 3, boxZone = {pos = vec3(1175.72, 2707.36, 38.30), size = vec3(2.85, 0.40, 1.30), rotation = 270, maxZ = 39.5}},
}
Config.ATMDistance = 1.5 -- 要访问 ATM,您需要的距离
Config.ATM = { -- ATM 模型,不能删除任何
{model = -870868698},
{model = -1126237515},
{model = -1364697528},
{model = 506770882}
}
-------------------------- DISCORD 日志
-- 要设置您的 Discord Webhook URL,请查看 server.lua,第 2 行
Config.BotName = '服务器名称' -- 输入所需的机器人名称
Config.ServerName = '服务器名称' -- 输入服务器名称
Config.IconURL = '' -- 插入所需的图像链接
Config.DateFormat = '%d/%m/%Y ' -- 要更改日期格式,请查看此网站 - https://www.lua.org/pil/22.1.html
-- 要更改 webhook 颜色,您需要设置颜色的十进制值,您可以使用此网站来做到这一点 - https://www.mathsisfun.com/hexadecimal-decimal-colors.html
Config.TransferWebhookColor = '16127'
Config.WithdrawWebhookColor = '16127'
Config.DepositWebhookColor = '16127'
-------------------------- 语言(请勿更改)
function _L(id)
if Locales then
return Locales
else
print("语言 '"..id.."' 不存在")
end
end
页:
[1]