{"hash":"0x5BA7A68A346A5A91","ns":"ZONE","name":"_GET_WATER_MAP_ZONE_AT_COORDS","slug":"_GET_WATER_MAP_ZONE_AT_COORDS","official":false,"named":true,"luaName":"GetWaterMapZoneAtCoords","game":"rdr3","apiset":"client","returnType":"Hash","params":[{"name":"x","type":"float"},{"name":"y","type":"float"},{"name":"z","type":"float"}],"summary":"Returns the zone's name hash if its type matches one of the following: - LAKE - RIVER - OIL_SPILL - SWAMP - OCEAN - CREEK - POND - GLACIER","descriptions":[{"source":"alloc8or","format":"text","body":"Returns the zone's name hash if its type matches one of the following:\n- LAKE\n- RIVER\n- OIL_SPILL\n- SWAMP\n- OCEAN\n- CREEK\n- POND\n- GLACIER"}],"examples":[],"aliases":[],"enums":[],"related":[],"build":"1207","sources":["alloc8or"],"doc":2,"url":"https://natives.borderlinerp.com/natives/ZONE/_GET_WATER_MAP_ZONE_AT_COORDS","markdownUrl":"https://natives.borderlinerp.com/natives/ZONE/_GET_WATER_MAP_ZONE_AT_COORDS.md","snippets":{"lua":"local retval = GetWaterMapZoneAtCoords(x, y, z)","luaInvoke":"local retval = Citizen.InvokeNative(0x5BA7A68A346A5A91, x, y, z, Citizen.ResultAsInteger())","js":"const retval = GetWaterMapZoneAtCoords(x, y, z);","jsInvoke":"const retval = Citizen.invokeNative('0x5BA7A68A346A5A91', x + 0.0000001, y + 0.0000001, z + 0.0000001, Citizen.returnResultAnyway(), Citizen.resultAsInteger());","csharp":"int retval = Function.Call<int>((Hash)0x5BA7A68A346A5A91, x, y, z);","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 name is a community guess and may change. If the named call is missing in your client build, use `InvokeNative` with the hash — it always works."]}}