IS_PED_SITTING_IN_ANY_VEHICLE
Detect if ped is in any vehicle [True/False]
Hash
0x826AA586EDB9FEF8Runtime name
IsPedSittingInAnyVehicleNamespacePED
SideClient
NameOfficial
Docs
Since build1207
GTA V hash
0x826AA586EDB9FEF8Signature
BOOL IS_PED_SITTING_IN_ANY_VEHICLE(Ped ped);Parameters
| Name | Type | Description |
|---|---|---|
ped | Ped | — |
Returns BOOL
Description
Detect if ped is in any vehicle
[True/False]
Usage
local retval = IsPedSittingInAnyVehicle(ped)
-- always works, by hash
local retval = Citizen.InvokeNative(0x826AA586EDB9FEF8, ped, Citizen.ReturnResultAnyway())JavaScript and C#
const retval = IsPedSittingInAnyVehicle(ped);
// by hash
const retval = Citizen.invokeNative('0x826AA586EDB9FEF8', ped, Citizen.returnResultAnyway());bool retval = Function.Call<bool>((Hash)0x826AA586EDB9FEF8, ped);Sources
Something wrong or missing? Contribute a verified note — corrections ship through pull requests.