---
title: "IsValidPlayer3DTextLabel | open.mp"
description: "Verifica se o rótulo de texto 3D de um jogador é válido."
canonical: https://omp.itsneufox.com/pt-BR/docs/scripting/functions/IsValidPlayer3DTextLabel
language: pt-BR
---

# IsValidPlayer3DTextLabel

aviso

Esta função foi adicionada no omp v1.1.0.2612 e não funcionará em versões anteriores!

## Descrição

Verifica se o rótulo de texto 3D de um jogador é válido.

| Nome | Descrição |
| --- | --- |
| playerid | O ID do jogador. |
| PlayerText3D:textid | O ID da etiqueta de texto 3D do jogador a ser verificado. |

## Retornos

Esta função retorna **true** se o rótulo de texto 3D do jogador for válido ou **false** se não for.

## Exemplos

```c
new PlayerText3D:playerTextId;
new Float:X, Float:Y, Float:Z;

GetPlayerPos(playerid, X, Y, Z);
playerTextId = CreatePlayer3DTextLabel(playerid, "Hello\nI'm at your position", 0x008080FF, X, Y, Z, 40.0);

if (IsValidPlayer3DTextLabel(playerid, playerTextId))
{
    // Faça alguma coisa
}
```

## Funções Relacionadas

-   [CreatePlayer3DTextLabel](https://omp.itsneufox.com/pt-BR/docs/scripting/functions/CreatePlayer3DTextLabel): Cria um rótulo de texto 3D apenas para um jogador específico.
-   [IsValid3DTextLabel](https://omp.itsneufox.com/pt-BR/docs/scripting/functions/IsValid3DTextLabel): Verifica se uma etiqueta de texto 3D é válida.
