Server

ServerSide exports of the territories script.

AddInfluence

---@param territory string
---@param gang string
---@param value integer
exports["cs-territories"]:AddInfluence(territory, gang, value)

Add influence in a territory.


RemoveInfluence

---@param territory string
---@param gang string
---@param value integer
exports["cs-territories"]:RemoveInfluence(territory, gang, value)

Remove influence in a territory.


GetMaxInfluence

---@param territory string
---@return array
exports["cs-territories"]:getMaxInfluence(territory)

Return a table the maximum influence of a territory.


CheckGangInZone

---@param zone string
---@param gang string
---@return boolean
exports["cs-territories"]:checkGangInZone(zone, gang)

Returns a table with the gangs located within a territory.


GetTerritoriesDB

---@return array
exports["cs-territories"]:getTerritoriesDB()

Return all territories database. (JSON content)

Last updated