---
title: "PlayerTextDrawSetOutline | open.mp"
description: "Defina o contorno de um player-textdraw."
canonical: https://omp.itsneufox.com/pt-BR/docs/scripting/functions/PlayerTextDrawSetOutline
language: pt-BR
---

# PlayerTextDrawSetOutline

## Descrição

Defina o contorno de um player-textdraw. A cor do contorno não pode ser alterada a menos que [PlayerTextDrawBackgroundColor](https://omp.itsneufox.com/pt-BR/docs/scripting/functions/PlayerTextDrawBackgroundColor) seja usado.

| Nome | Descrição |
| --- | --- |
| playerid | O ID do jogador cujo player-textdraw definirá o contorno de |
| PlayerText:textid | O ID do player-textdraw para definir o contorno de |
| outlineSize | A espessura do contorno. |

## Retornos

Esta função não retorna nenhum valor específico.

## Exemplos

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

public OnPlayerConnect(playerid)
{
    welcomeText[playerid] = CreatePlayerTextDraw(playerid, 320.0, 240.0, "Welcome to my server!");
    PlayerTextDrawSetOutline(playerid, welcomeText[playerid], 1);

    PlayerTextDrawShow(playerid, welcomeText[playerid]);
    return 1;
}
```

## Funções Relacionadas

-   [CreatePlayerTextDraw](https://omp.itsneufox.com/pt-BR/docs/scripting/functions/CreatePlayerTextDraw): Crie um player-textdraw.
-   [PlayerTextDrawDestroy](https://omp.itsneufox.com/pt-BR/docs/scripting/functions/PlayerTextDrawDestroy): Destrua um player-textdraw.
-   [PlayerTextDrawGetOutline](https://omp.itsneufox.com/pt-BR/docs/scripting/functions/PlayerTextDrawGetOutline): Obtenha o tamanho do contorno em um player-textdraw.
-   [PlayerTextDrawColor](https://omp.itsneufox.com/pt-BR/docs/scripting/functions/PlayerTextDrawColor): Defina a cor do texto em um player-textdraw.
-   [PlayerTextDrawBoxColor](https://omp.itsneufox.com/pt-BR/docs/scripting/functions/PlayerTextDrawBoxColor): Define a cor da caixa do player-textdraw.
-   [PlayerTextDrawBackgroundColor](https://omp.itsneufox.com/pt-BR/docs/scripting/functions/PlayerTextDrawBackgroundColor): Defina a cor de fundo de um player-textdraw.
-   [PlayerTextDrawAlignment](https://omp.itsneufox.com/pt-BR/docs/scripting/functions/PlayerTextDrawAlignment): Define o alinhamento de um player-textdraw.
-   [PlayerTextDrawFont](https://omp.itsneufox.com/pt-BR/docs/scripting/functions/PlayerTextDrawFont): Define a fonte de um player-textdraw.
-   [PlayerTextDrawLetterSize](https://omp.itsneufox.com/pt-BR/docs/scripting/functions/PlayerTextDrawLetterSize): Defina o tamanho da letra do texto em um player-textdraw.
-   [PlayerTextDrawTextSize](https://omp.itsneufox.com/pt-BR/docs/scripting/functions/PlayerTextDrawTextSize): Defina o tamanho de uma caixa de desenho de texto do jogador (ou área clicável para PlayerTextDrawSetSelectable).
-   [PlayerTextDrawSetShadow](https://omp.itsneufox.com/pt-BR/docs/scripting/functions/PlayerTextDrawSetShadow): Defina a sombra em um player-textdraw.
-   [PlayerTextDrawSetProportional](https://omp.itsneufox.com/pt-BR/docs/scripting/functions/PlayerTextDrawSetProportional): Dimensione o espaçamento do texto em um player-textdraw para uma proporção proporcional.
-   [PlayerTextDrawUseBox](https://omp.itsneufox.com/pt-BR/docs/scripting/functions/PlayerTextDrawUseBox): Ative a caixa em um player-textdraw.
-   [PlayerTextDrawSetString](https://omp.itsneufox.com/pt-BR/docs/scripting/functions/PlayerTextDrawSetString): Define o texto de um player-textdraw.
-   [PlayerTextDrawShow](https://omp.itsneufox.com/pt-BR/docs/scripting/functions/PlayerTextDrawShow): Mostra um desenho de texto do jogador.
-   [PlayerTextDrawHide](https://omp.itsneufox.com/pt-BR/docs/scripting/functions/PlayerTextDrawHide): Ocultar um player-textdraw.
