IS_PED_IN_ANY_VEHICLE
Gets a value indicating whether the specified ped is in any vehicle.
Hash
0x997ABD671D25CA0BRuntime name
IsPedInAnyVehicleNamespacePED
SideClient
NameOfficial
Docs
Since build1207
GTA V hash
0x997ABD671D25CA0BSignature
BOOL IS_PED_IN_ANY_VEHICLE(Ped ped, BOOL atGetIn);Parameters
| Name | Type | Description |
|---|---|---|
ped | Ped | — |
atGetIn | BOOL | — |
Returns BOOL
Description
Gets a value indicating whether the specified ped is in any vehicle.
Usage
local retval = IsPedInAnyVehicle(ped, atGetIn)
-- always works, by hash
local retval = Citizen.InvokeNative(0x997ABD671D25CA0B, ped, atGetIn, Citizen.ReturnResultAnyway())JavaScript and C#
const retval = IsPedInAnyVehicle(ped, atGetIn);
// by hash
const retval = Citizen.invokeNative('0x997ABD671D25CA0B', ped, atGetIn, Citizen.returnResultAnyway());bool retval = Function.Call<bool>((Hash)0x997ABD671D25CA0B, ped, atGetIn);Sources
Something wrong or missing? Contribute a verified note — corrections ship through pull requests.