> For the complete documentation index, see [llms.txt](https://docs.l2s.dev/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.l2s.dev/assets-and-guides/gangs-turf/exports.md).

# Exports

## Usefull Exports

{% tabs %}
{% tab title="Server" %}

<pre class="language-lua"><code class="lang-lua">--- Checks if the player is currently within their gang territory
<strong>--- @param PlayerId integer - The ID of the player to check
</strong>--- @return boolean - Returns true if the player is inside their gang territory, false otherwise
exports['l2s-gangsturf']:PlayerInHisGang(PlayerId)

--- Adds the specified amount to the gang's level
--- @param gang string - The name or identifier of the gang
--- @param amount integer - The amount to add to the gang level
exports['l2s-gangsturf']:AddGangLevel(gang, amount)

--- Removes the specified amount from the gang's level
--- @param gang string - The name or identifier of the gang
--- @param amount integer - The amount to remove from the gang level
exports['l2s-gangsturf']:RemoveGangLevel(gang, amount)

--- Retrieves the current level of the specified gang
--- @param gang string - The name or identifier of the gang
--- @return integer - Returns the current level of the gang
exports['l2s-gangsturf']:GetGangLevel(gang)

</code></pre>

{% endtab %}

{% tab title="Client" %}

```lua
--- Checks if the player is currently inside their gang territory
--- @return boolean - Returns true if the player is inside their gang territory, false otherwise
exports['l2s-gangsturf']:PlayerInHisGang() 

--- Checks if the specified coordinates fall within the radius of any gang territory
--- @param x number - The x-coordinate to check
--- @param y number - The y-coordinate to check
--- @return string - Returns the name of the gang if the coordinates are within their territory, otherwise returns an empty string
exports['l2s-gangsturf']:CheckCoords(x, y)

```

{% endtab %}
{% endtabs %}
