AudioClientNot in this build

enableDragRaceStationaryWarningSounds

_ENABLE_DRAG_RACE_STATIONARY_WARNING_SOUNDS0xBEFB80290414FD4F

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

SignatureJavaScript
enableDragRaceStationaryWarningSounds(vehicle: Vehicle, enable: boolean): void
SignatureLua
enableDragRaceStationaryWarningSounds(vehicle: Vehicle, enable: boolean)
⚠
Not in this game build

The global exists, but the native is not part of the game build LS:MP runs: calling it does nothing and returns undefined in JavaScript, nil in Lua. It never throws. See Coverage.

Usage

JavaScript
enableDragRaceStationaryWarningSounds(vehicle, enable);
Lua
enableDragRaceStationaryWarningSounds(vehicle, enable)

Parameters

ParameterTypeJavaScriptLua
vehicleVehiclenumberinteger
enableBOOLbooleanboolean

Returns

Nothing. In JavaScript the call evaluates to undefined.

Reference

Namespace
Audio AUDIO
In the game
void _ENABLE_DRAG_RACE_STATIONARY_WARNING_SOUNDS(Vehicle vehicle, BOOL enable)
Hash
0xBEFB80290414FD4F
Introduced
Game build 3095 legacy numbering

Open in the interactive natives reference