---
title: "Attach3DTextLabelToPlayer | open.mp"
description: "Anexa uma text label 3D a um jogador."
canonical: https://omp.itsneufox.com/pt-BR/docs/scripting/functions/Attach3DTextLabelToPlayer
language: pt-BR
---

# Attach3DTextLabelToPlayer

## Descrição

Anexa uma text label 3D a um jogador.

| Nome | Descrição |
| --- | --- |
| Text3D:textid | O ID da text label 3D a ser anexada. Retornado por Create3DTextLabel. |
| playerid | O ID do jogador ao qual deseja anexar a text label 3D. |
| OffsetX | O deslocamento (offset) X da text label 3D até ao jogador. |
| OffsetY | O deslocamento (offset) Y da text label 3D até ao jogador. |
| OffsetZ | O deslocamento (offset) Z da text label 3D até ao jogador. |

## Retorno

1: A função foi executada com sucesso.

0: A função falhou ao ser executada. Isso significa que o jogador e/ou TextLabel 3D não existe.

## Exemplos

```c
public OnPlayerConnect(playerid)
{
    new Text3D:textLabel = Create3DTextLabel("Olá, eu sou novo aqui!", 0x008080FF, 30.0, 40.0, 50.0, 40.0, 0);
    Attach3DTextLabelToPlayer(textLabel, playerid, 0.0, 0.0, 0.7);
    return 1;
}
```

## Funções Relacionadas

-   [Create3DTextLabel](https://omp.itsneufox.com/pt-BR/docs/scripting/functions/Create3DTextLabel): Cria uma text label 3D.
-   [Delete3DTextLabel](https://omp.itsneufox.com/pt-BR/docs/scripting/functions/Delete3DTextLabel): Apaga uma text label 3D.
-   [Attach3DTextLabelToVehicle](https://omp.itsneufox.com/pt-BR/docs/scripting/functions/Attach3DTextLabelToVehicle): Anexa uma text label 3D a um veículo.
-   [Update3DTextLabelText](https://omp.itsneufox.com/pt-BR/docs/scripting/functions/Update3DTextLabelText): Muda o texto de uma text label 3D.
-   [CreatePlayer3DTextLabel](https://omp.itsneufox.com/pt-BR/docs/scripting/functions/CreatePlayer3DTextLabel): Cria uma text label 3D para um jogador.
-   [DeletePlayer3DTextLabel](https://omp.itsneufox.com/pt-BR/docs/scripting/functions/DeletePlayer3DTextLabel): Apaga uma text label 3D de um jogador.
-   [UpdatePlayer3DTextLabelText](https://omp.itsneufox.com/pt-BR/docs/scripting/functions/UpdatePlayer3DTextLabelText): Muda o texto de uma text label 3D de um jogador.
