Installation

How to install Frozen Poker: dependencies, your license key in cred.lua, and the pokertable item for ESX, QBCore, Qbox or ox_inventory.

On this page
  1. Make sure the dependencies are installed and start before frozen_poker.
  2. Put the frozen_poker folder in your resources directory.
  3. Add your licence key in cred.lua by following this tutorial.
  4. Copy pokertable.png from the INSTALLATION folder into your inventory's image folder.
  5. Add the pokertable item to your inventory (see below).
  6. Add ensure frozen_poker to your server.cfg, below your framework and your database resource (oxmysql or mysql-async).
  7. Set up config.lua (see Configuration) and restart the server.

The pokertables database table is created on first start, so you don't need to import any SQL. frozen_poker.sql is included if you prefer to create it yourself.

In game, use the pokertable item to place a table, then open /pokeradmin as an admin to set its currency, style and blinds.

ESX inventory

sql
INSERT INTO items (name, label, weight, rare, can_remove) VALUES ("pokertable", "Poker Table", 1, 0, 1);

QB inventory

In qb-core/shared/items.lua:

lua
['pokertable'] = { ['name'] = 'pokertable', ['label'] = 'Poker Table', ['weight'] = 1, ['type'] = 'item', ['image'] = 'pokertable.png', ['unique'] = false, ['useable'] = true, ['shouldClose'] = true, ['combinable'] = nil, ['description'] = 'A poker table you can place' },

OX inventory (and Qbox)

In ox_inventory/data/items.lua:

lua
['pokertable'] = {
    label = 'Poker Table',
    weight = 100,
    stack = true,
    close = true,
},

Casino chips (optional)

To let tables play for chips instead of money, add a casino_chips item to your inventory the same way, then pick Casino chips as the table's currency in /pokeradmin. Any other item works too.

Updating from an older version

  1. Back up your pokertables database table, your config.lua and your cred.lua (it holds your licence key).
  2. Replace the frozen_poker folder with the new one from your Downloads.
  3. Use the new config.lua and copy your own settings into it. The old file is missing many new options. Put your own cred.lua back, because the one in the download has no key.
  4. Make sure oxmysql or mysql-async is running.
  5. Restart the server. Your existing tables stay: new database columns are added and the stats and tournament history tables are created on their own when the script starts.

Your licence key stays the same, as long as your own cred.lua is back in the folder.

Still stuck?Ask on our Discord