---
title: "GetPlayerSurfingVehicleID | open.mp"
description: "Obtenha o ID do veículo que o jogador está navegando (preso no teto)."
canonical: https://omp.itsneufox.com/pt-BR/docs/scripting/functions/GetPlayerSurfingVehicleID
language: pt-BR
---

# GetPlayerSurfingVehicleID

## Descrição

Obtenha o ID do veículo que o jogador está navegando (preso no teto).

| Nome | Descrição |
| --- | --- |
| playerid | O ID do jogador que você deseja conhecer o veículo de surf ID. |

## Retornos

O ID do veículo que o jogador está navegando. Se eles não estiverem navegando em um veículo ou se o veículo em que estão navegando não tiver motorista, `INVALID_VEHICLE_ID`.

Se o jogador especificado não estiver conectado, `INVALID_VEHICLE_ID` também.

## Exemplos

```c
new surfingVehicleId = GetPlayerSurfingVehicleID(playerid);
if (surfingVehicleId == INVALID_VEHICLE_ID)
{
	SendClientMessage(playerid, COLOR_RED, "You are not surfing.");
}
```

## Funções Relacionadas

-   [GetPlayerVehicleID](https://omp.itsneufox.com/pt-BR/docs/scripting/functions/GetPlayerVehicleID): Obtenha o ID do veículo em que o jogador está.
-   [GetPlayerVehicleSeat](https://omp.itsneufox.com/pt-BR/docs/scripting/functions/GetPlayerVehicleSeat): Verifique em que lugar o jogador está.
-   [GetPlayerSurfingObjectID](https://omp.itsneufox.com/pt-BR/docs/scripting/functions/GetPlayerSurfingObjectID): Obtém o ID do objeto em que o jogador está navegando.
-   [GetPlayerSurfingOffsets](https://omp.itsneufox.com/pt-BR/docs/scripting/functions/GetPlayerSurfingOffsets): Obtém as compensações de surf de um jogador.
