PedClient

isPedOnSpecificVehicle

IS_PED_ON_SPECIFIC_VEHICLE0xEC5F66E459AF3BB2

The GTA V native IS_PED_ON_SPECIFIC_VEHICLE of the PED namespace, as LS:MP client scripts call it: the global function isPedOnSpecificVehicle, in JavaScript and in Lua.

SignatureJavaScript
isPedOnSpecificVehicle(ped: Ped, vehicle: Vehicle): boolean
SignatureLua
isPedOnSpecificVehicle(ped: Ped, vehicle: Vehicle): boolean

Usage

JavaScript
const result = isPedOnSpecificVehicle(ped, vehicle);
Lua
local result = isPedOnSpecificVehicle(ped, vehicle)

Parameters

ParameterTypeJavaScriptLua
pedPednumberinteger
vehicleVehiclenumberinteger

Returns

BOOL JavaScript boolean, Lua boolean

Reference

Namespace
Ped PED
In the game
BOOL IS_PED_ON_SPECIFIC_VEHICLE(Ped ped, Vehicle vehicle)
Hash
0xEC5F66E459AF3BB2

Open in the interactive natives reference