Installation guide
Welcome to the Brutal Gangs installation guide, here you can learn how to completely install our asset.
Asset download
Put the script folder to your server.
Start the script in the server.cfg. (ensure brutal_gangs)
Restart your server! (And you get permission to use the script)
Upload the SQL
CREATE TABLE IF NOT EXISTS `brutal_gangs` (
`job` varchar(50) NOT NULL,
`label` varchar(50) DEFAULT NULL,
`level` int(11) DEFAULT 0,
`datas` longtext DEFAULT NULL,
`vehicles` longtext DEFAULT NULL,
UNIQUE KEY `job` (`job`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_general_ci;
ALTER TABLE `users`
ADD COLUMN IF NOT EXISTS `gang_rank` TEXT NULL DEFAULT NULL,
ADD COLUMN IF NOT EXISTS `last_gang` TEXT NULL DEFAULT NULL;
CREATE TABLE brutal_gangs_graffiti (
id INT AUTO_INCREMENT PRIMARY KEY,
gang VARCHAR(50),
name VARCHAR(255),
created TIMESTAMP DEFAULT CURRENT_TIMESTAMP
) ENGINE=InnoDB;
CREATE TABLE `brutal_gangs_graffiti_settings` (
`external_url` TINYINT(4) NULL DEFAULT NULL,
`words` LONGTEXT NULL DEFAULT NULL COLLATE 'utf8_general_ci'
)
COLLATE='utf8_general_ci'
ENGINE=Aria;
INSERT INTO `brutal_gangs_graffiti_settings` (`external_url`, `words`)
VALUES (1, '[]');
CREATE TABLE brutal_gangs_hqs (
name VARCHAR(50) PRIMARY KEY,
zone JSON,
middle_point JSON,
occupiable TINYINT,
visibility TINYINT,
default_coords JSON
) ENGINE=InnoDB;
CREATE TABLE brutal_gangs_zones (
name VARCHAR(50) PRIMARY KEY,
label LONGTEXT,
type VARCHAR(50),
zone LONGTEXT,
cost INT DEFAULT 0,
npc LONGTEXT,
level INT,
time_limit INT,
reward LONGTEXT,
last_raided INT,
last_collected INT
) ENGINE=InnoDB;Upload the items
This asset depends on certain items for its operation, so don't forget to integrate all items correctly into your database or inventory system, depending on how you use your server.
If your inventory is not among the following, you can create the file yourself using the examples of each item by displaying any of the following tabs.
Asset positioning
Setting up the Webhook
If you want to use the opportunnities which can be given by a webhook then you will have to set it up in our assets. You can do it by changeing a value to your discord webhook in the sv-utils.lua file.

Setting the loaded event
In the client-core.lua file go to the LoadedEvent variable and if you are using a different event then paste there your event which is used on your server.

Checking the Config file
Please make sure that you go through the whole file during the installation and check everything. It is one of the most important things as if you miss this step the script might won't work propetly.
Polyzone
Download this version from the polyzone in order to make the script work.
Most important steps
The most important things always at the top of the config so pay the most attencion to these elements.
Lockpicking Minigame
Download this script to use the lockpicking minigame in the gang tasks.
Setting up the core
You have to use minimum the es_extended v1.7.5
If you have an older version you will have to create the gangs in the sql and you wont be able to create gangs in-game as there are missing functions for that in your core!
If you are using second job
Go to the core/server-core.lua file and set the Config.EsxSecondJob to true. If you are experiencing any problems open a ticket on our discord server!
Navigate to qb-core/server/commands.lua and replace this command as you can see it on the image:

Navigate to qb-core/shared/gangs.lua and replace this file to this:
Navigate to qbx_core/server/commands.lua and replace this command as you can see it on the image:

qbx_core/server/commands.lua
Navigate to qbx_core/shared/gangs.lua and replace this file to this:
If you got any error
If you followed the installation guide and the script still don't work or you get any errors the please check the common errors, here in the docs and in our discord server, for more informations.
Last updated
