20/05/2023 15:58
Existe essa função nativa:
https://www.open.mp/pt-BR/docs/scripting...gVehicleID
Não sei se ela funciona corretamente.
https://www.open.mp/pt-BR/docs/scripting...gVehicleID
Não sei se ela funciona corretamente.
Código:
new surfingVehicleId = GetPlayerSurfingVehicleID(playerid);
if (surfingVehicleId == INVALID_VEHICLE_ID)
{
SendClientMessage(playerid, COLOR_RED, "Voce nao esta surfando");
}else
{
SendClientMessage(playerid, COLOR_RED, "Voce esta surfando");
}