---
title: "DeletePlayer3DTextLabel | open.mp"
description: "Apaga um texto 3D criado com CreatePlayer3DTextLabel."
canonical: https://omp.itsneufox.com/pt-BR/docs/scripting/functions/DeletePlayer3DTextLabel
language: pt-BR
---

# DeletePlayer3DTextLabel

## descrição

Apaga um texto 3D criado com [CreatePlayer3DTextLabel](https://omp.itsneufox.com/pt-BR/docs/scripting/functions/CreatePlayer3DTextLabel).

| Nome | Descrição |
| --- | --- |
| playerid | ID do jogador cujo texto 3D será apagado. |
| PlayerText3D:textid | ID do texto 3D do jogador a apagar. |

## retorno

**true** - A função executou com sucesso.

**false** - A função falhou, o que significa que o texto especificado não existe.

## exemplo

```c
new PlayerText3D:playerTextId[MAX_PLAYERS];

public OnPlayerSpawn(playerid)
{
    new
        name[MAX_PLAYER_NAME],
        Float:x, Float:y, Float:z,
        string[64];

    GetPlayerName(playerid, name, sizeof(name));
    GetPlayerPos(playerid, x, y, z);

    format(string, sizeof(string), "Olá %s!\nEstou na tua posição", name);
    playerTextId[playerid] = CreatePlayer3DTextLabel(playerid, string, 0x008080FF, x, y, z, 40.0);
    return 1;
}

public OnPlayerDisconnect(playerid, reason)
{
    DeletePlayer3DTextLabel(playerid, playerTextId[playerid]);
    return 1;
}
```

## funções relacionadas

-   [Create3DTextLabel](https://omp.itsneufox.com/pt-BR/docs/scripting/functions/Create3DTextLabel): Criar um texto 3D.
-   [Attach3DTextLabelToPlayer](https://omp.itsneufox.com/pt-BR/docs/scripting/functions/Attach3DTextLabelToPlayer): Anexa um texto 3D a um jogador.
-   [Attach3DTextLabelToVehicle](https://omp.itsneufox.com/pt-BR/docs/scripting/functions/Attach3DTextLabelToVehicle): Anexa um texto 3D a um veículo.
-   [Update3DTextLabelText](https://omp.itsneufox.com/pt-BR/docs/scripting/functions/Update3DTextLabelText): Muda o texto de um texto 3D.
-   [CreatePlayer3DTextLabel](https://omp.itsneufox.com/pt-BR/docs/scripting/functions/CreatePlayer3DTextLabel): Criar um texto 3D para um jogador.
-   [UpdatePlayer3DTextLabelText](https://omp.itsneufox.com/pt-BR/docs/scripting/functions/UpdatePlayer3DTextLabelText): Muda o texto de um texto 3D de um jogador.
-   [IsValidPlayer3DTextLabel](https://omp.itsneufox.com/pt-BR/docs/scripting/functions/IsValidPlayer3DTextLabel): Verifica se um texto 3D de jogador é válido.
