Installation
Welcome to the Gang-Activities installation guide. Here, you will learn how to fully install our asset to ensure a smooth and trouble-free setup for your FiveM server. By carefully following each step in this guide, you will achieve a clean and efficient installation.
Download the asset
After purchasing the script from our store at Redutzu's Scripts Store, head over to Keymaster. Here, you will find the assets you have acquired. Download the scripts named "Gang Activities" to your environment.
The script will not work if the asset is not purchased and present on your Keymaster account. Additionally, please be aware that if you transfer these assets, you will not be able to receive them back, and the script will cease to function.
Download the dependencies
To make sure the MDT works as it should, there are a few scripts you must download. These extra scripts are key for the MDT system to run well and fit into your FiveM server. Be sure to get all the needed dependencies listed in the documentation to ensure a smooth and fully working setup.
oxmysql / mysql-async
Start the resources
To get Gang Activities running smoothly on your FiveM server, it's important to start the scripts in the right order. This ensures everything loads correctly, avoiding problems and making sure the MDT system works well.
# The first hing you want to start is your database wrapper
ensure oxmysql / mysql-async
# Then start your core
ensure es_extended / qb-core / qbx_core / vrp
ensure gang-activities
Make sure the license for your server matches the account where you bought the script. Using different licenses will cause errors, making the script to not work.
Enable onesync
To ensure the script runs optimally and missions function correctly, it is strongly recommended β and in fact required β to enable OneSync and OneSync Infinity, along with several additional settings that improve overall performance.
onesync on
onesync_enableInfinity 1
onesync_distanceCullVehicles true
onesync_forceMigration true
onesync_population false
onesync_distanceCulling false
Insert the SQL
This step is crucial, so pay close attention. Inserting the SQL is a vital part of setting up the MDT on your server. Be sure to follow each step carefully and with full attention to detail. This ensures that the database is properly configured and ready to support the functionality of the MDT system without any issues.
The SQL file is working for every type of framework, you do not need a special one for your server.
You must insert this code, no matter which framework you're using. This is the main SQL required for the script to function properly.
CREATE TABLE `gang_activities` (
`id` int(255) NOT NULL AUTO_INCREMENT,
`identifier` varchar(20) NOT NULL,
`avatar` varchar(255) DEFAULT 'default',
`level` int(20) DEFAULT 1,
`xp` int(255) DEFAULT 0,
`statistics` LONGTEXT,
`missions` LONGTEXT,
PRIMARY KEY (`id`)
) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
Start your server
You can now start your server and enjoy the script. Additionally, you can configure the script further to match your preferences. For more information, refer to the configuration section.
Last updated
Was this helpful?