setVehicleAllowNoPassengersLockon
SET_VEHICLE_ALLOW_NO_PASSENGERS_LOCKON0x5D14D4154BFE7B2CThe GTA V native SET_VEHICLE_ALLOW_NO_PASSENGERS_LOCKON of the VEHICLE namespace, as LS:MP client scripts call it: the global function setVehicleAllowNoPassengersLockon, in JavaScript and in Lua.
setVehicleAllowNoPassengersLockon(veh: Vehicle, toggle: boolean): voidsetVehicleAllowNoPassengersLockon(veh: Vehicle, toggle: boolean)Usage
JavaScript
setVehicleAllowNoPassengersLockon(veh, toggle);Lua
setVehicleAllowNoPassengersLockon(veh, toggle)Parameters
| Parameter | Type | JavaScript | Lua |
|---|---|---|---|
veh | Vehicle | number | integer |
toggle | BOOL | boolean | boolean |
Returns
Nothing. In JavaScript the call evaluates to undefined.
Notes
From the community native database. Names are LS:MP’s; samples may be written for C++ or another framework.
Makes the vehicle accept no passengers.
Reference
- Namespace
- Vehicle VEHICLE
- In the game
void SET_VEHICLE_ALLOW_NO_PASSENGERS_LOCKON(Vehicle veh, BOOL toggle)- Hash
0x5D14D4154BFE7B2C