> ## Documentation Index
> Fetch the complete documentation index at: https://docs.jaksam-scripts.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Get current territory

> Récupère le nom du territoire dans lequel se trouve actuellement le joueur local.

Retourne le nom du territoire dans lequel se trouve actuellement le joueur local, ou `nil` si en dehors de tout territoire.

```lua Export theme={null}
local territoryName = exports["drugs_creator"]:getCurrentTerritory()
```

### Retour

| Type de donnée | Description |
| - | - |
| string / nil | Le nom du territoire, ou `nil` si le joueur n'en est dans aucun |

## Exemple

```lua theme={null}
local territory = exports["drugs_creator"]:getCurrentTerritory()

if territory then
    print("You are in territory: " .. territory)
else
    print("You are not inside any territory")
end
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.