VehicleClient

setVehicleAiCanUseExclusiveSeats

SET_VEHICLE_AI_CAN_USE_EXCLUSIVE_SEATS0x41062318F23ED854

The 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.

SignatureJavaScript
setVehicleAiCanUseExclusiveSeats(vehicle: Vehicle, toggle: boolean): void
SignatureLua
setVehicleAiCanUseExclusiveSeats(vehicle: Vehicle, toggle: boolean)

Usage

JavaScript
setVehicleAiCanUseExclusiveSeats(vehicle, toggle);
Lua
setVehicleAiCanUseExclusiveSeats(vehicle, toggle)

Parameters

ParameterTypeJavaScriptLua
vehicleVehiclenumberinteger
toggleBOOLbooleanboolean

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

Open in the interactive natives reference