Client

ClientSide exports of the territories script.


circle-exclamation

IsMyZone

---@param territory string
---@return boolean
exports["cs-territories"]:isMyZone(territory)
exports["cs-territories"]:isMyZone()

Returns a true boolean if the organization to which it belongs has the maximum influence in that territory. If the string is left empty, it will be done with the territory in which it is located.


GetCurrent

---@return string
exports["cs-territories"]:GetCurrent()

It will return the name of the territory you are in. If you are not in any territory, it will return a false boolean.


GetMaxInfluence

It will return a table with the appearance of the table below. If the territory is not specified, it will use the territory in which the user is located.

circle-info

You can use the "json.encode()" function to encode as string the content.


GetInfluences

It will return a table with the territory influences; it might be an empty table if there is no data. If a territory is not specified, the current territory will be assigned.


GetTerritories

It will return a table with all the territories information.


GetPodium

It will return a table with the content of the conquest podium displayed in the interface. It will contain information such as the numeric value or the gang name. Similar to the HTML podium, it will only return the top three bands with the most influence, following their respective order.


GetGangInfluence

Both fields will be mandatory. it will return the influence of a band in a specific territory.

Last updated