Installation
1. Requirements
- oxmysql
- One framework: ESX, QBCore or Qbox
- OneSync (enabled by default on modern servers), needed for contested zones
2. Add the resource
Put the kyoGangTerritories folder in your resources folder and start it after oxmysql and your framework:
ensure oxmysql
ensure es_extended # or qb-core / qbx_core
ensure kyoGangTerritories
3. Database
Nothing to do. With Config.AutoInstallSQL = true the resource creates every missing table on start. Tables you imported by hand are left alone.
If you prefer to import them yourself, set it to false and run sql.sql.
4. Admin access
Admins are identified by their FiveM license. Add them in server.cfg, separated by commas:
set kyo_territories_admins "license:xxxxxxxx,license:yyyyyyyy"
Tip: if you open
/gangterritorieswithout access, the panel shows your own license, ready to copy.
5. Configure
- Open
config.luaand setConfig.Framework,Config.NotifySystemandConfig.DispatchSystem. - Set the items needed to start a conquest in
Config.RequiredItems, or leave the table empty.
6. First steps in game
/gangterritories> Gangs Manager: register each gang with its job name (for exampleballas), a label and a map colour. Only registered gangs can conquer.- Territories > Add Zone (or
/addterritories): draw the zone with the aim laser and save it. - Settings: choose the language and paste your Discord webhooks.