MiscClient

waterOverrideSetStrength

WATER_OVERRIDE_SET_STRENGTH0xC54A08C85AE4D410

The GTA V native WATER_OVERRIDE_SET_STRENGTH of the MISC namespace, as LS:MP client scripts call it: the global function waterOverrideSetStrength, in JavaScript and in Lua.

SignatureJavaScript
waterOverrideSetStrength(strength: number): void
SignatureLua
waterOverrideSetStrength(strength: number)

Usage

JavaScript
waterOverrideSetStrength(strength);
Lua
waterOverrideSetStrength(strength)

Parameters

ParameterTypeJavaScriptLua
strengthfloatnumbernumber

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.

This seems to edit the water wave, intensity around your current location.

0.0f = Normal
1.0f = So Calm and Smooth, a boat will stay still.
3.0f = Really Intense.

Reference

Namespace
Misc MISC
In the game
void WATER_OVERRIDE_SET_STRENGTH(float strength)
Hash
0xC54A08C85AE4D410

Open in the interactive natives reference