# Exports

## Client Side

This export allows you to retrieve information about a specific territory, returning the current owner and the influence percentage of the territory.

```lua
exports['mg-territories']:GetTerritoryInfo('territory_name')
```

#### **📌 Returns**

* **`owner`** (`string` | `nil`) → Name of the job controlling the territory.
* **`influence`** (`number` | `nil`) → Influence percentage of the territory.

This export retrieves information about the territory the player is currently in, returning the owner and influence percentage.

```lua
exports['mg-territories']:GetCurrentTerritoryInfo()
```

#### **📌 Returns**

* **`owner`** (`string` | `nil`) → Name of the job controlling the current territory.
* **`influence`** (`number` | `nil`) → Influence percentage of the current territory.
* If the player is not inside a valid territory, it will return `nil, nil`.

## Server Side

This server-side export retrieves information about a specific territory, returning the owner and influence percentage.

```lua
exports['mg-territories']:GetTerritoryInfo('territory_name')
```

#### **📌 Returns**

* **`owner`** (`string` | `nil`) → Name of the job controlling the specified territory.
* **`influence`** (`number` | `nil`) → Influence percentage of the specified territory.
* If the territory does not exist or is unclaimed, it will return `nil, nil`.
