AudioClient

setVariableOnUnderWaterStream

SET_VARIABLE_ON_UNDER_WATER_STREAM0x733ADF241531E5C2

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

SignatureJavaScript
setVariableOnUnderWaterStream(variableName: string, value: number): void
SignatureLua
setVariableOnUnderWaterStream(variableName: string, value: number)

Usage

JavaScript
setVariableOnUnderWaterStream(variableName, value);
Lua
setVariableOnUnderWaterStream(variableName, value)

Parameters

ParameterTypeJavaScriptLua
variableNamestringstringstring
valuefloatnumbernumber

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.

setVariableOnUnderWaterStream("inTunnel", 1.0);
setVariableOnUnderWaterStream("inTunnel", 0.0);

Reference

Namespace
Audio AUDIO
In the game
void SET_VARIABLE_ON_UNDER_WATER_STREAM(const char* variableName, float value)
Hash
0x733ADF241531E5C2

Open in the interactive natives reference