VehicleClient

setVehicleInactiveDuringPlayback

SET_VEHICLE_INACTIVE_DURING_PLAYBACK0x06582AFF74894C75

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

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

Usage

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

Parameters

ParameterTypeJavaScriptLua
vehicleVehiclenumberinteger
toggleBOOLbooleanboolean

Returns

Nothing. In JavaScript the call evaluates to undefined.

Reference

Namespace
Vehicle VEHICLE
In the game
void SET_VEHICLE_INACTIVE_DURING_PLAYBACK(Vehicle vehicle, BOOL toggle)
Hash
0x06582AFF74894C75

Open in the interactive natives reference