Native referenceFiveM

GET_WATER_HEIGHT

0xF6829842C06AE524 WATER
FUNCTION SIGNATURE
BOOL GET_WATER_HEIGHT(float x, float y, float z, float* height);
Property Value
Native Name GET_WATER_HEIGHT
Hash 0xF6829842C06AE524
Return Type BOOL
Parameters x (float), y (float), z (float), height (float*)

Description: 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.

Parameters

  • x (float) — The coordinate at which to test at for water.
  • y (float) — The coordinate at which to test at for water.
  • z (float) — The coordinate at which to test at for water.
  • height (float*) — The height at which to test at for water.
Back to WATER