The Lab
PED native

IS_PED_IN_VEHICLE

returns BOOL3 paramsbuild 1207

Returns true if ped is in vehicle; atGetIn also counts peds that are still getting in.

Signature

C
BOOL IS_PED_IN_VEHICLE(Ped ped, Vehicle vehicle, BOOL atGetIn); // 0xA3EE4A07279BB9DB b1207

Parameters

#NameType
1pedPed
2vehicleVehicle
3atGetInBOOL

Facts

Facts about IS_PED_IN_VEHICLE
Name
IS_PED_IN_VEHICLE
Hash
0xA3EE4A07279BB9DB
Namespace
Returns
BOOL
Game build
1207

Examples

Calls by hash work in every RedM runtime. Replace the placeholder arguments with your own values.

Lua
local result = Citizen.InvokeNative(0xA3EE4A07279BB9DB, -- IS_PED_IN_VEHICLE
  PlayerPedId(), -- Ped ped
  0, -- Vehicle vehicle
  false -- BOOL atGetIn
)
if result then
  -- ...
end
JavaScript
const result = Citizen.invokeNative("0xA3EE4A07279BB9DB", // IS_PED_IN_VEHICLE
  PlayerPedId(), // Ped ped
  0, // Vehicle vehicle
  false, // BOOL atGetIn
  Citizen.returnResultAnyway()
);
if (result) {
  // ...
}
C#
bool result = Function.Call<bool>((Hash)0xA3EE4A07279BB9DB, // IS_PED_IN_VEHICLE
  API.PlayerPedId(), // Ped ped
  0, // Vehicle vehicle
  false // BOOL atGetIn
);
All PED natives

Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.