Installation

Diamond Casino brings the thrill of Las Vegas to FiveM with Blackjack, Poker, Slots, Roulette, Lucky Wheel, and Inside Track horse racing on a giant screen. Compatible with popular casino maps, it features memberships, VIP perks, NPCs, LED displays, cameras, and a chips store.


Download Script

To download the assets needed for this script, you must access the official Cfx.re portal, where all assets purchased through Tebex are managed.

  1. Go to the following link: 🔗 https://portal.cfx.re/assets/granted-assets

  2. Log in with the same Cfx.re account you used to make the purchase.

  3. In the list of granted assets, find and download the following:

    • Diamond Casino [asset]

    • Diamond Casino [map]

These files include the models, materials, and visual resources required for the proper operation of the casino system.


Download Dependencies

This script requires some mandatory dependencies to function correctly. Make sure to download and extract them inside your server’s main directory, keeping their original folder structure intact.


Remove Other Scripts

This script may cause conflicts or errors if you use other casino systems on your server. Common examples include qb-casino, or other similar casino scripts. It’s strongly recommended to remove them completely before installation to prevent compatibility or functionality issues.


Server.cfg Placement

This script must always start after es_extended or qb-core, never before. We recommend placing it below in your server.cfg, ensuring that all its dependencies are started first to prevent errors or unexpected behavior.


Database Setup

This script includes an essential database required for its operation. You must import it before starting your server, preferably using HeidiSQL or any other manager compatible with MariaDB/MySQL.

ESX
INSERT INTO
    `addon_inventory` (name, label, shared)
VALUES
    ('casino', 'Casino', 0);

INSERT INTO
    `datastore` (name, label, shared)
VALUES
    ('casino', 'Casino', 0);
    
DROP TABLE IF EXISTS `casino_memberships`;

CREATE TABLE `casino_memberships` (
	`id` INT(11) NOT NULL AUTO_INCREMENT,
	`identifier` VARCHAR(90) NOT NULL DEFAULT '0' COLLATE 'utf8mb3_general_ci',
	`chips` INT(11) NOT NULL DEFAULT '0',
	`vip` TINYINT(1) NULL DEFAULT '0',
	`luckywheel_date` TIMESTAMP NULL DEFAULT current_timestamp(),
	`chip_buy_date` TIMESTAMP NULL DEFAULT current_timestamp(),
	PRIMARY KEY (`id`) USING BTREE,
	UNIQUE INDEX `identifier` (`identifier`) USING BTREE
)
COLLATE='utf8mb3_general_ci'
ENGINE=InnoDB
AUTO_INCREMENT=1
;

DROP TABLE IF EXISTS `casino_blocked_players`;

CREATE TABLE `casino_blocked_players` (
	`id` INT(11) NOT NULL AUTO_INCREMENT,
	`identifier` VARCHAR(90) NOT NULL DEFAULT '0' COLLATE 'utf8mb3_general_ci',
	`reason` TEXT NULL DEFAULT NULL COLLATE 'utf8mb3_general_ci',
	PRIMARY KEY (`id`) USING BTREE
)
COLLATE='utf8mb3_general_ci'
ENGINE=InnoDB
;
QBCORE
DROP TABLE IF EXISTS `casino_memberships`;

CREATE TABLE `casino_memberships` (
	`id` INT(11) NOT NULL AUTO_INCREMENT,
	`identifier` VARCHAR(90) NOT NULL DEFAULT '0' COLLATE 'utf8mb3_general_ci',
	`chips` INT(11) NOT NULL DEFAULT '0',
	`vip` TINYINT(1) NULL DEFAULT '0',
	`luckywheel_date` TIMESTAMP NULL DEFAULT current_timestamp(),
	`chip_buy_date` TIMESTAMP NULL DEFAULT current_timestamp(),
	PRIMARY KEY (`id`) USING BTREE,
	UNIQUE INDEX `identifier` (`identifier`) USING BTREE
)
COLLATE='utf8mb3_general_ci'
ENGINE=InnoDB
AUTO_INCREMENT=1
;

DROP TABLE IF EXISTS `casino_blocked_players`;

CREATE TABLE `casino_blocked_players` (
	`id` INT(11) NOT NULL AUTO_INCREMENT,
	`identifier` VARCHAR(90) NOT NULL DEFAULT '0' COLLATE 'utf8mb3_general_ci',
	`reason` TEXT NULL DEFAULT NULL COLLATE 'utf8mb3_general_ci',
	PRIMARY KEY (`id`) USING BTREE
)
COLLATE='utf8mb3_general_ci'
ENGINE=InnoDB
;