NX Creative

Configuration

Every entry in config.lua. Defaults, types, and purpose.

On this page

All player-facing settings live in config.lua. The file is in escrow_ignore so it remains editable after install.

Locked values that drive the calibrated RTP (symbol weights, payout tables, bonus weights, max-win cap, DUI panel geometry, sync radius) live in constants.lua and are not part of this page. Editing them will skew payout shape and is not supported.

Framework#

Config.Frameworkstring'ESX'

Active framework. One of 'ESX', 'QB', or 'QBOX'. Must match the framework resource you start before nx_slotmachine.

Language#

Config.Localestring'en'

Language used for game screens, notifications, and admin menus. Bundled options: 'en', 'de', 'fi', 'fr', 'pt-br', 'es', 'tr', 'nl', 'it', 'pl'.

Debug#

Config.Debugbooleanfalse

When true, prints verbose lifecycle, spin, and UI traces to the server console and F8 client console. Leave false in production.

Economy#

Config.Currencystring'

Legacy single-currency symbol. Used as a fallback when a slot has no currency assigned, or for stripped-down setups. The Config.Currencies table below supersedes it for per-machine customization.

Config.BetAmountsnumber[]{ 10, 50, 100, 500 }

Available bet steps. The player cycles through these in the bet selector.

Config.DefaultBetIndexnumber1

1-based index into Config.BetAmounts that is selected on first sit.

Config.EnableBonusBuysbooleantrue

Bonus buys in every game. Set to false to hide the Buy button in game and decline bought features on the server.

Config.WinNotificationsbooleantrue

The 'You won' notification after each payout. Set to false to turn it off; the game screen still shows the win.

Payback rate#

Config.Economy.RTPTierstring'standard'

Share of everything staked that the machines return over a long run. 'standard' is what the games were balanced around, at roughly 96% each. 'reduced' runs the same games at roughly 91%, scaling every win down by the same proportion so the house keeps more of what goes in.

Both tiers use the same symbol weights and the same feature frequencies. Only the size of each win changes, so the games play identically at either setting.

Pick "reduced" when you want the casino to earn more per wager. It lowers the small everyday wins by the same proportion as the large ones, which players tend to notice quickly. It does not cap how much a single lucky session can pay.

Currencies#

Each slot cabinet runs on one currency. Admins assign it per cabinet through the /manageslots menu, and one global option covers the in-world Diamond Casino cabinets. Define every selectable currency in Config.Currencies.

