---
title: "SetNameTagDrawDistance | open.mp"
description: "Set the maximum distance to display the names of players."
canonical: https://omp.itsneufox.com/docs/scripting/functions/SetNameTagDrawDistance
language: en
---

# SetNameTagDrawDistance

## Description

Set the maximum distance to display the names of players.

| Name | Description |
| --- | --- |
| Float:distance | The distance to set. |

## Returns

This function does not return any specific values.

## Examples

```c
SetNameTagDrawDistance(20.0);
```

## Notes

note

Default distance is 70.0 SA units

## Related Functions

-   [LimitGlobalChatRadius](https://omp.itsneufox.com/docs/scripting/functions/LimitGlobalChatRadius): Limit the distance between players needed to see their chat.
-   [ShowNameTags](https://omp.itsneufox.com/docs/scripting/functions/ShowNameTags): Set nametags on or off.
-   [ShowPlayerNameTagForPlayer](https://omp.itsneufox.com/docs/scripting/functions/ShowPlayerNameTagForPlayer): Show or hide a nametag for a certain player.
