Territories
This script features a territory control system that uses points to determine which gang dominates a specific area. It uses GTA native zones; custom zones (or polyzones) are not supported. Points are gained or lost through various in-game events, you also have client exports you can trigger from your own scripts.

Territory Colors
Gangs can set their own territory color in Settings tab > Gang Color, this option will also change the UI color to match their gang style.

Exports
getZone()
Retrieves the gang that controls the zone where player is standing.
returns
result:
string | falseGang name or false if the zone isn't controlled by any gang
myZone()
Returns true if the current zone is controlled by the player gang or false.
returns
result:
boolean
addZoneXP(amount)
Add the desired points to the zone where the player is standing.
params:
amount:
numberAmount of points to add to zone.
removeZoneXP(amount)
Remove points to the zone where the player is standing.
params:
amount:
numberAmount of points to remove from zone
addZonePoints(gang,zone,amount)
Add points for a gang to a specific zone.
params:
gang:
stringGang namezone:
stringZone nameamount:
numberAmount of points to add to territoryreturns
result:
boolean
removeZonePoints(gang,zone,amount)
Remove gang points from a territory.
params:
gang:
stringGang namezone:
stringZone nameamount:
numberAmount of points to removereturns:
result:
boolean
getZoneGang(zone)
Returns the gang with the most points in the zone.
params:
zone:
stringZone namereturns:
gang:
null | stringReturns the gang name or null if zone does not exist or zone isn't controlled by anyone.
Last updated