汉化保留原代码
Language["en"] = {
price = "$%s",
amount = "Amount",
interact_lottery = "Lottery Store",
menu_main_view_keno = "View Keno Drawings",
menu_main_view_moneyball = "View Moneyball Drawings",
menu_main_view_desc = "View the results of current and previous drawings.",
menu_main_purchase = "Purchase Lottery Tickets",
menu_main_purchase_desc = "Purchase Scratchers, Keno, and Moneyball Tickets.",
menu_main_insert = "Insert Lottery Tickets",
menu_main_insert_desc = "Insert Keno and Moneyball Tickets to Play.",
menu_main_redeem = "Redeem Lottery Tickets",
menu_main_redeem_desc = "Redeem purchased ticket receipts and scratchers.",
no_drawings = "There are no drawings to view at the moment.",
insert_none = "There are no tickets that are insertable. Please make sure your ticket is filled out.",
insert_keno = "Numbers: %s\n Games: %s\n Wager: %s\n Price: %s",
moneyball_numbers = "Panel #%s: %s | Moneyball: %s",
insert_moneyball = "%s\n Price: %s",
redeem_none = "There are no tickets that are redeemable.",
redeem_keno = "Numbers: %s\n Game(s): %s",
redeem_moneyball = "%s\n Game: %s",
redeem_scratch = "Winning Numbers: %s\n Numbers: %s",
redeem_won = "You won $%s from the lottery!",
redeem_lost = "You did not win anything from this ticket.",
redeem_games_more = "There are still more games left on this ticket, stay tuned!",
redeem_games_none = "There are no more games left on this ticket.",
keno_ticket = "Keno Ticket",
moneyball_ticket = "Moneyball Ticket",
moneyball_view_title = "Moneyball Game #%s",
moneyball_view_desc = "Numbers: %s | Moneyball: %s\n Date: %s",
keno_view_title = "Keno Game #%s",
keno_view_desc = "Numbers: %s\n Date: %s",
confirm_payment = "Confirm payment of $%s for %s (x%s)",
no_room = "You don't have enough room for this.",
no_afford = "You can't afford this (need $%s more).",
interact_far = "You need to be closer to this point to interact with it.",
discord_keno_drawing_title = "New Keno Drawing",
discord_keno_drawing_desc = "Game #%s has now been drawn!\n\nNumbers: %s",
discord_moneyball_drawing_title = "New Moneyball Drawing",
discord_moneyball_drawing_desc = "Game #%s has now been drawn!\n\nNumbers: %s Moneyball: %s",
}
Language["zh"] = {
price = "价格: ¥%s",
amount = "数量",
interact_lottery = "彩票商店",
menu_main_view_keno = "查看Keno抽奖",
menu_main_view_moneyball = "查看Moneyball抽奖",
menu_main_view_desc = "查看当前和之前抽奖的结果。",
menu_main_purchase = "购买彩票",
menu_main_purchase_desc = "购买刮刮乐、Keno和Moneyball彩票。",
menu_main_insert = "投入彩票",
menu_main_insert_desc = "投入Keno和Moneyball彩票进行游戏。",
menu_main_redeem = "兑换彩票",
menu_main_redeem_desc = "兑换已购买的彩票和刮刮乐。",
no_drawings = "当前没有抽奖可以查看。",
insert_none = "没有可投入的彩票。请确保您的彩票已填写。",
insert_keno = "号码: %s\n 游戏: %s\n 赌注: %s\n 价格: %s",
moneyball_numbers = "面板 #%s: %s | Moneyball: %s",
insert_moneyball = "%s\n 价格: %s",
redeem_none = "没有可兑换的彩票。",
redeem_keno = "号码: %s\n 游戏: %s",
redeem_moneyball = "%s\n 游戏: %s",
redeem_scratch = "中奖号码: %s\n 号码: %s",
redeem_won = "您在彩票中赢得了¥%s!",
redeem_lost = "您没有从这张彩票中中奖。",
redeem_games_more = "这张彩票还有更多游戏,敬请期待!",
redeem_games_none = "这张彩票没有更多游戏了。",
keno_ticket = "Keno彩票",
moneyball_ticket = "Moneyball彩票",
moneyball_view_title = "Moneyball游戏 #%s",
moneyball_view_desc = "号码: %s | Moneyball: %s\n 日期: %s",
keno_view_title = "Keno游戏 #%s",
keno_view_desc = "号码: %s\n 日期: %s",
confirm_payment = "确认支付¥%s,购买%s (x%s)",
no_room = "您没有足够的空间。",
no_afford = "您无法负担此费用(还需¥%s)。",
interact_far = "您需要更靠近此点才能与其交互。",
discord_keno_drawing_title = "新的Keno抽奖",
discord_keno_drawing_desc = "游戏 #%s 现已抽出!\n\n号码: %s",
discord_moneyball_drawing_title = "新的Moneyball抽奖",
discord_moneyball_drawing_desc = "游戏 #%s 现已抽出!\n\n号码: %s Moneyball: %s",
}
以上是将原有的英语文本翻译为简体中文的代码,保留了原始格式和结构。可以将其放在 `server.lua` 或 `client.lua` 中,具体取决于您希望在哪个上下文中使用这些文本。 Config = {}
Config.Debug = true
Config.Language = "en" -- 使用语言。
Config.RenderDistance = 100.0 -- 场景显示半径。
Config.InteractDistance = 2.0 -- 交互半径
Config.UseTarget = true -- 当设置为true时,将使用目标而不是按键来交互。
Config.NoModelTargeting = true -- 当设置为true且使用目标时,将生成一个小型不可见道具,以便在没有实体定义时进行第三视角。
Config.Marker = { -- 如果启用,且不使用目标,且未在交互中定义模型,则将使用此配置。
enabled = true,
id = 2,
scale = 0.25,
color = {255, 255, 255, 127}
}
Config.DefaultStore = {
label = "彩票商店",
accounts = { -- 购买百分比0-100分配给每个社团的账户,注意没有自动调整,所以超过100%的百分比仍然是那个百分比。
["police"] = 50, -- 购买收入的50%。
["ambulance"] = 50, -- 购买收入的50%。
},
items = {
{
label = "肯诺彩票",
description = "填写选项,保存彩票,然后插入。",
item = "lottery_keno",
price = 0 -- 获取肯诺彩票条的价格,应始终免费,因为只有在插入时才支付。
},
{
label = "金钱球彩票",
description = "填写选项,保存彩票,然后插入。",
item = "lottery_moneyball",
price = 0 -- 获取金钱球彩票条的价格,应始终免费,因为只有在插入时才支付。
},
{
label = "pickle刮刮卡",
item = "lottery_pickle",
description = "刮开彩票并兑换奖品!",
price = 2
},
{
label = "野樱桃刮刮卡",
item = "lottery_wildcherry",
description = "刮开彩票并兑换奖品!",
price = 5
},
{
label = "幸运7刮刮卡",
item = "lottery_luckyseven",
description = "刮开彩票并兑换奖品!",
price = 10
},
}
}
Config.Locations = {
{
coords = vector3(34.1786, -1343.2672, 29.4970), -- Strawberry 24/7
heading = -90.3685,
blip = { label = "彩票", id = 500, display = 4, scale = 0.5, color = 2 },
model = {modelType = "prop", hash = `prop_park_ticket_01`},
store = {
label = "彩票商店",
accounts = { -- 购买百分比0-100分配给每个社团的账户,注意没有自动调整,所以超过100%的百分比仍然是那个百分比。
["police"] = 50, -- 购买收入的50%。
["ambulance"] = 50, -- 购买收入的50%。
},
items = {
{
label = "肯诺彩票",
description = "填写选项,保存彩票,然后插入。",
item = "lottery_keno",
price = 0 -- 获取肯诺彩票条的价格,应始终免费,因为只有在插入时才支付。
},
{
label = "金钱球彩票",
description = "填写选项,保存彩票,然后插入。",
item = "lottery_moneyball",
price = 0 -- 获取金钱球彩票条的价格,应始终免费,因为只有在插入时才支付。
},
{
label = "pickle刮刮卡",
item = "lottery_pickle",
description = "刮开彩票并兑换奖品!",
price = 2
},
{
label = "野樱桃刮刮卡",
item = "lottery_wildcherry",
description = "刮开彩票并兑换奖品!",
price = 5
},
{
label = "幸运7刮刮卡",
item = "lottery_luckyseven",
description = "刮开彩票并兑换奖品!",
price = 10
},
}
}
},
{
coords = vector3(920.2538, 40.0376, 81.0959), -- Casino
heading = 237.4434,
blip = { label = "彩票", id = 500, display = 4, scale = 0.5, color = 2 },
model = {modelType = "prop", hash = `prop_park_ticket_01`},
store = {
label = "彩票商店",
accounts = { -- 购买百分比0-100分配给每个社团的账户,注意没有自动调整,所以超过100%的百分比仍然是那个百分比。
["police"] = 50, -- 购买收入的50%。
["ambulance"] = 50, -- 购买收入的50%。
},
items = {
{
label = "肯诺彩票",
description = "填写选项,保存彩票,然后插入。",
item = "lottery_keno",
price = 0 -- 获取肯诺彩票条的价格,应始终免费,因为只有在插入时才支付。
},
{
label = "金钱球彩票",
description = "填写选项,保存彩票,然后插入。",
item = "lottery_moneyball",
price = 0 -- 获取金钱球彩票条的价格,应始终免费,因为只有在插入时才支付。
},
{
label = "pickle刮刮卡",
item = "lottery_pickle",
description = "刮开彩票并兑换奖品!",
price = 2
},
{
label = "野樱桃刮刮卡",
item = "lottery_wildcherry",
description = "刮开彩票并兑换奖品!",
price = 5
},
{
label = "幸运7刮刮卡",
item = "lottery_luckyseven",
description = "刮开彩票并兑换奖品!",
price = 10
},
}
}
},
{
coords = vector3(-49.2994, -1760.2704, 29.4396), -- LTD Gas Station Grove
heading = 318.6361,
blip = { label = "彩票", id = 500, display = 4, scale = 0.5, color = 2 },
model = {modelType = "prop", hash = `prop_park_ticket_01`},
store = {
label = "彩票商店",
accounts = { -- 购买百分比0-100分配给每个社团的账户,注意没有自动调整,所以超过100%的百分比仍然是那个百分比。
["police"] = 50, -- 购买收入的50%。
["ambulance"] = 50, -- 购买收入的50%。
},
items = {
{
label = "肯诺彩票",
description = "填写选项,保存彩票,然后插入。",
item = "lottery_keno",
price = 0 -- 获取肯诺彩票条的价格,应始终免费,因为只有在插入时才支付。
},
{
label = "金钱球彩票",
description = "填写选项,保存彩票,然后插入。",
item = "lottery_moneyball",
price = 0 -- 获取金钱球彩票条的价格,应始终免费,因为只有在插入时才支付。
},
{
label = "pickle刮刮卡",
item = "lottery_pickle",
description = "刮开彩票并兑换奖品!",
price = 2
},
{
label = "野樱桃刮刮卡",
item = "lottery_wildcherry",
description = "刮开彩票并兑换奖品!",
price = 5
},
{
label = "幸运7刮刮卡",
item = "lottery_luckyseven",
description = "刮开彩票并兑换奖品!",
price = 10
},
}
}
},
{
coords = vector3(-707.8763, -917.1802, 19.2143), -- LTD Gas Station Little Seoul
heading = 358.3544,
blip = { label = "彩票", id = 500, display = 4, scale = 0.5, color = 2 },
model = {modelType = "prop", hash = `prop_park_ticket_01`},
store = {
label = "彩票商店",
accounts = { -- 购买百分比0-100分配给每个社团的账户,注意没有自动调整,所以超过100%的百分比仍然是那个百分比。
["police"] = 50, -- 购买收入的50%。
["ambulance"] = 50, -- 购买收入的50%。
},
items = {
{
label = "肯诺彩票",
description = "填写选项,保存彩票,然后插入。",
item = "lottery_keno",
price = 0 -- 获取肯诺彩票条的价格,应始终免费,因为只有在插入时才支付。
},
{
label = "金钱球彩票",
description = "填写选项,保存彩票,然后插入。",
item = "lottery_moneyball",
price = 0 -- 获取金钱球彩票条的价格,应始终免费,因为只有在插入时才支付。
},
{
label = "pickle刮刮卡",
item = "lottery_pickle",
description = "刮开彩票并兑换奖品!",
price = 2
},
{
label = "野樱桃刮刮卡",
item = "lottery_wildcherry",
description = "刮开彩票并兑换奖品!",
price = 5
},
{
label = "幸运7刮刮卡",
item = "lottery_luckyseven",
description = "刮开彩票并兑换奖品!",
price = 10
},
}
}
},
{
coords = vector3(1163.5985, -326.5771, 69.2379), -- LTD Gas Station Mirror Park
heading = 10.6814,
blip = { label = "彩票", id = 500, display = 4, scale = 0.5, color = 2 },
model = {modelType = "prop", hash = `prop_park_ticket_01`},
store = {
label = "彩票商店",
accounts = { -- 购买百分比0-100分配给每个社团的账户,注意没有自动调整,所以超过100%的百分比仍然是那个百分比。
["police"] = 50, -- 购买收入的50%。
["ambulance"] = 50, -- 购买收入的50%。
},
items = {
{
label = "肯诺彩票",
description = "填写选项,保存彩票,然后插入。",
item = "lottery_keno",
price = 0 -- 获取肯诺彩票条的价格,应始终免费,因为只有在插入时才支付。
},
{
label = "金钱球彩票",
description = "填写选项,保存彩票,然后插入。",
item = "lottery_moneyball",
price = 0 -- 获取金钱球彩票条的价格,应始终免费,因为只有在插入时才支付。
},
{
label = "pickle刮刮卡",
item = "lottery_pickle",
description = "刮开彩票并兑换奖品!",
price = 2
},
{
label = "野樱桃刮刮卡",
item = "lottery_wildcherry",
description = "刮开彩票并兑换奖品!",
price = 5
},
{
label = "幸运7刮刮卡",
item = "lottery_luckyseven",
description = "刮开彩票并兑换奖品!",
price = 10
},
}
}
},
}
Config.Lottery = {
redeemExpiration = 7, -- 彩票未领取可以被删除前的天数。
dateFormat = "%m/%d/%Y %I:%M %p", -- 查看更多信息请访问 https://www.lua.org/pil/22.1.html。
canSocietyLose = false, -- 当玩家赢钱时,从社团中扣除资金。
}
Config.Items = {
-- 你可以修改和添加这些。
["lottery_pickle"] = {
game = "scratch",
image = "pickle.png",
numbers = {
rows = 3, -- 行数。
eachRow = 3, -- 每行的数字数量。行数乘以计数等于数字总数。
range = {1, 45} -- 每个数字随机化的数字范围。最大范围必须大于数字总数。
},
prizes = {2, 4,8, 16, 32, 1000000} -- 索引 = 匹配的数字数量(1个数字 = $2,6个数字 = $1,000,000)
},
["lottery_wildcherry"] = {
game = "scratch",
image = "wildcherry.png",
numbers = {
rows = 4, -- 行数。
eachRow = 6, -- 每行的数字数量。行数乘以计数等于数字总数。
range = {1, 65} -- 每个数字随机化的数字范围。最大范围必须大于数字总数。
},
prizes = {3, 6, 12, 24, 48, 2000000} -- 索引 = 匹配的数字数量(1个数字 = $2,6个数字 = $1,000,000)
},
["lottery_luckyseven"] = {
game = "scratch",
image = "luckyseven.png",
numbers = {
rows = 4, -- 行数。
eachRow = 6, -- 每行的数字数量。行数乘以计数等于数字总数。
range = {1, 80} -- 每个数字随机化的数字范围。最大范围必须大于数字总数。
},
prizes = {4, 8, 16, 32, 64, 4000000} -- 索引 = 匹配的数字数量(1个数字 = $2,6个数字 = $1 Million)
},
-- Do not remove or modify these three unless you're an expert, you do this at your own risk.
["lottery_keno"] = {
game = "keno"
},
["lottery_moneyball"] = {
game = "moneyball"
},
["lottery_receipt"] = {
game = "receipt"
}
}
Config.Games = { -- Do not remove any of these, these are not optional. To disable the game, just remove it from the stores.
["keno"] = {
prizes = { -- 0-12 Spot Match, follow the below template for prizes.
{0, 3},
{0, 1, 5},
{0, 0, 3, 25},
{0, 0, 1, 4, 100},
{0, 0, 0, 2, 20, 450},
{0, 0, 0, 1, 7, 50, 1600},
{0, 0, 0, 1, 3, 20, 100, 5000},
{0, 0, 0, 0, 2, 10, 50, 1000, 15000},
{0, 0, 0, 0, 1, 5, 25, 200, 4000, 40000},
{2, 0, 0, 0, 0, 2, 20, 80, 500, 10000, 100000},
{2, 0, 0, 0, 0, 1, 10, 50, 250, 1500, 15000, 500000},
{4, 0, 0, 0, 0, 0, 5, 25, 150, 1000, 2500, 25000, 1000000},
},
drawCount = 20, -- 20个球被抽取
ballCount = 80, -- 1-80是可选的数字。
wagers = {1, 5, 10, 20, 30}, -- 每场比赛的赌注选择。
games = {1, 5, 10, 20, 30}, -- 游戏选择,玩多少场游戏。
drawingFrequency = "*/1 * * * * *", -- 抽取新游戏的时间频率(默认:每5分钟一次,生成频率请访问 https://www.freeformatter.com/cron-expression-generator-quartz.html)
},
["moneyball"] = {
prizes = {10, 50, 100, 20000, 100000, 1000000}, -- 奖品模板(1 - 5 + moneyball)
panelCount = 4, -- 可玩的最大面板数量。
ballCount = 70, -- 最大球选择数量。
moneyballCount = 21, -- Moneyball选择的最大数量。
price = 1, -- 每个面板玩的价格。
games = {1, 5, 10, 20, 30}, -- 游戏选择,玩多少场游戏。
drawingFrequency = "*/1 * * * * *", -- 抽取新游戏的时间频率(默认:每5分钟一次,生成频率请访问 https://www.freeformatter.com/cron-expression-generator-quartz.html)
},
["moneyball"] = {
prizes = {10, 50, 100, 20000, 100000, 1000000}, -- 奖品模板(1 - 5 + moneyball)
panelCount = 4, -- 可玩的最大面板数量。
ballCount = 70, -- 最大球选择数量。
moneyballCount = 21, -- 最大Moneyball选择数量。
price = 1, -- 每个面板玩的价格。
games = {1, 5, 10, 20, 30}, -- 游戏选择,玩多少场游戏。
drawingFrequency = "*/1 * * * * *", -- 抽取新游戏的时间频率(默认:每5分钟一次,生成频率请访问 https://www.freeformatter.com/cron-expression-generator-quartz.html)
},
["receipt"] = {
game = "receipt"
}
}
Config.Games = { -- 不要删除这些,这些是必需的。要禁用游戏,只需将其从商店中删除即可。
["keno"] = {
prizes = { -- 0-12 Spot Match,以下模板为奖品。
{0, 3},
{0, 1, 5},
{0, 0, 3, 25},
{0, 0, 1, 4, 100},
{0, 0, 0, 2, 20, 450},
{0, 0, 0, 1, 7, 50, 1600},
{0, 0, 0, 1, 3, 20, 100, 5000},
{0, 0, 0, 0, 2, 10, 50, 1000, 15000},
{0, 0, 0, 0, 1, 5, 25, 200, 4000, 40000},
{2, 0, 0, 0, 0, 2, 20, 80, 500, 10000, 100000},
{2, 0, 0, 0, 0, 1, 10, 50, 250, 1500, 15000, 500000},
{4, 0, 0, 0, 0, 0, 5, 25, 150, 1000, 2500, 25000, 1000000},
},
drawCount = 20, -- 抽取20个球
ballCount = 80, -- 1-80是可选的数字。
wagers = {1, 5, 10, 20, 30}, -- 每场比赛的赌注选择。
games = {1, 5, 10, 20, 30}, -- 游戏选择,玩多少场游戏。
drawingFrequency = "*/1 * * * * *", -- 抽取新游戏的时间频率(默认:每5分钟一次,生成频率请访问 https://www.freeformatter.com/cron-expression-generator-quartz.html)
},
["moneyball"] = {
prizes = {10, 50, 100, 20000, 100000, 1000000}, -- 奖品模板(1 - 5 + moneyball)
panelCount = 4, -- 最大面板数量。
ballCount = 70, -- 最大球选择数量。
moneyballCount = 21, -- 最大Moneyball选择数量。
price = 1, -- 每个面板的价格。
games = {1, 5, 10, 20, 30}, -- 游戏选择,玩多少场游戏。
drawingFrequency = "*/1 * * * * *", -- 抽取新游戏的时间频率(默认:每5分钟一次,生成频率请访问 https://www.freeformatter.com/cron-expression-generator-quartz.html)
},
["receipt"] = {
game = "receipt"
}
}
CrazyGhost 发表于 2024-10-24 08:15
Config = {}
Config.Debug = true
Config.Language...
以下是保留原代码并将其翻译成中文的版本:
Config = {}
Config.Debug = true
Config.Language = "zh" -- 使用语言。
Config.RenderDistance = 100.0 -- 场景显示半径。
Config.InteractDistance = 2.0 -- 交互半径
Config.UseTarget = true -- 当设置为true时,将使用目标而不是按键来交互。
Config.NoModelTargeting = true -- 当设置为true且使用目标时,将生成一个小型不可见道具,以便在没有实体定义时进行第三视角。
Config.Marker = { -- 如果启用,且不使用目标,且未在交互中定义模型,则将使用此配置。
enabled = true,
id = 2,
scale = 0.25,
color = {255, 255, 255, 127}
}
Config.DefaultStore = {
label = "彩票商店",
accounts = { -- 购买百分比0-100分配给每个社团的账户,注意没有自动调整,所以超过100%的百分比仍然是那个百分比。
= 50, -- 购买收入的50%。
= 50, -- 购买收入的50%。
},
items = {
{
label = "肯诺彩票",
description = "填写选项,保存彩票,然后插入。",
item = "lottery_keno",
price = 0 -- 获取肯诺彩票条的价格,应始终免费,因为只有在插入时才支付。
},
{
label = "金钱球彩票",
description = "填写选项,保存彩票,然后插入。",
item = "lottery_moneyball",
price = 0 -- 获取金钱球彩票条的价格,应始终免费,因为只有在插入时才支付。
},
{
label = "腌黄瓜刮刮卡",
item = "lottery_pickle",
description = "刮开彩票并兑换奖品!",
price = 2
},
{
label = "野樱桃刮刮卡",
item = "lottery_wildcherry",
description = "刮开彩票并兑换奖品!",
price = 5
},
{
label = "幸运7刮刮卡",
item = "lottery_luckyseven",
description = "刮开彩票并兑换奖品!",
price = 10
},
}
}
Config.Locations = {
{
coords = vector3(34.1786, -1343.2672, 29.4970), -- Strawberry 24/7
heading = -90.3685,
blip = { label = "彩票", id = 500, display = 4, scale = 0.5, color = 2 },
model = {modelType = "prop", hash = `prop_park_ticket_01`},
store = {
label = "彩票商店",
accounts = { -- 购买百分比0-100分配给每个社团的账户,注意没有自动调整,所以超过100%的百分比仍然是那个百分比。
= 50, -- 购买收入的50%。
= 50, -- 购买收入的50%。
},
items = {
{
label = "肯诺彩票",
description = "填写选项,保存彩票,然后插入。",
item = "lottery_keno",
price = 0 -- 获取肯诺彩票条的价格,应始终免费,因为只有在插入时才支付。
},
{
label = "金钱球彩票",
description = "填写选项,保存彩票,然后插入。",
item = "lottery_moneyball",
price = 0 -- 获取金钱球彩票条的价格,应始终免费,因为只有在插入时才支付。
},
{
label = "腌黄瓜刮刮卡",
item = "lottery_pickle",
description = "刮开彩票并兑换奖品!",
price = 2
},
{
label = "野樱桃刮刮卡",
item = "lottery_wildcherry",
description = "刮开彩票并兑换奖品!",
price = 5
},
{
label = "幸运7刮刮卡",
item = "lottery_luckyseven",
description = "刮开彩票并兑换奖品!",
price = 10
},
}
}
},
{
coords = vector3(920.2538, 40.0376, 81.0959), -- Casino
heading = 237.4434,
blip = { label = "彩票", id = 500, display = 4, scale = 0.5, color = 2 },
model = {modelType = "prop", hash = `prop_park_ticket_01`},
store = {
label = "彩票商店",
accounts = { -- 购买百分比0-100分配给每个社团的账户,注意没有自动调整,所以超过100%的百分比仍然是那个百分比。
= 50, -- 购买收入的50%。
= 50, -- 购买收入的50%。
},
items = {
{
label = "肯诺彩票",
description = "填写选项,保存彩票,然后插入。",
item = "lottery_keno",
price = 0 -- 获取肯诺彩票条的价格,应始终免费,因为只有在插入时才支付。
},
{
label = "金钱球彩票",
description = "填写选项,保存彩票,然后插入。",
item = "lottery_moneyball",
price = 0 -- 获取金钱球彩票条的价格,应始终免费,因为只有在插入时才支付。
},
{
label = "腌黄瓜刮刮卡",
item = "lottery_pickle",
description = "刮开彩票并兑换奖品!",
price = 2
},
{
label = "野樱桃刮刮卡",
item = "lottery_wildcherry",
description = "刮开彩票并兑换奖品!",
price = 5
},
{
label = "幸运7刮刮卡",
item = "lottery_luckyseven",
description = "刮开彩票并兑换奖品!",
price = 10
},
}
}
},
{
coords = vector3(-49.2994, -1760.2704, 29.4396), -- LTD Gas Station Grove
heading = 318.6361,
blip = { label = "彩票", id = 500, display = 4, scale = 0.5, color = 2 },
model = {modelType = "prop", hash = `prop_park_ticket_01`},
store = {
label = "彩票商店",
accounts = { -- 购买百分比0-100分配给每个社团的账户,注意没有自动调整,所以超过100%的百分比仍然是那个百分比。
= 50, -- 购买收入的50%。
= 50, -- 购买收入的50%。
},
items = {
{
label = "肯诺彩票",
description = "填写选项,保存彩票,然后插入。",
item = "lottery_keno",
price = 0 -- 获取肯诺彩票条的价格,应始终免费,因为只有在插入时才支付。
},
{
label = "金钱球彩票",
description = "填写选项,保存彩票,然后插入。",
item = "lottery_moneyball",
price = 0 -- 获取金钱球彩票条的价格,应始终免费,因为只有在插入时才支付。
},
{
label = "腌黄瓜刮刮卡",
item = "lottery_pickle",
description = "刮开彩票并兑换奖品!",
price = 2
},
{
label = "野樱桃刮刮卡",
item = "lottery_wildcherry",
description = "刮开彩票并兑换奖品!",
price = 5
},
{
label = "幸运7刮刮卡",
item = "lottery_luckyseven",
description = "刮开彩票并兑换奖品!",
price = 10
},
}
}
},
{
coords = vector3(-707.8763, -917.1802, 19.2143), -- LTD Gas Station Little Seoul
heading = 358.3544,
blip = { label = "彩票", id = 500, display = 4, scale = 0.5, color = 2 },
model = {modelType = "prop", hash = `prop_park_ticket_01`},
store = {
label = "彩票商店",
accounts = { -- 购买百分比0-100分配给每个社团的账户,注意没有自动调整,所以超过100%的百分比仍然是那个百分比。
= 50, -- 购买收入的50%。
= 50, -- 购买收入的50%。
},
items = {
{
label = "肯诺彩票",
description = "填写选项,保存彩票,然后插入。",
item = "lottery_keno",
price = 0 -- 获取肯诺彩票条的价格,应始终免费,因为只有在插入时才支付。
},
{
label = "金钱球彩票",
description = "填写选项,保存彩票,然后插入。",
item = "lottery_moneyball",
price = 0 -- 获取金钱球彩票条的价格,应始终免费,因为只有在插入时才支付。
},
{
label = "腌黄瓜刮刮卡",
item = "lottery_pickle",
description = "刮开彩票并兑换奖品!",
price = 2
},
{
label = "野樱桃刮刮卡",
item = "lottery_wildcherry",
description = "刮开彩票并兑换奖品!",
price = 5
},
{
label = "幸运7刮刮卡",
item = "lottery_luckyseven",
description = "刮开彩票并兑换奖品!",
price = 10
},
}
}
},
{
coords = vector3(1163.5985, -326.5771, 69.2379), -- LTD Gas Station Mirror Park
heading = 10.6814,
blip = { label = "彩票", id = 500, display = 4, scale = 0.5, color = 2 },
model = {modelType = "prop", hash = `prop_park_ticket_01`},
store = {
label = "彩票商店",
accounts = { -- 购买百分比0-100分配给每个社团的账户,注意没有自动调整,所以超过100%的百分比仍然是那个百分比。
= 50, -- 购买收入的50%。
= 50, -- 购买收入的50%。
},
items = {
{
label = "肯诺彩票",
description = "填写选项,保存彩票,然后插入。",
item = "lottery_keno",
price = 0 -- 获取肯诺彩票条的价格,应始终免费,因为只有在插入时才支付。
},
{
label = "金钱球彩票",
description = "填写选项,保存彩票,然后插入。",
item = "lottery_moneyball",
price = 0 -- 获取金钱球彩票条的价格,应始终免费,因为只有在插入时才支付。
},
{
label = "腌黄瓜刮刮卡",
item = "lottery_pickle",
description = "刮开彩票并兑换奖品!",
price = 2
},
{
label = "野樱桃刮刮卡",
item = "lottery_wildcherry",
description = "刮开彩票并兑换奖品!",
price = 5
},
{
label = "幸运7刮刮卡",
item = "lottery_luckyseven",
description = "刮开彩票并兑换奖品!",
price = 10
},
}
}
},
}
Config.Lottery = {
redeemExpiration = 7, -- 彩票未领取可以被删除前的天数。
dateFormat = "%m/%d/%Y %I:%M %p", -- 查看更多信息请访问 https://www.lua.org/pil/22.1.html。
canSocietyLose = false, -- 当玩家赢钱时,从社团中扣除资金。
}
Config.Items = {
-- 你可以修改和添加这些。
= {
game = "scratch",
image = "pickle.png",
numbers = {
rows = 3, -- 行数。
eachRow = 3, -- 每行的数字数量。行数乘以计数等于数字总数。
range = {1, 45} -- 每个数字随机化的数字范围。最大范围必须大于数字总数。
},
prizes = {2, 4,8, 16, 32, 1000000} -- 索引 = 匹配的数字数量(1个数字 = $2,6个数字 = $1,000,000)
},
= {
game = "scratch",
image = "wildcherry.png",
numbers = {
rows = 4, -- 行数。
eachRow = 6, -- 每行的数字数量。行数乘以计数等于数字总数。
range = {1, 65} -- 每个数字随机化的数字范围。最大范围必须大于数字总数。
},
prizes = {3, 6, 12, 24, 48, 2000000} -- 索引 = 匹配的数字数量(1个数字 = $2,6个数字 = $1,000,000)
},
= {
game = "scratch",
image = "luckyseven.png",
numbers = {
rows = 4, -- 行数。
eachRow = 6, -- 每行的数字数量。行数乘以计数等于数字总数。
range = {1, 80} -- 每个数字随机化的数字范围。最大范围必须大于数字总数。
},
prizes = {4, 8, 16, 32, 64, 4000000} -- 索引 = 匹配的数字数量(1个数字 = $2,6个数字 = $1 Million)
},
-- Do not remove or modify these three unless you're an expert, you do this at your own risk.
= {
game = "keno"
},
= {
game = "moneyball"
},
= {
game = "receipt"
}
}
Config.Games = { -- 不要删除任何这些,这些是必需的。要禁用游戏,只需将其从商店中删除。
= {
prizes = { -- 0-12 Spot Match, follow the below template for prizes.
{0, 3},
{0, 1, 5},
{0, 0, 3, 25},
{0, 0, 1, 4, 100},
{0, 0, 0, 2, 20, 450},
{0, 0, 0, 1, 7, 50, 1600},
{0, 0, 0, 1, 3, 20, 100, 5000},
{0, 0, 0, 0, 2, 10, 50, 1000, 15000},
{0, 0, 0, 0, 1, 5, 25, 200, 4000, 40000},
{2, 0, 0, 0, 0, 2, 20, 80, 500, 10000, 100000},
{2, 0, 0, 0, 0, 1, 10, 50, 250, 1500, 15000, 500000},
{4, 0, 0, 0, 0, 0, 5, 25, 150, 1000, 2500, 25000, 1000000},
},
drawCount = 20, -- 抽取20个球
ballCount = 80, -- 1-80是可选的数字。
wagers = {1, 5, 10, 20, 30}, -- 每场比赛的赌注选择。
games = {1, 5, 10, 20, 30}, -- 游戏选择,玩多少场游戏。
drawingFrequency = "*/1 * * * * *", -- 抽取新游戏的时间频率(默认:每5分钟一次,生成频率请访问 https://www.freeformatter.com/cron-expression-generator-quartz.html)
},
= {
prizes = {10, 50, 100, 20000, 100000, 1000000}, -- 奖品模板(1 - 5 + moneyball)
panelCount = 4, -- 可玩的最大面板数量。
ballCount = 70, -- 最大球选择数量。
moneyballCount = 21, -- Moneyball选择的最大数量。
price = 1, -- 每个面板玩的价格。
games = {1, 5, 10, 20, 30}, -- 游戏选择,玩多少场游戏。
drawingFrequency = "*/1 * * * * *", -- 抽取新游戏的时间频率(默认:每5分钟一次,生成频率请访问 https://www.freeformatter.com/cron-expression-generator-quartz.html)
},
= {
prizes = {10, 50, 100, 20000, 100000, 1000000}, -- 奖品模板(1 - 5 + moneyball)
panelCount = 4, -- 可玩的最大面板数量。
ballCount = 70, -- 最大球选择数量。
moneyballCount = 21, -- 最大Moneyball选择数量。
price = 1, -- 每个面板玩的价格。
games = {1, 5, 10, 20, 30}, -- 游戏选择,玩多少场游戏。
drawingFrequency = "*/1 * * * * *", -- 抽取新游戏的时间频率(默认:每5分钟一次,生成频率请访问 https://www.freeformatter.com/cron-expression-generator-quartz.html)
},
= {
game = "receipt"
}
}
Config.Games = { -- 不要删除这些,这些是必需的。要禁用游戏,只需将其从商店中删除即可。
= {
prizes = { -- 0-12 Spot Match,以下模板为奖品。
{0, 3},
{0, 1, 5},
{0, 0, 3, 25},
{0, 0, 1, 4, 100},
{0, 0, 0, 2, 20, 450},
{0, 0, 0, 1, 7, 50, 1600},
{0, 0, 0, 1, 3, 20, 100, 5000},
{0, 0, 0, 0, 2, 10, 50, 1000, 15000},
{0, 0, 0, 0, 1, 5, 25, 200, 4000, 40000},
{2, 0, 0, 0, 0, 2, 20, 80, 500, 10000, 100000},
{2, 0, 0, 0, 0, 1, 10, 50, 250, 1500, 15000, 500000},
{4, 0, 0, 0, 0, 0, 5, 25, 150, 1000, 2500, 25000, 1000000},
},
drawCount = 20, -- 抽取20个球
ballCount = 80, -- 1-80是可选的数字。
wagers = {1, 5, 10, 20, 30}, -- 每场比赛的赌注选择。
games = {1, 5, 10, 20, 30}, -- 游戏选择,玩多少场游戏。
drawingFrequency = "*/1 * * * * *", -- 抽取新游戏的时间频率(默认:每5分钟一次,生成频率请访问 https://www.freeformatter.com/cron-expression-generator-quartz.html)
},
= {
prizes = {10, 50, 100, 20000, 100000, 1000000}, -- 奖品模板(1 - 5 + moneyball)
panelCount = 4, -- 最大面板数量。
ballCount = 70, -- 最大球选择数量。
moneyballCount = 21, -- 最大Moneyball选择数量。
price = 1, -- 每个面板的价格。
games = {1, 5, 10, 20, 30}, -- 游戏选择,玩多少场游戏。
drawingFrequency = "*/1 * * * * *", -- 抽取新游戏的时间频率(默认:每5分钟一次,生成频率请访问 https://www.freeformatter.com/cron-expression-generator-quartz.html)
},
= {
game = "receipt"
}
}
在这个版本中,原有的英文文本已被翻译为中文,同时保留了代码的结构和语法。这种方法允许您在需要的情况下使用中文,同时保持代码可运行性。 CrazyGhost 发表于 2024-10-24 08:15
Config = {}
Config.Debug = true
Config.Language...
以下是将您提供的配置内容进行汉化,同时保留了原有代码结构:
Config = {}
Config.Debug = true
Config.Language = "zh" -- 使用语言。
Config.RenderDistance = 100.0 -- 场景显示半径。
Config.InteractDistance = 2.0 -- 交互半径
Config.UseTarget = true -- 当设置为true时,将使用目标而不是按键来交互。
Config.NoModelTargeting = true -- 当设置为true且使用目标时,将生成一个小型不可见道具,以便在没有实体定义时进行第三视角。
Config.Marker = { -- 如果启用,且不使用目标,且未在交互中定义模型,则将使用此配置。
enabled = true,
id = 2,
scale = 0.25,
color = {255, 255, 255, 127}
}
Config.DefaultStore = {
label = "彩票商店",
accounts = { -- 购买百分比0-100分配给每个社团的账户,注意没有自动调整,所以超过100%的百分比仍然是那个百分比。
= 50, -- 购买收入的50%。
= 50, -- 购买收入的50%。
},
items = {
{
label = "肯诺彩票",
description = "填写选项,保存彩票,然后插入。",
item = "lottery_keno",
price = 0 -- 获取肯诺彩票条的价格,应始终免费,因为只有在插入时才支付。
},
{
label = "金钱球彩票",
description = "填写选项,保存彩票,然后插入。",
item = "lottery_moneyball",
price = 0 -- 获取金钱球彩票条的价格,应始终免费,因为只有在插入时才支付。
},
{
label = "腌黄瓜刮刮卡",
item = "lottery_pickle",
description = "刮开彩票并兑换奖品!",
price = 2
},
{
label = "野樱桃刮刮卡",
item = "lottery_wildcherry",
description = "刮开彩票并兑换奖品!",
price = 5
},
{
label = "幸运7刮刮卡",
item = "lottery_luckyseven",
description = "刮开彩票并兑换奖品!",
price = 10
},
}
}
Config.Locations = {
{
coords = vector3(34.1786, -1343.2672, 29.4970), -- Strawberry 24/7
heading = -90.3685,
blip = { label = "彩票商店", id = 500, display = 4, scale = 0.5, color = 2 },
model = {modelType = "prop", hash = `prop_park_ticket_01`},
store = {
label = "彩票商店",
accounts = {
= 50,
= 50,
},
items = {
{
label = "肯诺彩票",
description = "填写选项,保存彩票,然后插入。",
item = "lottery_keno",
price = 0
},
{
label = "金钱球彩票",
description = "填写选项,保存彩票,然后插入。",
item = "lottery_moneyball",
price = 0
},
{
label = "腌黄瓜刮刮卡",
item = "lottery_pickle",
description = "刮开彩票并兑换奖品!",
price = 2
},
{
label = "野樱桃刮刮卡",
item = "lottery_wildcherry",
description = "刮开彩票并兑换奖品!",
price = 5
},
{
label = "幸运7刮刮卡",
item = "lottery_luckyseven",
description = "刮开彩票并兑换奖品!",
price = 10
},
}
}
},
{
coords = vector3(920.2538, 40.0376, 81.0959), -- 博彩店
heading = 237.4434,
blip = { label = "彩票商店", id = 500, display = 4, scale = 0.5, color = 2 },
model = {modelType = "prop", hash = `prop_park_ticket_01`},
store = {
label = "彩票商店",
accounts = {
= 50,
= 50,
},
items = {
{
label = "肯诺彩票",
description = "填写选项,保存彩票,然后插入。",
item = "lottery_keno",
price = 0
},
{
label = "金钱球彩票",
description = "填写选项,保存彩票,然后插入。",
item = "lottery_moneyball",
price = 0
},
{
label = "腌黄瓜刮刮卡",
item = "lottery_pickle",
description = "刮开彩票并兑换奖品!",
price = 2
},
{
label = "野樱桃刮刮卡",
item = "lottery_wildcherry",
description = "刮开彩票并兑换奖品!",
price = 5
},
{
label = "幸运7刮刮卡",
item = "lottery_luckyseven",
description = "刮开彩票并兑换奖品!",
price = 10
},
}
}
},
{
coords = vector3(-49.2994, -1760.2704, 29.4396), -- LTD Gas Station Grove
heading = 318.6361,
blip = { label = "彩票商店", id = 500, display = 4, scale = 0.5, color = 2 },
model = {modelType = "prop", hash = `prop_park_ticket_01`},
store = {
label = "彩票商店",
accounts = {
= 50,
= 50,
},
items = {
{
label = "肯诺彩票",
description = "填写选项,保存彩票,然后插入。",
item = "lottery_keno",
price = 0
},
{
label = "金钱球彩票",
description = "填写选项,保存彩票,然后插入。",
item = "lottery_moneyball",
price = 0
},
{
label = "腌黄瓜刮刮卡",
item = "lottery_pickle",
description = "刮开彩票并兑换奖品!",
price = 2
},
{
label = "野樱桃刮刮卡",
item = "lottery_wildcherry",
description = "刮开彩票并兑换奖品!",
price = 5
},
{
label = "幸运7刮刮卡",
item = "lottery_luckyseven",
description = "刮开彩票并兑换奖品!",
price = 10
},
}
}
},
{
coords = vector3(-707.8763, -917.1802, 19.2143), -- LTD Gas Station Little Seoul
heading = 358.3544,
blip = { label = "彩票商店", id = 500, display = 4, scale = 0.5, color = 2 },
model = {modelType = "prop", hash = `prop_park_ticket_01`},
store = {
label = "彩票商店",
accounts = {
= 50,
= 50,
},
items = {
{
label = "肯诺彩票",
description = "填写选项,保存彩票,然后插入。",
item = "lottery_keno",
price = 0
},
{
label = "金钱球彩票",
description = "填写选项,保存彩票,然后插入。",
item = "lottery_moneyball",
price = 0
},
{
label = "腌黄瓜刮刮卡",
item = "lottery_pickle",
description = "刮开彩票并兑换奖品!",
price = 2
},
{
label = "野樱桃刮刮卡",
item = "lottery_wildcherry",
description = "刮开彩票并兑换奖品!",
price = 5
},
{
label = "幸运7刮刮卡",
item = "lottery_luckyseven",
description = "刮开彩票并兑换奖品!",
price = 10
},
}
}
},
{
coords = vector3(1163.5985, -326.5771, 69.2379), -- LTD Gas Station Mirror Park
heading = 10.6814,
blip = { label = "彩票商店", id = 500, display = 4, scale = 0.5, color = 2 },
model = {modelType = "prop", hash = `prop_park_ticket_01`},
store = {
label = "彩票商店",
accounts = {
= 50,
= 50,
},
items = {
{
label = "肯诺彩票",
description = "填写选项,保存彩票,然后插入。",
item = "lottery_keno",
price = 0
},
{
label = "金钱球彩票",
description = "填写选项,保存彩票,然后插入。",
item = "lottery_moneyball",
price = 0
},
{
label = "腌黄瓜刮刮卡",
item = "lottery_pickle",
description = "刮开彩票并兑换奖品!",
price = 2
},
{
label = "野樱桃刮刮卡",
item = "lottery_wildcherry",
description = "刮开彩票并兑换奖品!",
price = 5
},
{
label = "幸运7刮刮卡",
item = "lottery_luckyseven",
description = "刮开彩票并兑换奖品!",
price = 10
},
}
}
},
}
Config.Lottery = {
redeemExpiration = 7, -- 彩票未领取可以被删除前的天数。
dateFormat = "%m/%d/%Y %I:%M %p", -- 查看更多信息请访问 https://www.lua.org/pil/22.1.html。
canSocietyLose = false, -- 当玩家赢钱时,从社团中扣除资金。
}
Config.Items = {
-- 你可以修改和添加这些。
= {
game = "scratch",
image = "pickle.png",
numbers = {
rows = 3, -- 行数。
eachRow = 3, -- 每行的数字数量。行数乘以计数等于数字总数。
range = {1, 45} -- 每个数字随机化的数字范围。最大范围必须大于数字总数。
},
prizes = {2, 4, 8, 16, 32, 1000000} -- 索引 = 匹配的数字数量(1个数字 = $2,6个数字 = $1,000,000)
},
= {
game = "scratch",
image = "wildcherry.png",
numbers = {
rows = 4, -- 行数。
eachRow = 6, -- 每行的数字数量。行数乘以计数等于数字总数。
range = {1, 65} -- 每个数字随机化的数字范围。最大范围必须大于数字总数。
},
prizes = {3, 6, 12, 24, 48, 2000000} -- 索引 = 匹配的数字数量(1个数字 = $2,6个数字 = $1,000,000)
},
= {
game = "scratch",
image = "luckyseven.png",
numbers = {
rows = 4, -- 行数。
eachRow = 6, -- 每行的数字数量。行数乘以计数等于数字总数。
range = {1, 80} -- 每个数字随机化的数字范围。最大范围必须大于数字总数。
},
prizes = {4, 8, 16, 32, 64, 4000000} -- 索引 = 匹配的数字数量(1个数字 = $2,6个数字 = $1,000,000)
},
-- 不要删除或修改这三项,除非你是专家,这样做后果自负。
= {
game = "keno"
},
= {
game = "moneyball"
},
= {
game = "receipt"
}
}
Config.Games = { -- 不要删除这些,这些是必需的。要禁用游戏,只需将其从商店中删除即可。
= {
prizes = { -- 0-12 Spot Match,以下模板为奖品。
{0, 3},
{0, 1, 5},
{0, 0, 3, 25},
{0, 0, 1, 4, 100},
{0, 0, 0, 2, 20, 450},
{0, 0, 0, 1, 7, 50, 1600},
{0, 0, 0, 1, 3, 20, 100, 5000},
{0, 0, 0, 0, 2, 10, 50, 1000, 15000},
{0, 0, 0, 0, 1, 5, 25, 200, 4000, 40000},
{2, 0, 0, 0, 0, 2, 20, 80, 500, 10000, 100000},
{2, 0, 0, 0, 0, 1, 10, 50, 250, 1500, 15000, 500000},
{4, 0, 0, 0, 0, 0, 5, 25, 150, 1000, 2500, 25000, 1000000},
},
drawCount = 20, -- 20个球被抽取
ballCount = 80, -- 1-80是可选的数字。
wagers = {1, 5, 10, 20, 30}, -- 每场比赛的赌注选择。
games = {1, 5, 10, 20, 30}, -- 游戏选择,玩多少场游戏。
drawingFrequency = "*/1 * * * * *", -- 抽取新游戏的时间频率(默认:每5分钟一次,生成频率请访问 https://www.freeformatter.com/cron-expression-generator-quartz.html)
},
= {
prizes = {10, 50, 100, 20000, 100000, 1000000}, -- 奖品模板(1 - 5 + moneyball)
panelCount = 4, -- 可玩的最大面板数量。
ballCount = 70, -- 最大球选择数量。
moneyballCount = 21, -- Moneyball选择的最大数量。
price = 1, -- 每个面板玩的价格。
games = {1, 5, 10, 20, 30}, -- 游戏选择,玩多少场游戏。
drawingFrequency = "*/1 * * * * *", -- 抽取新游戏的时间频率(默认:每5分钟一次,生成频率请访问 https://www.freeformatter.com/cron-expression-generator-quartz.html)
},
= {
prizes = {10, 50, 100, 20000, 100000, 1000000}, -- 奖品模板(1 - 5 + moneyball)
panelCount = 4, -- 可玩的最大面板数量。
ballCount = 70, -- 最大球选择数量。
moneyballCount = 21, -- 最大Moneyball选择数量。
price = 1, -- 每个面板玩的价格。
games = {1, 5, 10, 20, 30}, -- 游戏选择,玩多少场游戏。
drawingFrequency = "*/1 * * * * *", -- 抽取新游戏的时间频率(默认:每5分钟一次,生成频率请访问 https://www.freeformatter.com/cron-expression-generator-quartz.html)
},
= {
game = "receipt"
}
}
此代码将所有英语的标签、描述和其他文本翻译为中文,并保持其原有的结构和逻辑。请根据具体使用情况调整未翻译的部分,以符合应用程序的要求。
页:
[1]