---
title: "GetPlayer3DTextLabelDrawDistance | open.mp"
description: "فاصله نمایش یک 3D text label بازیکن رو می‌گیره."
canonical: https://omp.itsneufox.com/fa/docs/scripting/functions/GetPlayer3DTextLabelDrawDistance
language: fa
---

# GetPlayer3DTextLabelDrawDistance

هشدار

This function was added in omp v1.1.0.2612 and will not work in earlier versions!

## توضیحات

فاصله نمایش یک 3D text label بازیکن رو می‌گیره.

| اسم | توضیح |
| --- | --- |
| playerid | شناسه بازیکن. |
| PlayerText3D:textid | شناسه 3D text label بازیکن که می‌خوای فاصله نمایشش رو بگیری. |

## مقادیر برگشتی

فاصله نمایش 3D text label بازیکن رو به صورت float برمی‌گردونه.

## مثال‌ها

```c
new PlayerText3D:playerTextId;
new Float:x, Float:y, Float:z;
new Float:drawDistance;

GetPlayerPos(playerid, x, y, z);
playerTextId = CreatePlayer3DTextLabel(playerid, "Hello\nI'm at your position", 0x008080FF, x, y, z, 40.0);

drawDistance = GetPlayer3DTextLabelDrawDistance(playerid, playerTextId);
// drawDistance = 40.0
```

## تابع‌های مرتبط

-   [SetPlayer3DTextLabelDrawDistance](https://omp.itsneufox.com/fa/docs/scripting/functions/SetPlayer3DTextLabelDrawDistance): تنظیم فاصله نمایش 3D text label بازیکن.
-   [Get3DTextLabelDrawDistance](https://omp.itsneufox.com/fa/docs/scripting/functions/Get3DTextLabelDrawDistance): گرفتن فاصله نمایش 3D text label.
