Configuration
Every Frozen Poker option in config.lua: turn timer, currencies, table styles, animations, dealer, tournaments and test bots.
On this page
Everything below is in config.lua. Restart the resource after changing it.
General
| Option | Default | What it does |
|---|---|---|
Config.SharedObject | "esx:getSharedObject" | ESX shared object event (only for old ESX versions) |
Config.JoinRange | 5 | How close a player must be to join a table |
Config.DrawRange | 6 | How close a player must be to see the table's info card |
Config.JoinCommand | "jointable" | Command to sit down at the nearest table |
Config.CreationItem | true | Adds the usable pokertable item that places a table |
Config.DiscordWebhook | "" | Discord webhook for hand logs. Empty turns logs off |
Config.AdminGroup | "admin" | Group that counts as admin (admin on ESX, god on QBCore) |
Config.Debug | false | Debug commands and logs. Only turn it on when support asks you to |
Config.DebugEntities | false | Prints how many poker props, peds and animations exist to F8 every second, for tracking crashes. Keep it off on a live server |
Config.MaxChipObjects | 210 | Most chip props drawn at once over all tables. Stops busy servers from running out of objects (the "RAGE error" crash); piles past it are drawn smaller |
Config.Database | "auto" | "auto" (oxmysql if installed, otherwise mysql-async), "oxmysql" or "mysql-async" |
Config.Notify | "gta" | Notification system: "gta", "ox_lib", "esx", "qb" or "custom" (edit ShowNotification in client-editme.lua) |
Config.NotifyTitle | "Poker" | ox_lib only: title above the message |
Config.NotifyPosition | "top-right" | ox_lib only: where the notification shows |
Game
| Option | Default | What it does |
|---|---|---|
Config.TurnTime | 30 | Seconds a player has to act, then they check (if they can) or fold. 0 = no timer |
Config.ShowHandTime | 5000 | Milliseconds the end-of-hand screen stays up |
Config.AutoNextHand | 6 | Seconds until the next hand is dealt on its own. 0 = everyone presses Ready every hand |
Config.HandHistory | 30 | Hands kept per table for the hand history |
Currency
Every table plays for its own currency. New tables use Config.DefaultCurrency; admins change it per table in /pokeradmin.
Config.DefaultCurrency = { type = "account", name = "money", label = "Cash" }
Config.Currencies = {
{ type = "account", name = "money", label = "Cash" },
{ type = "account", name = "bank", label = "Bank" },
{ type = "account", name = "black_money", label = "Dirty money" },
{ type = "item", name = "casino_chips", label = "Casino chips" },
}type = "account"is a framework money account (money,bank,black_money). On QBCore and Qbox,moneyis mapped tocash.type = "item"is an inventory item. Admins can also type any other item name in/pokeradmin.
Table styles
Config.TableStyles = {
classic = { table = "fz_poker_table_classic", chair = "fz_poker_chair_classic" },
cyberpunk = { table = "fz_poker_table_cyberpunk", chair = "fz_poker_chair_cyberpunk" },
vip = { table = "fz_poker_table_vip", chair = "fz_poker_chair_vip" },
}
Config.DefaultStyle = "classic"Config.DefaultStyle is used for tables with an unknown style. Leave Config.TableShape alone unless you rebuild the props.
Animations (Config.Animations)
| Option | Default | What it does |
|---|---|---|
idleVariation | { 9000, 18000 } | A random idle fidget every 9 to 18 seconds |
reactions | true | Win and lose reactions when the hand is shown |
lockControls | true | Blocks walking, jumping and attacking while seated |
holdCards | false | true = players and bots pick up their two cards; false = cards stay face down on the felt |
Dealer (Config.Dealer)
| Option | Default | What it does |
|---|---|---|
enabled | true | A dealer stands at every table |
gap | 1.0 | Metres of the chair ring kept free for the dealer |
models | { "s_f_y_casino_01", "s_m_y_casino_01" } | Dealer peds |
animOffset | vector3(0.0, 0.21, 0.0) | Where the dealer animations are anchored on the table |
dealSpeed | 2.2 | Speeds up the deal animations |
dealTime | 3.5 | Seconds to deal the hole cards. Bots and the turn timer wait for it |
boardTime | 1.8 | Seconds to deal the flop, turn or river |
shuffle | false | Shuffle before every deal (adds a couple of seconds) |
Admin menu
Config.AdminCommand = "pokeradmin" opens the admin menu for players in Config.AdminGroup: tables, currency, styles, bots, tournaments and hand history.
Tournaments (Config.Tournaments)
Admins create a tournament in /pokeradmin on an empty table. Players register at the table or with /pt, pay the buy-in and fee, and play with tournament chips. Blinds go up every few minutes and the prize pool is paid by place.
| Option | Default | What it does |
|---|---|---|
enabled | true | Turns tournaments on |
command | "pt" | Opens the tournament list (/pokertournaments also works) |
turnTime | 30 | Seconds to act in a tournament |
defaults.buyIn | 1000 | Goes into the prize pool |
defaults.fee | 0 | Kept by the house |
defaults.added | 0 | Extra money added to the prize pool |
defaults.startingChips | 10000 | Tournament chips per player |
defaults.startBlind | 50 | Small blind of level 1 |
defaults.levelMinutes | 5 | Minutes per blind level |
defaults.increase | 1.5 | Blinds multiply by this every level |
defaults.maxPlayers / minPlayers | 6 / 2 | Player limits |
defaults.payouts | "auto" | "auto" pays about the top 15%, or e.g. { 60, 30, 10 } for 1st, 2nd and 3rd |
defaults.startMode | "full" | "full" starts when full, "manual" waits for an admin to press Start |
The defaults only pre-fill the create form; every tournament can use its own values.
Leaderboard and stats (Config.Leaderboard)
/pt has a Leaderboard and a My stats tab, saved per player and per currency. Bots never count. Tournament hands count toward hands, wins, showdowns and best hand, but not toward profit or biggest pot.
| Option | Default | What it does |
|---|---|---|
enabled | true | Turns the leaderboard and stats on |
size | 10 | Players shown per list |
minHands | 20 | Hands a player needs before they show up in the win rate list |
Finished tournaments are always saved with their results and show under History in /pt, with search and an "only my tournaments" filter.
Saved data cleanup (Config.History)
Keeps the database small. Old rows are deleted when the script starts and every 6 hours. 0 keeps them forever. The hand history (Config.HandHistory) is kept in memory only and never written to the database.
| Option | Default | What it does |
|---|---|---|
tournamentDays | 90 | Finished tournaments in /pt History older than this many days are deleted |
tournamentMax | 2000 | Never more than this many saved tournaments; the oldest go first |
inactivePlayerDays | 0 | Remove a player's leaderboard stats after this many days without playing (0 = never) |
Test bots (Config.Bots)
Bots are for testing and are off by default. Turn them on, then stand at a table and type /pokerbots 3 to add 3 bots, or /pokerbots clear to remove them. Bots play with virtual money and never touch a real account.
| Option | Default | What it does |
|---|---|---|
enabled | false | Turns bots and the /pokerbots command on |
command | "pokerbots" | Admin command |
adminMenu | false | Add, remove and register bot buttons in /pokeradmin. The command works whenever bots are on |
startMoney | 50000 | Virtual money per bot (they buy back in when broke) |
thinkTime | { 1500, 3500 } | Milliseconds a bot waits before acting |
aggression | 0.6 | 0 never raises, 1 raises a lot |
tag | "" | Text after a bot's name, e.g. " (Bot)" |
names | male and female lists | Names are matched to the ped model |
models | business peds | Ped models for bots |
Texts
Notifications and messages are in locale.lua, UI texts in html/js/locale.js.
Still stuck?Ask on our Discord