setVariableOnUnderWaterStream
SET_VARIABLE_ON_UNDER_WATER_STREAM0x733ADF241531E5C2The 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.
setVariableOnUnderWaterStream(variableName: string, value: number): voidsetVariableOnUnderWaterStream(variableName: string, value: number)Usage
JavaScript
setVariableOnUnderWaterStream(variableName, value);Lua
setVariableOnUnderWaterStream(variableName, value)Parameters
| Parameter | Type | JavaScript | Lua |
|---|---|---|---|
variableName | string | string | string |
value | float | number | number |
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