---
title: "PlayerTextDrawIsSelectable | open.mp"
description: "چک می‌کنه که آیا player-textdraw قابل انتخابه یا نه."
canonical: https://omp.itsneufox.com/fa/docs/scripting/functions/PlayerTextDrawIsSelectable
language: fa
---

# PlayerTextDrawIsSelectable

هشدار

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

## توضیحات

چک می‌کنه که آیا player-textdraw قابل انتخابه یا نه.

## پارامترها

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

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

**true** برمی‌گردونه اگه player-textdraw قابل انتخاب باشه، وگرنه **false** برمی‌گردونه.

## مثال استفاده

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

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

    if (PlayerTextDrawIsSelectable(playerid, welcomeText[playerid]))
    {
        // Player-Textdraw ghabele entekhab hast
    }
    else
    {
        // Player-Textdraw ghabele entekhab nist
    }
    return 1;
}
```

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

-   [CreatePlayerTextDraw](https://omp.itsneufox.com/fa/docs/scripting/functions/CreatePlayerTextDraw): ساخت یک player-textdraw.
-   [PlayerTextDrawDestroy](https://omp.itsneufox.com/fa/docs/scripting/functions/PlayerTextDrawDestroy): پاک کردن یک player-textdraw.
-   [PlayerTextDrawSetSelectable](https://omp.itsneufox.com/fa/docs/scripting/functions/PlayerTextDrawSetSelectable): روشن/خاموش کردن قابلیت انتخاب یک 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): تنظیم رنگ background یک player-textdraw.
-   [PlayerTextDrawAlignment](https://omp.itsneufox.com/fa/docs/scripting/functions/PlayerTextDrawAlignment): تنظیم alignment یک 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.
-   [IsPlayerTextDrawVisible](https://omp.itsneufox.com/fa/docs/scripting/functions/IsPlayerTextDrawVisible): چک می‌کنه که آیا player-textdraw برای بازیکن نمایش داده میشه یا نه.
-   [IsValidPlayerTextDraw](https://omp.itsneufox.com/fa/docs/scripting/functions/IsValidPlayerTextDraw): چک می‌کنه که آیا player-textdraw معتبره یا نه.
