AudioClient

setVehicleBoostActive

SET_VEHICLE_BOOST_ACTIVE0x4A04DE7CAB2739A1

The GTA V native SET_VEHICLE_BOOST_ACTIVE of the AUDIO namespace, as LS:MP client scripts call it: the global function setVehicleBoostActive, in JavaScript and in Lua.

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

Usage

JavaScript
setVehicleBoostActive(vehicle, toggle);
Lua
setVehicleBoostActive(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.

setVehicleBoostActive(vehicle, 1, 0);
setVehicleBoostActive(vehicle, 0, 0);

Will give a boost-soundeffect.

Reference

Namespace
Audio AUDIO
In the game
void SET_VEHICLE_BOOST_ACTIVE(Vehicle vehicle, BOOL toggle)
Hash
0x4A04DE7CAB2739A1

Open in the interactive natives reference