VehicleClient

setDisablePretendOccupants

SET_DISABLE_PRETEND_OCCUPANTS0x25367DE49D64CF16

The GTA V native SET_DISABLE_PRETEND_OCCUPANTS of the VEHICLE namespace, as LS:MP client scripts call it: the global function setDisablePretendOccupants, in JavaScript and in Lua.

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

Usage

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

Parameters

ParameterTypeJavaScriptLua
vehicleVehiclenumberinteger
toggleBOOLbooleanboolean

Returns

Nothing. In JavaScript the call evaluates to undefined.

Reference

Namespace
Vehicle VEHICLE
In the game
void SET_DISABLE_PRETEND_OCCUPANTS(Vehicle vehicle, BOOL toggle)
Hash
0x25367DE49D64CF16

Open in the interactive natives reference