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

# SetNameTagDrawDistance

## คำอธิบาย

Set the maximum distance to display the names of players.

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

## ส่งคืน

This function does not return any specific values.

## ตัวอย่าง

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

## บันทึก

หมายเหตุ

Default distance is 70 SA units

## ฟังก์ชั่นที่เกี่ยวข้องกัน

-   LimitGlobalChatRadius: Limit the distance between players needed to see their chat.
-   ShowNameTags: Set nametags on or off.
-   ShowPlayerNameTagForPlayer: Show or hide a nametag for a certain player.
