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

OptionDefaultWhat it does
Config.SharedObject"esx:getSharedObject"ESX shared object event (only for old ESX versions)
Config.JoinRange5How close a player must be to join a table
Config.DrawRange6How close a player must be to see the table's info card
Config.JoinCommand"jointable"Command to sit down at the nearest table
Config.CreationItemtrueAdds 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.DebugfalseDebug commands and logs. Only turn it on when support asks you to
Config.DebugEntitiesfalsePrints how many poker props, peds and animations exist to F8 every second, for tracking crashes. Keep it off on a live server
Config.MaxChipObjects210Most 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

OptionDefaultWhat it does
Config.TurnTime30Seconds a player has to act, then they check (if they can) or fold. 0 = no timer
Config.ShowHandTime5000Milliseconds the end-of-hand screen stays up
Config.AutoNextHand6Seconds until the next hand is dealt on its own. 0 = everyone presses Ready every hand
Config.HandHistory30Hands 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.

lua
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, money is mapped to cash.
  • type = "item" is an inventory item. Admins can also type any other item name in /pokeradmin.

Table styles

lua
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)

OptionDefaultWhat it does
idleVariation{ 9000, 18000 }A random idle fidget every 9 to 18 seconds
reactionstrueWin and lose reactions when the hand is shown
lockControlstrueBlocks walking, jumping and attacking while seated
holdCardsfalsetrue = players and bots pick up their two cards; false = cards stay face down on the felt

Dealer (Config.Dealer)

OptionDefaultWhat it does
enabledtrueA dealer stands at every table
gap1.0Metres of the chair ring kept free for the dealer
models{ "s_f_y_casino_01", "s_m_y_casino_01" }Dealer peds
animOffsetvector3(0.0, 0.21, 0.0)Where the dealer animations are anchored on the table
dealSpeed2.2Speeds up the deal animations
dealTime3.5Seconds to deal the hole cards. Bots and the turn timer wait for it
boardTime1.8Seconds to deal the flop, turn or river
shufflefalseShuffle 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.

OptionDefaultWhat it does
enabledtrueTurns tournaments on
command"pt"Opens the tournament list (/pokertournaments also works)
turnTime30Seconds to act in a tournament
defaults.buyIn1000Goes into the prize pool
defaults.fee0Kept by the house
defaults.added0Extra money added to the prize pool
defaults.startingChips10000Tournament chips per player
defaults.startBlind50Small blind of level 1
defaults.levelMinutes5Minutes per blind level
defaults.increase1.5Blinds multiply by this every level
defaults.maxPlayers / minPlayers6 / 2Player 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.

OptionDefaultWhat it does
enabledtrueTurns the leaderboard and stats on
size10Players shown per list
minHands20Hands 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.

OptionDefaultWhat it does
tournamentDays90Finished tournaments in /pt History older than this many days are deleted
tournamentMax2000Never more than this many saved tournaments; the oldest go first
inactivePlayerDays0Remove 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.

OptionDefaultWhat it does
enabledfalseTurns bots and the /pokerbots command on
command"pokerbots"Admin command
adminMenufalseAdd, remove and register bot buttons in /pokeradmin. The command works whenever bots are on
startMoney50000Virtual money per bot (they buy back in when broke)
thinkTime{ 1500, 3500 }Milliseconds a bot waits before acting
aggression0.60 never raises, 1 raises a lot
tag""Text after a bot's name, e.g. " (Bot)"
namesmale and female listsNames are matched to the ped model
modelsbusiness pedsPed models for bots

Texts

Notifications and messages are in locale.lua, UI texts in html/js/locale.js.

Still stuck?Ask on our Discord