Installation
A simple installation guide for cs-territories
QBCore Installation
If you are using qbcore make sure that in the "config.lua" file the Config.Framework section is set to "QBCore", otherwise change it to QBCore.
QBCore only supports inventories that work with the QBCore inventory table. If you are not using the qb-inventory, selling drugs to NPCs may not work, so it must be disabled.
Database Configuration
In QBCore the script will only store the data in the script's .json file, it will not require any database.
βΉοΈ Reset territories saved dataTo reset the data of the territories, you will need to have the script or server stopped. Then, access the .json file named 'territories.json' and delete all the text.
Once the file is empty, write [] and save the changes. The structure will be regenerated when the script is restarted.
This will be what the .json will look like:
Item Creation
To add the preconfigured drug items you must go to "qb-core", shared, items.lua.
Inventory images
ESX Installation
The installation on ESX may take longer than on QBCore, so it's recommended to set up the script with time and patience.
To start, it will be necessary to set the section 'Config.Framework' in the 'config.lua' file to 'ESX' for the script to function correctly.
ESX Configuration
In ESX, we'll need to create gangs within the script. For this, we'll have an entire directory within the script dedicated to the 'minicore' so that organizations can function in ESX.
cs-territories\gangsystem It will be the directory containing everything related to player tables. This directory will not be protected by escrow, it will be entirely accessible to the user.
To add or modify organizations, you'll need to go to the 'gangs.lua' file within the 'shared' directory.
Last updated