RedM Natives

SET_VEHICLE_ALLOW_NO_PASSENGERS_LOCKON

Makes the vehicle accept no passengers.

Hash0xECB9E9BC887E8060
Runtime nameSetVehicleAllowNoPassengersLockon
NamespaceVEHICLE
SideClient
NameOfficial
Docs
Since build1207
GTA V hash0x5D14D4154BFE7B2C

Signature

void SET_VEHICLE_ALLOW_NO_PASSENGERS_LOCKON(Vehicle vehicle, BOOL toggle);

Parameters

NameTypeDescription
vehicleVehicle—
toggleBOOL—

Returns void

Description

Makes the vehicle accept no passengers.

Usage

Lua
SetVehicleAllowNoPassengersLockon(vehicle, toggle)

-- always works, by hash
Citizen.InvokeNative(0xECB9E9BC887E8060, vehicle, toggle)
JavaScript and C#
JavaScript
SetVehicleAllowNoPassengersLockon(vehicle, toggle);

// by hash
Citizen.invokeNative('0xECB9E9BC887E8060', vehicle, toggle);
C#
Function.Call((Hash)0xECB9E9BC887E8060, vehicle, toggle);

Sources

alloc8or RDR3 NativeDB

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