setVehicleAiCanUseExclusiveSeats
SET_VEHICLE_AI_CAN_USE_EXCLUSIVE_SEATS0x41062318F23ED854The GTA V native SET_VEHICLE_AI_CAN_USE_EXCLUSIVE_SEATS of the VEHICLE namespace, as LS:MP client scripts call it: the global function setVehicleAiCanUseExclusiveSeats, in JavaScript and in Lua.
setVehicleAiCanUseExclusiveSeats(vehicle: Vehicle, toggle: boolean): voidsetVehicleAiCanUseExclusiveSeats(vehicle: Vehicle, toggle: boolean)Usage
JavaScript
setVehicleAiCanUseExclusiveSeats(vehicle, toggle);Lua
setVehicleAiCanUseExclusiveSeats(vehicle, toggle)Parameters
| Parameter | Type | JavaScript | Lua |
|---|---|---|---|
vehicle | 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.
Toggles a flag related to setVehicleExclusiveDriver, however, doesn't enable that feature (or trigger script events related to it).
Reference
- Namespace
- Vehicle VEHICLE
- In the game
void SET_VEHICLE_AI_CAN_USE_EXCLUSIVE_SEATS(Vehicle vehicle, BOOL toggle)- Hash
0x41062318F23ED854