class Water
package fivem.client.natives
Static methods
staticaddExtraCalmingQuad(xLow:Float, yLow:Float, xHigh:Float, yHigh:Float, height:Float):Int
Only 8 current rises can exist. If rises need to be changed, use REMOVE_EXTRA_CALMING_QUAD and then ADD_EXTRA_CALMING_QUAD again. After removing a rise, you will be able to add a rise again.
staticgetWaterHeight(x:Float, y:Float, z:Float, height:Dynamic):Bool
Retrieves the depth of the water beneath the specified position, accounting for the waves.
*
* **Note:** The result might vary depending on the specific frame when this command is executed due to wave fluctuations.
staticgetWaterHeightNoWaves(x:Float, y:Float, z:Float, height:Dynamic):Bool
Retrieves the depth of the water beneath the specified position, disregarding wave effects.
*
* **Note:** The result remains consistent across different frames as it doesn't consider wave fluctuations.
staticmodifyWater(x:Float, y:Float, height:Float, radius:Float):Dynamic
Sets the water height for a given position and radius. staticsetDeepOceanScaler(intensity:Float):Dynamic
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. statictestProbeAgainstAllWater(x1:Float, y1:Float, z1:Float, x2:Float, y2:Float, z2:Float, flag:Int, result:Dynamic):Bool
Flags are identical to START_SHAPE_TEST*, however, 128 is automatically set.