Installation Guide


Step 1: Insert SQL Tables

You need to execute the SQL code to set up the necessary database tables.

Instructions

  1. Open your database management tool (e.g., phpMyAdmin or HeidiSQL).

  2. Select Your Database.

  3. Run the following SQL code to create the required tables:

CREATE TABLE `gang_data` (
	`id` INT(11) NOT NULL AUTO_INCREMENT,
	`gangid` VARCHAR(255) NOT NULL COLLATE 'utf8mb4_general_ci',
	`gangInfo` TEXT NOT NULL COLLATE 'utf8mb4_general_ci',
	`zone` LONGTEXT NULL DEFAULT 'PolyZone:Create({' COLLATE 'utf8mb4_general_ci',
	`managegangcoords` TEXT NOT NULL COLLATE 'utf8mb4_general_ci',
	`stashdetails` LONGTEXT NULL DEFAULT NULL COLLATE 'utf8mb4_bin',
	`crafting` LONGTEXT NULL DEFAULT '[]' COLLATE 'utf8mb4_general_ci',
	`blipInfo` LONGTEXT NULL DEFAULT '[]' COLLATE 'utf8mb4_general_ci',
	`zoneitems` LONGTEXT NULL DEFAULT '[]' COLLATE 'utf8mb4_bin',
	`strikes` LONGTEXT NULL DEFAULT '[]' COLLATE 'utf8mb4_general_ci',
	`orders` LONGTEXT NULL DEFAULT '[]' COLLATE 'utf8mb4_general_ci',
	`notices` LONGTEXT NULL DEFAULT '[]' COLLATE 'utf8mb4_general_ci',
	`money` INT(11) NULL DEFAULT '0',
	PRIMARY KEY (`id`) USING BTREE,
	UNIQUE INDEX `gangid` (`gangid`) USING BTREE
)
COLLATE='utf8mb4_general_ci'
ENGINE=InnoDB
AUTO_INCREMENT=0

Step 2: Update gangs.lua File

Open qb-core/shared/gangs.lua and replace the entire content of the file with the new code provided.


Step 3: Configure the Config.lua File

Customize the Config.lua file based on your preferences and requirements. Ensure the settings align with your server's intended functionality and features.


Step 4: Remove Other Drug Sale Scripts

  1. Ensure that any other drug sale scripts present on your server are removed to avoid conflicts or redundancies.


Last updated