---
title: "TextDrawHideForAll | open.mp"
description: "Oculta um sorteio de texto para todos os jogadores."
canonical: https://omp.itsneufox.com/pt-BR/docs/scripting/functions/TextDrawHideForAll
language: pt-BR
---

# TextDrawHideForAll

## Descrição

Oculta um sorteio de texto para todos os jogadores.

| Nome | Descrição |
| --- | --- |
| Text:textid | O ID do textdraw a ser ocultado.  
Returned por [TextDrawCreate](https://omp.itsneufox.com/pt-BR/docs/scripting/functions/TextDrawCreate). |

## Retornos

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

## Exemplos

```c
new Text:gMyTextdraw;

public OnGameModeInit()
{
    gMyTextdraw = TextDrawCreate(240.0, 580.0, "Example Text");
    return 1;
}

public OnPlayerCommandText(playerid, cmdtext[])
{
    if (!strcmp(cmdtext, "/showtd", true))
    {
        TextDrawShowForAll(gMyTextdraw);
        return 1;
    }
    if (!strcmp(cmdtext, "/hidetd", true))
    {
        TextDrawHideForAll(gMyTextdraw);
        return 1;
    }
    return 0;
}
```

## Funções Relacionadas

-   [TextDrawShowForPlayer](https://omp.itsneufox.com/pt-BR/docs/scripting/functions/TextDrawShowForPlayer): Mostra um textdraw para um determinado jogador.
-   [TextDrawHideForPlayer](https://omp.itsneufox.com/pt-BR/docs/scripting/functions/TextDrawHideForPlayer): Oculta um textdraw para um determinado jogador.
-   [TextDrawShowForAll](https://omp.itsneufox.com/pt-BR/docs/scripting/functions/TextDrawShowForAll): Mostra um textdraw para todos os jogadores.
