翻译
翻译一下注释Config = {
-- Map
MapType = 5, -- 1: for DLCiplLoader, 2: Gabz Casino, 3: NoPixel Casino, 4: k4mb1 casino, 5: GTA:O Interior (rcore_casino_interior)
--[[
Gabz Casino
• make sure rcore_casino_interior is disabled, remove rcore_casino_interior from dependencies in fxmanifest.lua
• copy "\extra\gabz-casino\gabz_vw_vwdlc_int_01.ytyp" to "cfx-gabz-casino\stream\ytyp\"
NoPixel Casino
• make sure rcore_casino_interior is disabled, remove rcore_casino_interior from dependencies in fxmanifest.lua
• delete \stream\Main\ydr\vw_prop_vw_luckywheel_01a.ydr in NoPixel Casino
• copy "\extra\nopixel\gbz_vw_vwdlc_int_01.ytyp" inside stream\Main\ytyp in NoPixel Casino
• copy "\extra\nopixel\vw_vwint01_betting_desks.ydr" inside stream\Main\ydr in NoPixel Casino
-- Xmas trees
-- • configurable in xmas\xmas_cl.lua nad xmas\xmas_sv.lua
Xmas = false,
-- Money Or Casino Chips?
UseOnlyMoney = false, -- 如果要禁用使用赌场筹码并改用金钱,请设置为 true
ExchangeRate = 0.8, -- 例如,如果 1 个筹码等于 5$,则将一个赌场筹码的设置值设置为 5(最小值:0.1,四舍五入为 0.1、0.5 或 1)
ChipsInventoryItem = "casino_chips",
UseBankMoney = false, -- cash or bank?
-- Behave in casino?
RestrictControls = true, --不要跳跃,不要在赌场内攻击
-- Bar
BarShowSnacks = true, -- 禁用,如果您只想在调酒师菜单中查看饮料
-- Inside Track
IT_STARTING_SOON_TIME = 0, -- *即将开始屏幕*持续时间;def:0
IT_MAIN_EVENT_MIN_PLAYERS = 1, --主赛事开始所需的最少球员;防御: 2
IT_MAIN_EVENT_ENABLED = true, -- 如果为 false,则主事件将被禁用,大屏幕将仅显示紫色空闲屏幕;def:真
IT_MAIN_EVENT_BETTING_TIME = 60 * 5, -- 玩家为主赛事下注的时间,在屏幕上显示马匹;def: 60 * 5 (5 分钟)
IT_MAIN_EVENT_RACE_DURATION = 33, -- 主赛事的长度;防御: 33
IT_MAIN_EVENT_HORSE_ODDS = {2, 5, 6, 15, 16, 30}, -- limit max horse odds for local game (1 to 30), def: {1, 5, 6, 15, 16, 30}(2 horses of odds from 1 to 5, 2 horses of odds from 6 to 15, 2 horses of odds from 16 to 30)
IT_MAIN_EVENT_RACE_MAX_BET = 10000, -- 主赛事的最大投注额
IT_MAIN_EVENT_RACE_MIN_BET = 10, -- min. bet for the main event race
IT_LOCAL_RACE_DURATION = 30, -- length of the local race (orange screen) def: 30
IT_LOCAL_RACE_HORSE_ODDS = {2, 5, 6, 15, 16, 30}, -- limit max horse odds for local game (1 to 30), def: {1, 5, 6, 15, 16, 30}(2 horses of odds from 1 to 5, 2 horses of odds from 6 to 15, 2 horses of odds from 16 to 30)
IT_LOCAL_RACE_MAX_BET = 10000, -- max. bet for the local race
IT_LOCAL_RACE_MIN_BET = 10, -- min. bet for the local race
IT_LOCAL_RACE_COOLDOWN = 0, -- how long until they can play another local game, in seconds, (def: 60 * 10)
IT_MAIN_EVENT_COOLDOWN = 0, -- how long until they can play another main event game, in seconds, (def: 60 * 10)
-- Win chance of horses are based on their odds, however, if you want to make the game more unlucky, lower the win chance:
IT_LOCAL_RACE_WIN_CHANCE = 50, -- win chance (from 0 to 100), def: 100, 100 means that it's not *unlucky* at all
IT_MAIN_EVENT_RACE_WIN_CHANCE = 50, -- win chance (from 0 to 100), def: 100, 100 means that it's not *unlucky* at all
-- Roulette
ROULETTE_JUNIOR_ENABLED = true, -- set if you want to have Roulette Junior (blue) table for newbies (low stakes)
ROULETTE_JUNIOR_COORDS = {1004.790, 57.295, 68.432},
-- Slots
SLOTS_1ST_PERSON = false, -- switch to 1st person when spinning slots
-- Lucky Wheel
LUCKY_WHEEL_FREE_DRINKS_FOR = (60 * 60 * 24), -- when someone spins "Free Drinks" at the Lucky Wheel, how long they get free drinks for. def: 24 hours (60 * 60 * 24)
LUCKY_WHEEL_COOLDOWN = (60 * 60 * 24), -- how long players have to wait for their next spin. def: 24 hours (60 * 60 * 24)
LUCKY_WHEEL_VEHICLE_ALTERNATIVE = "Money9", -- if player spins Vehicle, but there is no avaiable podium vehicle at the moment, spin to this item. Def: "Money50K" (the second biggest price)
LUCKY_WHEEL_CAR_WINABLE = true, -- true: players can win the car, false: car is just a decoration
LUCKY_WHEEL_PAY_TO_SPIN = 0, -- set price for the spin (chips), set 0 for free spins, or set to existing inventory name, for example LUCKY_WHEEL_PAY_TO_SPIN = "wheel_ticket" to pay with an inventory item
LUCKY_WHEEL_CAR_ONE_WINNER = true, -- set to true, if only one player can win the podium vehicle. the vehicle will disapear from the podium after someone wins it.
-- Blackjack
BLACKJACK_JUNIOR_ENABLED = true, -- set if you want to have Blackjack Junior (blue) table for newbies (low stakes)
BLACKJACK_JUNIOR_COORDS = {1004.183, 53.192, 68.432},
-- Poker
POKER_JUNIOR_ENABLED = true, -- set if you want to have Poker Junior (blue) table for newbies (low stakes)
POKER_JUNIOR_COORDS = {998.439, 61.031, 68.432},
-- Cashier
CASHIER_DAILY_BONUS = 1000, -- daily visitor bonus that players can request at the Cashier, set to 0 if you don't want any daily bonuses. def: 1000
CASHIER_VIP_PRICE = 50000, -- price of the VIP casino membership, def: 50000
CASHIER_VIP_DURATION = (60 * 60 * 24) * 7, -- VIP for player resets after this time, def: 7 days
CASHIER_SHOW_SOCIETY_BALANCE = false, -- whether to show avaiable society balance in cashier UI
-- Casino Settings (don't change unless you're told to :)
CAS_DOUBLECHECK_COORDS = vector3(984.528, 52.299, 70.238),
CASINO_ENABLE_AMBIENT_PEDS = true, -- standing peds
CASINO_ENABLE_AMBIENT_PEDS_SLOTS = false, -- peds playing slots
CASINO_ENABLE_AMBIENT_PEDS_POKER = false, -- peds playing poker
CASINO_ENABLE_AMBIENT_PEDS_BLACKJACK = false, -- peds playing blackjack
CASINO_ENABLE_AMBIENT_PEDS_ROULETTE = false, -- peds playing roulette
CASINO_AMBIENT_PEDS_DENSITY = 3, -- 1: a few, 2: medium, 3: all peds
CASINO_SAVE_TIMER = 30000, -- database update interval
DISABLE_IDLE_CAM = true, -- disable idle cam animations (looking around)
CASINO_ANIM_TIMEOUT = 750, -- pause between animations (in milliseconds), decrease this number to make interaction animations faster, be careful, smaller number can cause desync in animations if players have high ping. def: 750
PRICES_CURRENCY = "$", -- $, €, £, ¥, ₽, ₩, ₹ ...
RADAR_ZOOMLEVEL = 0.0, -- 自定义雷达变焦,从 0.0(最接近)到更高
ENTER_CASINO_FADEOUT = 1, -- whether to fadeout the screen when entering (loading) casino or not (0: disabled, 1: only first enter, 2: every time)
CASHIER_MULTITASK = true, -- multiple players can use the Cashier at the same time
LOAD_SCENE = true, -- load the whole casino playing area after entering (recommended)
--
JOB_PODIUMCAR_OWNERSHIP_CHECK = true,
JOB_PODIUMCAR_OWNERSHIP_DELETE_ORIGINAL = true,
JOB_PODIUMCAR_DELETE_ORIGINAL_FUNCTION_CLIENT = function(vehicleId, plateNumber) -- client function that the car dealer executes after delivering the car
DeleteVehicle(vehicleId)
end,
CASINO_BLIPS_SHORT_RANGE = true, -- true: blips are visible only to players near casino, false: blips are always visible
CASINO_BLIP_ID = 679, -- 679 is the diamond icon [https://docs.fivem.net/docs/game-references/blips/]
--
AMBIENT_SOUNDS = true, -- enable casino background interior sound
Debug = false,
-- Plate Settings
PlateLetters = 3,
PlateNumbers = 3,
PlateUseSpace = true,
-- Drinking
DrunkSystem = 1,
-- 1 = built-in, resets drunk level after leaving casino
-- 2 = esx_status
-- 3 = evidence:client:SetStatus
-- 4 = rcore_drunk -- https://store.rcore.cz/package/5161129
-- Other Resources
EnableGuidebookIntegration = false, -- https://store.rcore.cz/package/5041989
-- Society
EnableSociety = true, -- whether to enable society account
SocietyName = "society_casino",
SocietyLimitFromBalance = 10000, -- if society account has less money than this, it will start paying out reduced money, (SocietyLimitPayoutPercentage)
SocietyLimitPayoutPercentage = 35, -- example: if SocietyLimitPayoutPercentage is 35%, and SocietyLimitFromBalance is 10000 => 1000 payout at the Cashier will be limited to 350, if the society bank account balance is less than 10 000
-- when enabled, all casino payments (Cashier, Bar, Lucky Wheel) go through the society account, players don't get paid if there's not enough money in the
SocietyFramework = "okokbanking",
--[[
'default': default, using events, qb-bossmenu/qb-management for QB, esx_addonaccount:getSharedAccount for ESX
'okokbanking': editing the society row using mysql, table okokbanking_societies
'addon_account_data': editing the society row using mysql, table addon_account_data
'710-Management': using 710-Management export functions
for more details open /server/main/society.lua
-- Job
BossGrade = 2, -- the max grade (boss) for the casino job
BossName = "boss",
JobName = "casino", -- id of the job (not a title, I guess, don't change it)
-- Teleport In & Out
LeaveThroughTeleport = false, -- 如果启用,人们将无法离开赌场大楼,相反,他们在靠近入口时会得到提示(如果您的地图距离洛斯桑托斯太远,则很有用)
EnterPosition = vector3(2469.584473, -280.015869, -58.267620),
EnterCheckpointPosition = vector3(923.470093, 47.249229, 79.8), --用于进入赌场的自定义标记,例如,在不同城市的自定义赌场大楼前,等等。
LeavePosition = vector3(919.127380, 51.120274, 80.898659), -- 玩家在离开后出现的地方,例如,在不同城市的自定义赌场大楼前,等等。
LeaveArea = vector3(2468.992188, -287.276459, -58.267506), -- 其中玩家被提示离开赌场,例如在主门前,
-- Ui
UIFontName = nil, -- font for the UI, set to nil, if you don't want to use a custom font, set to a font name (with ""), if you wanna register and use a font that's inside your /stream/fonts folder
ShowHowToPlayUI = 1, -- How to play/Info about the game UI (Menu that shows after pressing 'E' to play. (0: disabled, 1: only once, 2: every time after pressing 'E')
ShowChipsHud = true, -- whether to use the built-in chips hud on the top-right corner
UseNUIHUD = false, -- whether to use chips hud on NUI (you can customize it in 'html/index.html')
-- Database
MongoDB = false, -- if you decide to use MongoDB instead of MYSQL, don't forget to edit your MongoDB queries in: server/main/cache.lua, server/main/casino.lua and server/utils/plateGenerator.lua
-- Mysql Resources
Ghmattimysql = false, -- if you're using "ghmattimysql" instead of mysql-async
-- Tweaks
VoiceTweak = false, -- keep it false, if you don't have amy voice problems inside casino
VehicleRGBTweak = false -- save podium vehicle colors as RGB array (color1, color2), instead of numbers
}
Framework = {
-- 1 = es_extended
-- 2 = QBcore
-- 3 = Standalone (⚠️ check https://documentation.rcore.cz/paid-resources/rcore_casino/standalone-version)
-- 4 = Custom (⚠️ check https://documentation.rcore.cz/paid-resources/rcore_casino/custom-framework)
Active = 1,
-- Please follow the installation tutorial: --
-- https://documentation.rcore.cz/paid-resources/rcore_casino
-- esx resource name + shared object name
ES_EXTENDED_RESOURCE_NAME = "es_extended",
ESX_SHARED_OBJECT = "esx:getSharedObject",
-- esx extra settings
BUILTIN_HUD_CHIPS = false,
BUILTIN_HUD_CHIPS_ICON = "casinochip.png",
-- qbcore resource name + shared object name
QB_CORE_RESOURCE_NAME = "qb-core",
QBCORE_SHARED_OBJECT = "QBCore:GetObject",
-- standalone settings
STANDALONE_INITIAL_CHIPS = 100000 -- chips that everyone gets after first enter
}
if Framework.Active == 2 then
Config.PlateLetters = 4
Config.PlateNumbers = 4
Config.PlateUseSpace = false
end
Events = {
QB_PLAYER_LOADED = "QBCore:Client:OnPlayerLoaded",
QB_PLAYER_JOB_UPDATE = "QBCore:Client:OnJobUpdate",
QB_BOSS_MENU = "qb-bossmenu:client:OpenMenu",
-- use "qb-bossmenu:client:OpenMenu" for qb-management and "qb-bossmenu:client:openMenu" for qb-bossmenu
ES_PLAYER_LOADED = "esx:playerLoaded",
ES_PLAYER_JOB_UPDATE = "esx:setJob",
ES_BOSS_MENU = "esx_society:openBossMenu"
}
GameplayKeys = {
TableGamesMaxBet = 44, -- Choose between: (Tab = 204, E = 46, Q = 44, D = 134, Page Down = 207)
TableGamesGrabCards = 207,
RouletteHistoryKey = 204
}
AdminGroup = {
["god"] = true,
["admin"] = true,
["mod"] = true,
["moderator"] = true
}
-- Enable / Disable individual games/activities
GameStates = {{
activity = "slots",
title = "Slot Machines",
enabled = true
}, {
activity = "luckywheel",
title = "Lucky Wheel",
enabled = true
}, {
activity = "insidetrack",
title = "Inside Track",
enabled = true
}, {
activity = "drinkingbar",
title = "Drinking Bar",
enabled = true
}, {
activity = "roulette",
title = "Roulette",
enabled = true
}, {
activity = "poker",
title = "Poker",
enabled = true
}, {
activity = "blackjack",
title = "Blackjack",
enabled = true
}, {
activity = "cashier",
title = "Cashier",
enabled = true
}, {
activity = "seating",
title = "Seating",
enabled = true
}, {
activity = "cameras",
title = "Cameras",
enabled = true
}, {
activity = "officeelevator",
title = "Office Elevator",
enabled = true
}, {
activity = "officeelevatorout",
title = "Office Elevator (Down)",
enabled = true
}, {
activity = "casinoteleporter",
title = "Casino Teleporter (In)",
enabled = true
}, {
activity = "casinoentrance",
title = "Casino Entrance",
enabled = true
}}
-- opening hours
-- examples:
-- = {0, 1, 2, 3, 4, 5, 6} -- From 0:00 til 6 AM
-- = {-1} -- Open all day
Config.OpeningHours = {
[1] = {-1}, -- Sunday
[2] = {-1}, -- Monday
[3] = {-1}, -- Tuesday
[4] = {-1}, -- Wednesday
[5] = {-1}, -- Thursday
[6] = {-1}, -- Friday
[7] = {-1} -- Saturday
}
-- customize the blip function here
-- used blip icon ids:
-- Inside Track: 684, Lucky Wheel: 681, Cashier: 683, Table Games: 680, VIP Area / Exterior Icon: 679,
-- [https://docs.fivem.net/docs/game-references/blips/]
function SetCasinoBlip(coords, blipIcon, blipName, exterior)
local blip = AddBlipForCoord(coords)
--------------
SetBlipSprite(blip, blipIcon)
SetBlipDisplay(blip, 4)
SetBlipScale(blip, 1.2)
SetBlipColour(blip, 0)
SetBlipAsShortRange(blip, exterior and Config.CASINO_BLIPS_SHORT_RANGE or false)
--------------
BeginTextCommandSetBlipName("STRING")
AddTextComponentString(blipName)
EndTextCommandSetBlipName(blip)
if not exterior then
table.insert(CasinoBlips, blip)
end
return blip
end
function RemoveMissionBlip(name)
if MissionBlips[name] then
RemoveBlip(MissionBlips[name])
MissionBlips[name] = nil
end
end
Config = {
-- 地图
MapType = 5, -- 1: 使用DLCiplLoader, 2: Gabz Casino, 3: NoPixel Casino, 4: k4mb1 casino, 5: GTA:O Interior (rcore_casino_interior)
--[[
Gabz Casino
• 确保禁用rcore_casino_interior,从fxmanifest.lua中的dependencies中删除rcore_casino_interior
• 将“\extra\gabz-casino\gabz_vw_vwdlc_int_01.ytyp”复制到“cfx-gabz-casino\stream\ytyp\”中
NoPixel Casino
• 确保禁用rcore_casino_interior,从fxmanifest.lua中的dependencies中删除rcore_casino_interior
• 删除NoPixel Casino中的\stream\Main\ydr\vw_prop_vw_luckywheel_01a.ydr
• 将“\extra\nopixel\gbz_vw_vwdlc_int_01.ytyp”复制到NoPixel Casino中的stream\Main\ytyp中
• 将“\extra\nopixel\vw_vwint01_betting_desks.ydr”复制到NoPixel Casino中的stream\Main\ydr中
--]]
-- 圣诞树
-- • 在xmas\xmas_cl.lua和xmas\xmas_sv.lua中可配置
Xmas = false,
-- 现金还是赌场筹码?
UseOnlyMoney = false, -- 如果要禁用使用赌场筹码并改用金钱,请设置为 true
ExchangeRate = 0.8, -- 例如,如果1个筹码等于5$,则将一个赌场筹码的设置值设置为5(最小值:0.1,四舍五入为0.1、0.5 或1)
ChipsInventoryItem = "casino_chips",
UseBankMoney = false, -- 现钞还是银行?
-- 在赌场内的行为?
RestrictControls = true, -- 不要跳跃, 不要在赌场内攻击
-- 酒吧
BarShowSnacks = true, -- 禁用,如果您只想在调酒师菜单中查看饮料
-- 赛马
IT_STARTING_SOON_TIME = 0, -- “即将开始”屏幕的持续时间,默认值:0
IT_MAIN_EVENT_MIN_PLAYERS = 1, -- 主赛事开始所需的最少玩家数,默认值:2
IT_MAIN_EVENT_ENABLED = true, -- 如果为false,则禁用主事件,大屏幕将仅显示紫色空闲屏幕,默认值:true
IT_MAIN_EVENT_BETTING_TIME = 60 * 5, -- 玩家为主赛事下注的时间,在屏幕上显示马匹,默认值:60 * 5(5分钟)
IT_MAIN_EVENT_RACE_DURATION = 33, -- 主赛事的持续时间,默认值:33
IT_MAIN_EVENT_HORSE_ODDS = {2, 5, 6, 15, 16, 30}, -- 限制本地游戏中马匹的最高赔率(1到30),默认值:{1, 5, 6, 15, 16, 30}(2匹赔率为1到5,2匹赔率为6到15,2匹赔率为16到30)
IT_MAIN_EVENT_RACE_MAX_BET = 10000, -- 主赛事的最大投注金额
IT_MAIN_EVENT_RACE_MIN_BET = 10, -- 主赛事的最小投注金额
IT_LOCAL_RACE_DURATION = 30, -- 本地比赛的持续时间(橙色屏幕),默认值:30
IT_LOCAL_RACE_HORSE_ODDS = {2, 5, 6, 15, 16, 30}, -- 限制本地游戏中马匹的最高赔率(1到30),默认值:{1, 5, 6, 15, 16, 30}(2匹赔率为1到5,2匹赔率为6到15,2匹赔率为16到30)
IT_LOCAL_RACE_MAX_BET = 10000, -- 本地比赛的最大投注金额
IT_LOCAL_RACE_MIN_BET = 10, -- 本地比赛的最小投注金额
IT_LOCAL_RACE_COOLDOWN = 0, -- 玩家可以再次参加本地比赛之前需要等待多长时间(以秒为单位),默认值:60 * 10(10分钟)
IT_MAIN_EVENT_COOLDOWN = 0, -- 玩家可以再次参加主赛事之前需要等待多长时间(以秒为单位),默认值:60 * 10(10分钟)
-- 马的胜率基于它们的赔率,但是,如果你想使游戏更不走运,请降低胜率:
IT_LOCAL_RACE_WIN_CHANCE = 50, -- 胜率(从0到100),默认值:100,100表示完全不“不走运”
IT_MAIN_EVENT_RACE_WIN_CHANCE = 50, -- 胜率(从0到100),默认值:100,100表示完全不“不走运”
-- 轮盘
ROULETTE_JUNIOR_ENABLED = true, -- 设置是否有轮盘“初学者”(低赌注)桌台(蓝色)
ROULETTE_JUNIOR_COORDS = {1004.790, 57.295, 68.432},
-- 老虎机
SLOTS_1ST_PERSON = false, -- 当旋转老虎机时切换到第一人称视角
-- 幸运大转盘
LUCKY_WHEEL_FREE_DRINKS_FOR = (60 * 60 * 24), -- 当有人在幸运大转盘上转到“免费饮料”时,他们可以获得多长时间的免费饮料,默认值:24小时(60 * 60 * 24)
LUCKY_WHEEL_COOLDOWN = (60 * 60 * 24), -- 玩家需要等待多长时间才能进行下一次转盘转动,默认值:24小时(60 * 60 * 24)
LUCKY_WHEEL_VEHICLE_ALTERNATIVE = "Money9", -- 如果玩家在转盘上转到“汽车”,但此时没有可用的展台车辆,将转到此物品。默认值:“Money50K”(第二高价)
LUCKY_WHEEL_CAR_WINABLE = true, -- true: 玩家可以赢得车辆, false: 车辆只是一个装饰
LUCKY_WHEEL_PAY_TO_SPIN = 0, -- 设置转盘转动的价格(筹码),设置为0表示免费转动,或设置为现有库存名称,例如LUCKY_WHEEL_PAY_TO_SPIN = "wheel_ticket"表示使用库存项目进行支付
LUCKY_WHEEL_CAR_ONE_WINNER = true, -- 设置为true,如果只有一个玩家可以赢得展台车辆。当有人赢得展台车辆后,它会从展台上消失。
-- 二十一点
BLACKJACK_JUNIOR_ENABLED = true, -- 设置是否有二十一点“初学者”(低赌注)桌台(蓝色)
BLACKJACK_JUNIOR_COORDS = {1004.183, 53.192, 68.432},
-- 扑克
POKER_JUNIOR_ENABLED = true, -- 设置是否有扑克“初学者”(低赌注)桌台(蓝色)
POKER_JUNIOR_COORDS = {998.439, 61.031, 68.432},
-- 出纳员
CASHIER_DAILY_BONUS = 1000, -- 玩家可在出纳员处领取的每日奖励金额,如果不想提供任何每日奖励,请将其设置为0。默认值:1000
CASHIER_VIP_PRICE = 50000, -- VIP赌场会员资格的价格,默认值:50000
CASHIER_VIP_DURATION = (60 * 60 * 24) * 7, -- 玩家的VIP资格在此时间后重置,默认值:7天
CASHIER_SHOW_SOCIETY_BALANCE = false, -- 是否在出纳员UI中显示可用的社团余额
-- 赌场设置(除非告知,否则不要更改:)
CAS_DOUBLECHECK_COORDS = vector3(984.528, 52.299, 70.238),
CASINO_ENABLE_AMBIENT_PEDS = true, -- 站立的NPC
CASINO_ENABLE_AMBIENT_PEDS_SLOTS = false, -- 游玩老虎机的NPC
CASINO_ENABLE_AMBIENT_PEDS_POKER = false, -- 游玩扑克的NPC
CASINO_ENABLE_AMBIENT_PEDS_BLACKJACK = false, -- 游玩二十一点的NPC
CASINO_ENABLE_AMBIENT_PEDS_ROULETTE = false, -- 游玩轮盘的NPC
CASINO_AMBIENT_PEDS_DENSITY = 3, -- 1: 少量, 2: 中等, 3: 所有NPC
CASINO_SAVE_TIMER = 30000, -- 数据库更新间隔
DISABLE_IDLE_CAM = true, -- 禁用空闲摄像头动画(环顾四周)
CASINO_ANIM_TIMEOUT = 750, -- 动画之间的暂停时间(以毫秒为单位),减小此数字以加快交互动画,要小心,较小的数字可能导致动画不同步,如果玩家的ping值较高。默认值:750
PRICES_CURRENCY = "$", -- 货币符号,如:$、€、£、¥、₽、₩、₹ ...
RADAR_ZOOMLEVEL = 0.0, -- 定制雷达放大级别,从0.0(最低)到更高
ENTER_CASINO_FADEOUT = 1, -- 进入赌场(加载时)是否渐隐屏幕(0:禁用,1:仅第一次进入,2:每次进入)
CASHIER_MULTITASK = true, -- 多个玩家可以同时使用出纳员
LOAD_SCENE = true, -- 进入后加载整个赌场游戏区域(建议开启)
--
JOB_PODIUMCAR_OWNERSHIP_CHECK = true,
JOB_PODIUMCAR_OWNERSHIP_DELETE_ORIGINAL = true,
JOB_PODIUMCAR_DELETE_ORIGINAL_FUNCTION_CLIENT = function(vehicleId, plateNumber) -- 车商交付车辆后执行的客户端函数
DeleteVehicle(vehicleId)
end,
CASINO_BLIPS_SHORT_RANGE = true, -- true: 仅当玩家靠近赌场时可见blips, false: blips始终可见
CASINO_BLIP_ID = 679, -- 679是钻石图标 []https://docs.fivem.net/docs/game-references/blips/]
--
AMBIENT_SOUNDS = true, -- 启用赌场内部背景音效
Debug = false,
-- 车牌设置
PlateLetters = 3,
PlateNumbers = 3,
PlateUseSpace = true,
-- 喝酒
DrunkSystem = 1,
-- 1 = 内置, 离开赌场后重置醉酒等级
-- 2 = esx_status
-- 3 = evidence:client:SetStatus
-- 4 = rcore_drunk -- https://store.rcore.cz/package/5161129
-- 其他资源
EnableGuidebookIntegration = false, -- https://store.rcore.cz/package/5041989
-- 社团
EnableSociety = true, -- 是否启用社团账户
SocietyName = "society_casino",
SocietyLimitFromBalance = 10000, -- 如果社团账户的余额小于此金额,将开始支付减少的金额(SocietyLimitPayoutPercentage)
SocietyLimitPayoutPercentage = 35, -- 例:如果SocietyLimitPayoutPercentage为35%,SocietyLimitFromBalance为10000,则在出纳员处的1000支付将限制为350,如果社团银行账户余额低于10,000
-- 启用后,所有赌场支付(出纳员、酒吧、幸运大转盘)都通过社团账户进行,如果社团账户余额不足,则玩家不会得到支付
SocietyFramework = "okokbanking",
--[[
'default': 默认使用事件, qb-bossmenu/qb-management用于QB, esx_addonaccount:getSharedAccount用于ESX
'okokbanking': 使用mysql编辑society行,表okokbanking_societies
'addon_account_data': 使用mysql编辑society行,表addon_account_data
'710-Management': 使用710-Management导出函数
更多细节请打开/server/main/society.lua
-- 工作
BossGrade = 2, -- 赌场工作的最高等级(老板)
BossName = "boss",
JobName = "casino", -- 工作的ID(不是标题,猜测,请勿更改)
-- 传送进出
LeaveThroughTeleport = false, -- 如果启用,人们将无法离开赌场大楼,相反,他们在靠近入口时会得到提示(如果您的地图距离洛圣地亚哥太远,则很有用)
EnterPosition = vector3(2469.584473, -280.015869, -58.267620),
EnterCheckpointPosition = vector3(923.470093, 47.249229, 79.8), -- 自定义标记,用于进入赌场,例如,在不同城市的自定义赌场大楼前等等。
LeavePosition = vector3(919.127380, 51.120274, 80.898659), -- 离开后玩家出现的位置,例如,在不同城市的自定义赌场大楼前等等。
LeaveArea = vector3(2468.992188, -287.276459, -58.267506), -- 玩家会在此位置得到离开赌场的提示,例如在主门前等等,
-- UI
UIFontName = nil, -- UI的字体,如果不想使用自定义字体,请设置为nil;如果要使用存储在/stream/fonts文件夹中的字体,请设置为字体名称(带引号)
ShowHowToPlayUI = 1, -- 如何玩/有关游戏的信息UI (按'E'键播放后显示的菜单)(0:禁用,1:仅一次,2:每次按'E'键后显示)
ShowChipsHud = true, -- 是否在右上角使用内置筹码hud
UseNUIHUD = false, -- 是否在NUI使用筹码hud(您可以在'html/index.html'中进行自定义)
-- 数据库
MongoDB = false, -- 如果决定使用MongoDB而不是MYSQL,请不要忘记在以下文件中编辑MongoDB查询:server/main/cache.lua,server/main/casino.lua和server/utils/plateGenerator.lua
-- Mysql 资源
Ghmattimysql = false, -- 如果使用“ghmattimysql”而不是mysql-async
-- 调整
VoiceTweak = false, -- 如果在赌场内没有语音问题,请将其设置为false
VehicleRGBTweak = false -- 将展台车辆颜色保存为RGB数组(color1, color2),而不是数字
}
Framework = {
-- 1 = es_extended
-- 2 = QBcore
-- 3 = 独立版 (⚠️ 检查 https://documentation.rcore.cz/paid-resources/rcore_casino/standalone-version)
-- 4 = 自定义版 (⚠️ 检查 https://documentation.rcore.cz/paid-resources/rcore_casino/custom-framework)
Active = 1,
-- 请按照安装教程操作:--
-- https://documentation.rcore.cz/paid-resources/rcore_casino
-- esx 资源名称 + 共享对象名称
ES_EXTENDED_RESOURCE_NAME = "es_extended",
ESX_SHARED_OBJECT = "esx:getSharedObject",
-- esx 额外设置
BUILTIN_HUD_CHIPS = false,
BUILTIN_HUD_CHIPS_ICON = "casinochip.png",
-- qbcore 资源名称 + 共享对象名称
QB_CORE_RESOURCE_NAME = "qb-core",
QBCORE_SHARED_OBJECT = "QBCore:GetObject",
-- 独立版设置
STANDALONE_INITIAL_CHIPS = 100000 -- 大厅首次进入后的筹码数量
}
if Framework.Active == 2 then
Config.PlateLetters = 4
Config.PlateNumbers = 4
Config.PlateUseSpace = false
end
Events = {
QB_PLAYER_LOADED = "QBCore:Client:OnPlayerLoaded",
QB_PLAYER_JOB_UPDATE = "QBCore:Client:OnJobUpdate",
QB_BOSS_MENU = "qb-bossmenu:client:OpenMenu",
-- 使用 "qb-bossmenu:client:OpenMenu" 用于 qb-management, 使用 "qb-bossmenu:client:openMenu" 用于 qb-bossmenu
ES_PLAYER_LOADED = "esx:playerLoaded",
ES_PLAYER_JOB_UPDATE = "esx:setJob",
ES_BOSS_MENU = "esx_society:openBossMenu"
页:
[1]