RedM Natives

_IS_PED_EXCLUSIVE_DRIVER_OF_VEHICLE

Hash0xB213D2A560B2E48B
Runtime nameIsPedExclusiveDriverOfVehicle
NamespaceVEHICLE
SideClient
NameCommunity guess
Docs
Since build1207

Signature

BOOL _IS_PED_EXCLUSIVE_DRIVER_OF_VEHICLE(Ped ped, Vehicle vehicle, int* outIndex);

Parameters

NameTypeDescription
pedPed—
vehicleVehicle—
outIndexint*—

Returns BOOL

Usage

Lua
local retval, outIndex = IsPedExclusiveDriverOfVehicle(ped, vehicle, outIndex)

-- always works, by hash
local retval, outIndex = Citizen.InvokeNative(0xB213D2A560B2E48B, ped, vehicle, Citizen.PointerValueIntInitialized(outIndex), Citizen.ReturnResultAnyway())
JavaScript and C#
JavaScript
const [retval, outIndex] = IsPedExclusiveDriverOfVehicle(ped, vehicle, outIndex);

// by hash
const [retval, outIndex] = Citizen.invokeNative('0xB213D2A560B2E48B', ped, vehicle, Citizen.pointerValueIntInitialized(outIndex), Citizen.returnResultAnyway());
C#
var outIndex = new OutputArgument();
bool retval = Function.Call<bool>((Hash)0xB213D2A560B2E48B, ped, vehicle, outIndex);
// outIndex.GetResult<int>()
  • The last argument is an in/out pointer: pass its initial value, and the updated value is returned after the result.
  • The name is a community guess and may change. If the named call is missing in your client build, use InvokeNative with the hash — it always works.

Sources

alloc8or RDR3 NativeDB

Something wrong or missing? Contribute a verified note — corrections ship through pull requests.