IS_PED_IN_ANY_VEHICLE
Returns true if ped is in any vehicle; atGetIn also counts peds that are still getting in.
Signature
BOOL IS_PED_IN_ANY_VEHICLE(Ped ped, BOOL atGetIn); // 0x997ABD671D25CA0B b1207Parameters
| # | Name | Type |
|---|---|---|
| 1 | ped | Ped |
| 2 | atGetIn | BOOL |
Facts
| Name | IS_PED_IN_ANY_VEHICLE |
|---|---|
| Hash | 0x997ABD671D25CA0B |
| Namespace | |
| Returns | BOOL |
| Game build | 1207 |
Examples
Calls by hash work in every RedM runtime. Replace the placeholder arguments with your own values.
local result = Citizen.InvokeNative(0x997ABD671D25CA0B, -- IS_PED_IN_ANY_VEHICLE
PlayerPedId(), -- Ped ped
false -- BOOL atGetIn
)
if result then
-- ...
endconst result = Citizen.invokeNative("0x997ABD671D25CA0B", // IS_PED_IN_ANY_VEHICLE
PlayerPedId(), // Ped ped
false, // BOOL atGetIn
Citizen.returnResultAnyway()
);
if (result) {
// ...
}bool result = Function.Call<bool>((Hash)0x997ABD671D25CA0B, // IS_PED_IN_ANY_VEHICLE
API.PlayerPedId(), // Ped ped
false // BOOL atGetIn
);Related PED natives
Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.