---
title: "GetPlayer3DTextLabelColour | open.mp"
description: "Obtém a cor do rótulo de texto 3D do jogador."
canonical: https://omp.itsneufox.com/pt-BR/docs/scripting/functions/GetPlayer3DTextLabelColour
language: pt-BR
---

# GetPlayer3DTextLabelColour

aviso

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

## Descrição

Obtém a cor do rótulo de texto 3D do jogador.

| Nome | Descrição |
| --- | --- |
| playerid | O ID do jogador. |
| PlayerText3D:textid | O ID do rótulo de texto 3D do jogador para obter a cor. |

## Retornos

Retorna a cor do rótulo do texto 3D do jogador.

## Exemplos

```c
new PlayerText3D:playerTextId;
new Float:x, Float:y, Float:z;
new colour;

GetPlayerPos(playerid, x, y, z);
playerTextId = CreatePlayer3DTextLabel(playerid, "Hello\nI'm at your position", 0x008080FF, x, y, z, 40.0);

colour = GetPlayer3DTextLabelColour(playerid, playerTextId);
// cor = 0x008080FF
```

## Funções Relacionadas

-   [Get3DTextLabelColour](https://omp.itsneufox.com/pt-BR/docs/scripting/functions/Get3DTextLabelColour): Obtém a cor do rótulo do texto 3D.
