{"hash":"0xFCA8B23F28813F69","ns":"WATER","name":"GET_WATER_HEIGHT","slug":"GET_WATER_HEIGHT","official":true,"named":true,"luaName":"GetWaterHeight","game":"rdr3","apiset":"client","returnType":"BOOL","params":[{"name":"x","type":"float"},{"name":"y","type":"float"},{"name":"z","type":"float"},{"name":"height","type":"float*"}],"summary":"Checks against a global variable that is set by _SET_WORLD_WATER_TYPE.","descriptions":[{"source":"alloc8or","format":"text","body":"Checks against a global variable that is set by _SET_WORLD_WATER_TYPE. If that is set to one it will fail. Likely not the only issue but part of it."}],"examples":[],"aliases":[],"enums":[],"related":[],"build":"1207","gtaHash":"0xF6829842C06AE524","gtaJhash":"0xD864E17C","sources":["alloc8or"],"doc":2,"url":"https://natives.borderlinerp.com/natives/WATER/GET_WATER_HEIGHT","markdownUrl":"https://natives.borderlinerp.com/natives/WATER/GET_WATER_HEIGHT.md","snippets":{"lua":"local retval, height = GetWaterHeight(x, y, z, height)","luaInvoke":"local retval, height = Citizen.InvokeNative(0xFCA8B23F28813F69, x, y, z, Citizen.PointerValueFloatInitialized(height), Citizen.ReturnResultAnyway())","js":"const [retval, height] = GetWaterHeight(x, y, z, height);","jsInvoke":"const [retval, height] = Citizen.invokeNative('0xFCA8B23F28813F69', x + 0.0000001, y + 0.0000001, z + 0.0000001, Citizen.pointerValueFloatInitialized(height), Citizen.returnResultAnyway());","csharp":"var height = new OutputArgument();\nbool retval = Function.Call<bool>((Hash)0xFCA8B23F28813F69, x, y, z, height);\n// height.GetResult<float>()","notes":["Float parameters: Lua integers (`10`, or whole numbers decoded from NUI/JSON) are sent as ints and read as garbage. Write `10.0` or `value + 0.0`. The generated JS wrappers add `0.0000001` to non-zero floats for the same reason.","The last argument is an in/out pointer: pass its initial value, and the updated value is returned after the result."]}}