> ## 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

> Get the name of the territory the local player is currently inside.

Returns the name of the territory the local player is currently inside, or `nil` if outside any territory.

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

### Returns

| Data Type    | Description                                              |
| ------------ | -------------------------------------------------------- |
| string / nil | The territory name, or `nil` if the player is not in one |

## Example

```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
```


## Related topics

- [Territories](/drugs-creator/client/territories/index.md)
- [Get territory owners](/drugs-creator/client/territories/get-territory-owners.md)
- [Get player allowed actions](/jobs-creator/client/actions/get-player-allowed-actions.md)
- [Reset territory points](/drugs-creator/server/territories/reset-territory-points.md)
