The Lab
VEHICLE native

_IS_PED_EXCLUSIVE_DRIVER_OF_VEHICLE

returns BOOL3 paramsbuild 1207

Returns true if ped is an exclusive driver of vehicle, writing the slot index to outIndex.

Signature

C
BOOL _IS_PED_EXCLUSIVE_DRIVER_OF_VEHICLE(Ped ped, Vehicle vehicle, int* outIndex); // 0xB213D2A560B2E48B b1207

Parameters

#NameType
1pedPed
2vehicleVehicle
3outIndexint* (out pointer)

Facts

Facts about _IS_PED_EXCLUSIVE_DRIVER_OF_VEHICLE
Name
_IS_PED_EXCLUSIVE_DRIVER_OF_VEHICLE
Hash
0xB213D2A560B2E48B
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, outIndex = Citizen.InvokeNative(0xB213D2A560B2E48B, -- _IS_PED_EXCLUSIVE_DRIVER_OF_VEHICLE
  PlayerPedId(), -- Ped ped
  0, -- Vehicle vehicle
  Citizen.PointerValueInt(), -- int* outIndex
  Citizen.ReturnResultAnyway()
)
if result then
  -- ...
end
JavaScript
const [result, outIndex] = Citizen.invokeNative("0xB213D2A560B2E48B", // _IS_PED_EXCLUSIVE_DRIVER_OF_VEHICLE
  PlayerPedId(), // Ped ped
  0, // Vehicle vehicle
  Citizen.pointerValueInt(), // int* outIndex
  Citizen.returnResultAnyway()
);
if (result) {
  // ...
}
C#
var outIndexArg = new OutputArgument();
bool result = Function.Call<bool>((Hash)0xB213D2A560B2E48B, // _IS_PED_EXCLUSIVE_DRIVER_OF_VEHICLE
  API.PlayerPedId(), // Ped ped
  0, // Vehicle vehicle
  outIndexArg // int* outIndex
);
int outIndex = outIndexArg.GetResult<int>();
All VEHICLE natives

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