isPedSittingInAnyVehicle
IS_PED_SITTING_IN_ANY_VEHICLE0x826AA586EDB9FEF8The GTA V native IS_PED_SITTING_IN_ANY_VEHICLE of the PED namespace, as LS:MP client scripts call it: the global function isPedSittingInAnyVehicle, in JavaScript and in Lua.
isPedSittingInAnyVehicle(ped: Ped): booleanisPedSittingInAnyVehicle(ped: Ped): booleanUsage
JavaScript
const result = isPedSittingInAnyVehicle(ped);Lua
local result = isPedSittingInAnyVehicle(ped)Parameters
| Parameter | Type | JavaScript | Lua |
|---|---|---|---|
ped | Ped | number | integer |
Returns
BOOL JavaScript boolean, Lua booleanNotes
From the community native database. Names are LS:MP’s; samples may be written for C++ or another framework.
Detect if ped is in any vehicle
[True/False]
Reference
- Namespace
- Ped PED
- In the game
BOOL IS_PED_SITTING_IN_ANY_VEHICLE(Ped ped)- Hash
0x826AA586EDB9FEF8