Casino·installation

Installation

Download

Download the casino script from portal.cfx.re. Make sure you're logged in with the FiveM account you used to purchase the script.

Extract

Extract the downloaded archive and place the resulting DS-Casino folder in your server's resources folder.

Dependencies
The script requires oxmysql and OneSync enabled (game build 2060 or newer).

Framework setup

Open the DS-Casino folder, locate the INSTALL_ME folder inside it, and follow the instructions for your framework. ESX, QBCore and QBX are all supported and auto-detected at runtime.

ESX

Execute INSTALL_ME/ESX/job.sql in your database to create the casino job.

Using ox_inventory?
Open INSTALL_ME/ESX/OX_INVENTORY_ITEM.md, copy the item snippet and paste it into ox_inventory/data/items.lua. Then copy INSTALL_ME/ESX/casino_chips.png into ox_inventory/web/images/.
Using the default ESX inventory?
Execute INSTALL_ME/ESX/item.sql in your database to register the casino_chips item.

QBCore

  • Copy the job from INSTALL_ME/QBCORE/job.md into qb-core/shared/jobs.lua.
  • Copy the item from INSTALL_ME/QBCORE/item.md into qb-core/shared/items.lua.
  • Copy INSTALL_ME/QBCORE/casino_chips.png into qb-inventory/html/images/.

QBX

  • Copy the job from INSTALL_ME/QBCORE/job.md into qbx_core/shared/jobs.lua.
  • Copy the item snippet from INSTALL_ME/ESX/OX_INVENTORY_ITEM.md into ox_inventory/data/items.lua.
  • Copy INSTALL_ME/ESX/casino_chips.png into ox_inventory/web/images/.

Whitelist props in your anticheat

The casino games rely on a set of GTA:O props that some anticheats flag by default. If you run an anticheat, whitelist these props so it doesn't kick or ban players using the tables and slot machines.

Note
The complete list ships inside the resource at INSTALL_ME/ANTICHEAT PROPS.txt — copy it into your anticheat's whitelist.

Start the resource

Add the script to your server.cfg:

server.cfg
ensure DS-Casino
Admin permissions (optional)
To let admins open the in-world ambient peds creator, grant the casino_peds ace in your server.cfg:
server.cfg
add_ace group.admin casino_peds allow

Configure

Open config/config.lua and tune the script to your server — chip prices, daily bonus, target system (ox_target / qb-target / qtarget), data storage backend (JSON or SQL), and so on. The other config_*.lua files cover individual games (blackjack, roulette, slots, poker, luck wheel, inside track, bartender, VIP).

Still stuck?

Open a ticket in our Discord and we'll help you out.

Join Discord →
Casino · Installation — Documentation