---
title: "GetPlayerGhostMode | open.mp"
description: "Obtenha o modo fantasma do jogador."
canonical: https://omp.itsneufox.com/pt-BR/docs/scripting/functions/GetPlayerGhostMode
language: pt-BR
---

# GetPlayerGhostMode

aviso

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

## Descrição

Obtenha o modo fantasma do jogador.

| Nome | Descrição |
| --- | --- |
| playerid | O ID do jogador para obter o modo fantasma. |

## Retornos

**true** - O modo fantasma está ativado.

**false** - O modo fantasma está desativado.

## Exemplos

```c
new string[64];
format(string, sizeof(string), "Your ghost mode is %s", GetPlayerGhostMode(playerid) == true ? "enable" : "disable");
SendClientMessage(playerid, -1, string);
```

## Funções Relacionadas

-   [TogglePlayerGhostMode](https://omp.itsneufox.com/pt-BR/docs/scripting/functions/TogglePlayerGhostMode): Alterna o modo fantasma do jogador.
