_IS_PED_EXCLUSIVE_DRIVER_OF_VEHICLE
Hash
0xB213D2A560B2E48BRuntime name
IsPedExclusiveDriverOfVehicleNamespaceVEHICLE
SideClient
NameCommunity guess
Docs
Since build1207
Signature
BOOL _IS_PED_EXCLUSIVE_DRIVER_OF_VEHICLE(Ped ped, Vehicle vehicle, int* outIndex);Parameters
| Name | Type | Description |
|---|---|---|
ped | Ped | — |
vehicle | Vehicle | — |
outIndex | int* | — |
Returns BOOL
Usage
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#
const [retval, outIndex] = IsPedExclusiveDriverOfVehicle(ped, vehicle, outIndex);
// by hash
const [retval, outIndex] = Citizen.invokeNative('0xB213D2A560B2E48B', ped, vehicle, Citizen.pointerValueIntInitialized(outIndex), Citizen.returnResultAnyway());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
InvokeNativewith the hash — it always works.
Sources
Something wrong or missing? Contribute a verified note — corrections ship through pull requests.