_IS_PED_EXCLUSIVE_DRIVER_OF_VEHICLE
Returns true if ped is an exclusive driver of vehicle, writing the slot index to outIndex.
Signature
BOOL _IS_PED_EXCLUSIVE_DRIVER_OF_VEHICLE(Ped ped, Vehicle vehicle, int* outIndex); // 0xB213D2A560B2E48B b1207Parameters
| # | Name | Type |
|---|---|---|
| 1 | ped | Ped |
| 2 | vehicle | Vehicle |
| 3 | outIndex | int* (out pointer) |
Facts
| 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.
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
-- ...
endconst [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) {
// ...
}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>();Related VEHICLE natives
- GET_DRIVER_OF_VEHICLE
- SET_VEHICLE_EXCLUSIVE_DRIVER
- _IS_THIS_MODEL_A_DRAFT_VEHICLE
- _IS_VEHICLE_BROUGHT_TO_HALT
- _IS_VEHICLE_DOOR_BROKEN
- _IS_VEHICLE_FADING_OUT
- _IS_VEHICLE_ON_FIRE
- _IS_VEHICLE_TOUCHING_VEGETATION
- _IS_VEHICLE_WHEEL_DESTROYED
- _ATTACH_DRAFT_VEHICLE_HARNESS_PED
- _DETACH_DRAFT_VEHICLE_HARNESS_PED
- _GET_NUM_DRAFT_VEHICLE_HARNESS_PED
Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.