PedClient

isPedSittingInAnyVehicle

IS_PED_SITTING_IN_ANY_VEHICLE0x826AA586EDB9FEF8

The 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.

SignatureJavaScript
isPedSittingInAnyVehicle(ped: Ped): boolean
SignatureLua
isPedSittingInAnyVehicle(ped: Ped): boolean

Usage

JavaScript
const result = isPedSittingInAnyVehicle(ped);
Lua
local result = isPedSittingInAnyVehicle(ped)

Parameters

ParameterTypeJavaScriptLua
pedPednumberinteger

Returns

BOOL JavaScript boolean, Lua boolean

Notes

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

Open in the interactive natives reference