VehicleClient

setVehicleActiveDuringPlayback

SET_VEHICLE_ACTIVE_DURING_PLAYBACK0xDFFCEF48E511DB48

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

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

Usage

JavaScript
setVehicleActiveDuringPlayback(vehicle, toggle);
Lua
setVehicleActiveDuringPlayback(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_ACTIVE_DURING_PLAYBACK(Vehicle vehicle, BOOL toggle)
Hash
0xDFFCEF48E511DB48

Open in the interactive natives reference