Config.Currenciestable[]{ { key = 'money', label = 'Cash', symbol = ' , type = 'item', item = 'money' }, { key = 'chips', label = 'Casino Chips', symbol = '◆', type = 'item', item = 'casino_chip' } }

List of currency options a slot can use. Each entry is charged on a bet and paid out on a win. See the field reference below.

Each entry takes:

  • key. Unique internal id stored in the database. Do not rename in place.
  • label. Display label shown in the /manageslots menu.
  • symbol. Short symbol drawn in the cabinet UI, for example "$", "◆", or "C".
  • type. Either "account" (framework money account) or "item" (ox_inventory item).
  • account. Required when type is "account". The framework account to charge and pay. ESX: "money", "bank", or "black_money". QB/QBox: "cash", "bank", or "crypto".
  • item. Required when type is "item". The ox_inventory item used as one chip.

The first entry is the default for newly placed slots and for the in-world casino cabinets until an admin overrides them in-game.

Config.DefaultCurrencystringnil

Optional currency key that sets which Config.Currencies entry new slots are created with. When nil, the first entry is used. Lets you reorder the menu without changing the default.

Presentation#

Config.Splash.Enabledbooleantrue

Plays the NX Creative branded intro the first time a player sits at a machine in a session.

Config.Sounds.Enabledbooleantrue

Game music and sound effects on the cabinets.

Config.Sounds.Enginestring'web'

'web' plays each machine's own soundtrack and effects. 'native' plays simple GTA menu sounds only.

Config.Sounds.DefaultVolumenumber0.35

Starting volume (0 to 1) for players who have not picked their own.

Slot placement#

The placement system powers the /manageslots admin command. It controls who is allowed to open the manager, and optionally lets specific jobs purchase and place slot cabinets.

Config.SlotPlacement.TableNamestring'nx_slotmachine_world_slots'

Database table that stores placed slot cabinets. If you change this, update sql/install.sql to match.

Config.SlotPlacement.Commandstring'manageslots'

Chat command that opens the placement manager. Renaming this updates the registered command name.

Access#

Config.SlotPlacement.Access.Adminstable{ Enabled=true, ESXGroups={'admin','superadmin'}, QBPermissions={'admin'}, QBoxPermissions={'admin'}, QBoxGroups={'admin'}, AcePermissions={'nx_slotmachine.manageslots'} }

Who counts as an admin for slot placement. Any one matching group, permission, or ACE check grants access. Grant the ACE with add_ace group.admin nx_slotmachine.manageslots allow. An ACE that every player holds (such as the command's own command.manageslots) is ignored.

Config.SlotPlacement.Access.Jobstable{ Enabled=false, DefaultPrice=0, Allowed={} }

Optional job-based access. When Enabled, listed jobs may place machines for a price. Each entry in Allowed is keyed by job name and takes the shape { minGrade = number, price = number }.

Economy analytics#

Records what the machines do to your economy and adds an Economy Analytics entry inside /manageslots. The dashboard is admin only.

The resource writes one row per player, per machine, per sitting. Each row holds the totals for that sitting: spins, amount staked, amount paid out, currency, game, start and end. Every question the dashboard answers is a total, so it does not write a row per spin.

There is no retention setting and no rollup job. A row is a few hundred bytes.

Config.Analytics.Enabledbooleantrue

Enables session recording and the Economy Analytics dashboard. Set to false to write nothing and hide the dashboard entry.

Config.Analytics.SessionTablestring'nx_slotmachine_sessions'

Database table holding one row per sitting. Change this before you have data. Renaming it later leaves the old table behind with your history in it.

Config.Analytics.NotableTablestring'nx_slotmachine_notable_rounds'

Database table holding the full frame sequence of recorded notable rounds. Same renaming caveat as SessionTable.

Notable rounds#

Config.Analytics.NotableMultipliernumber500

Any round paying at least this many times its stake is recorded in full and can be replayed spin by spin from the dashboard. Raise it to record only the largest outliers, lower it to catch more.

The unit is a round, not a spin: one paid spin plus every free spin it bought. A win this size is usually a bonus built up over many spins, and a single grid out of context does not explain it.

Replay loads the real game page and plays the recorded results back through it, so what you watch is the cabinet the player saw.

Config.Analytics.MaxReplayFramesnumber400

Maximum frames stored for one round. A round that reaches this cap is still stored and still replayable, and is marked as shortened in the dashboard.

Config.Analytics.MaxReplayBytesnumber1048576

Maximum stored JSON size for one round, in bytes. Default is 1 MB. Same shortened-round behavior as MaxReplayFrames.

Write behavior#

Config.Analytics.FlushSpinsnumber25

How often a sitting's running totals are written back to the database, counted in spins. Lower loses less if the server stops mid-session, higher writes less often. Totals are always written when the player stands up.

Config.Analytics.CacheSecondsnumber20

Seconds to reuse the last overview result before recomputing it. Stops the server-wide totals being recalculated every time an admin reopens the panel.

Every aggregate is keyed by currency and the dashboard renders each currency separately, so two currencies are never added together.

Activity logs#

Off by default. When on, the resource builds structured log rows (one per sitting, plus large wins, bonus buys, refused spins and staff actions) and hands each one to Logs.Send in bridge/logs.lua. That file ships unlocked: connect it to whatever logging you use.

Config.Logs.Enabledbooleanfalse

Build log rows and pass them to Logs.Send in bridge/logs.lua.

Config.Logs.WinMultipliernumber50

Log a single payout of at least this many times the bet.

Config.Logs.BigWinMultipliernumber500

From this many times the bet, the payout is logged as a warning.

Config.Logs.EveryBetbooleanfalse

Log a row for every paid spin. Busy servers produce thousands of rows an hour.

Database#

Config.TrinityMemory.TableNamestring'nx_slotmachine_trinity_memory'

Database table that persists each player's Trinity Heist crew-role state across reconnects. If you change this, update sql/install.sql to match.

We are not affiliated with or endorsed by Rockstar North, Take-Two Interactive or other rights holders. FiveM is a copyright and registered trademark of Take-Two Interactive Software, Inc. Our checkout process is owned & operated by Tebex Limited, who handle product fulfilment, billing support and refunds.