isPedOnSpecificVehicle
IS_PED_ON_SPECIFIC_VEHICLE0xEC5F66E459AF3BB2The 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.
isPedOnSpecificVehicle(ped: Ped, vehicle: Vehicle): booleanisPedOnSpecificVehicle(ped: Ped, vehicle: Vehicle): booleanUsage
JavaScript
const result = isPedOnSpecificVehicle(ped, vehicle);Lua
local result = isPedOnSpecificVehicle(ped, vehicle)Parameters
| Parameter | Type | JavaScript | Lua |
|---|---|---|---|
ped | Ped | number | integer |
vehicle | Vehicle | number | integer |
Returns
BOOL JavaScript boolean, Lua booleanReference
- Namespace
- Ped PED
- In the game
BOOL IS_PED_ON_SPECIFIC_VEHICLE(Ped ped, Vehicle vehicle)- Hash
0xEC5F66E459AF3BB2