WaterClient

setDeepOceanScaler

SET_DEEP_OCEAN_SCALER0xB96B00E976BE977F

The GTA V native SET_DEEP_OCEAN_SCALER of the WATER namespace, as LS:MP client scripts call it: the global function setDeepOceanScaler, in JavaScript and in Lua.

SignatureJavaScript
setDeepOceanScaler(intensity: number): void
SignatureLua
setDeepOceanScaler(intensity: number)

Usage

JavaScript
setDeepOceanScaler(intensity);
Lua
setDeepOceanScaler(intensity)

Parameters

ParameterTypeJavaScriptLua
intensityfloatnumbernumber

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.

Sets a value that determines how aggressive the ocean waves will be. Values of 2.0 or more make for very aggressive waves like you see during a thunderstorm.

Works only ~200 meters around the player.

Reference

Namespace
Water WATER
In the game
void SET_DEEP_OCEAN_SCALER(float intensity)
Hash
0xB96B00E976BE977F
Formerly
_SET_WAVES_INTENSITY _SET_CURRENT_INTENSITY

Open in the interactive natives reference