---
title: "IsPlayerTextDrawVisible | open.mp"
description: "چک می‌کنه که آیا یه player-textdraw برای بازیکن نمایش داده شده یا نه."
canonical: https://omp.itsneufox.com/fa/docs/scripting/functions/IsPlayerTextDrawVisible
language: fa
---

# IsPlayerTextDrawVisible

هشدار

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

## توضیحات

چک می‌کنه که آیا یه player-textdraw برای بازیکن نمایش داده شده یا نه.

| نام | توضیحات |
| --- | --- |
| playerid | ID بازیکنی که باید چک بشه. |
| PlayerText:textid | ID player-textdraw. |

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

**true** - Player-Textdraw برای بازیکن نمایش داده شده.

**false** - Player-Textdraw برای بازیکن نمایش داده نشده.

## مثال‌ها

```c
new PlayerText:welcomeText[MAX_PLAYERS];

public OnPlayerConnect(playerid)
{
    welcomeText[playerid] = CreatePlayerTextDraw(playerid, 320.0, 240.0, "Welcome to my OPEN.MP server");
    PlayerTextDrawShow(playerid, welcomeText[playerid]);

    if (IsPlayerTextDrawVisible(playerid, welcomeText[playerid]))
    {
        // Player-Textdraw is shown
    }
    else
    {
        // Player-Textdraw is not shown
    }
}
```

## توابع مرتبط

-   [PlayerTextDrawDestroy](https://omp.itsneufox.com/fa/docs/scripting/functions/PlayerTextDrawDestroy): نابود کردن یه player-textdraw.
-   [PlayerTextDrawColor](https://omp.itsneufox.com/fa/docs/scripting/functions/PlayerTextDrawColor): تنظیم رنگ متن در player-textdraw.
-   [PlayerTextDrawBoxColor](https://omp.itsneufox.com/fa/docs/scripting/functions/PlayerTextDrawBoxColor): تنظیم رنگ جعبه player-textdraw.
-   [PlayerTextDrawBackgroundColor](https://omp.itsneufox.com/fa/docs/scripting/functions/PlayerTextDrawBackgroundColor): تنظیم رنگ پس‌زمینه player-textdraw.
-   [PlayerTextDrawAlignment](https://omp.itsneufox.com/fa/docs/scripting/functions/PlayerTextDrawAlignment): تنظیم تراز player-textdraw.
-   [PlayerTextDrawFont](https://omp.itsneufox.com/fa/docs/scripting/functions/PlayerTextDrawFont): تنظیم فونت player-textdraw.
-   [PlayerTextDrawLetterSize](https://omp.itsneufox.com/fa/docs/scripting/functions/PlayerTextDrawLetterSize): تنظیم اندازه حروف متن در player-textdraw.
-   [PlayerTextDrawTextSize](https://omp.itsneufox.com/fa/docs/scripting/functions/PlayerTextDrawTextSize): تنظیم اندازه جعبه player-textdraw (یا ناحیه قابل کلیک برای PlayerTextDrawSetSelectable).
-   [PlayerTextDrawSetOutline](https://omp.itsneufox.com/fa/docs/scripting/functions/PlayerTextDrawSetOutline): فعال/غیرفعال کردن outline روی player-textdraw.
-   [PlayerTextDrawSetShadow](https://omp.itsneufox.com/fa/docs/scripting/functions/PlayerTextDrawSetShadow): تنظیم سایه روی player-textdraw.
-   [PlayerTextDrawSetProportional](https://omp.itsneufox.com/fa/docs/scripting/functions/PlayerTextDrawSetProportional): تنظیم فاصله متن در player-textdraw به نسبت تناسبی.
-   [PlayerTextDrawUseBox](https://omp.itsneufox.com/fa/docs/scripting/functions/PlayerTextDrawUseBox): فعال/غیرفعال کردن جعبه روی player-textdraw.
-   [PlayerTextDrawSetString](https://omp.itsneufox.com/fa/docs/scripting/functions/PlayerTextDrawSetString): تنظیم متن player-textdraw.
-   [PlayerTextDrawShow](https://omp.itsneufox.com/fa/docs/scripting/functions/PlayerTextDrawShow): نمایش player-textdraw.
-   [PlayerTextDrawHide](https://omp.itsneufox.com/fa/docs/scripting/functions/PlayerTextDrawHide): مخفی کردن player-textdraw.
-   [IsValidPlayerTextDraw](https://omp.itsneufox.com/fa/docs/scripting/functions/IsValidPlayerTextDraw): چک می‌کنه که آیا player-textdraw معتبره یا نه.
