_GET_WATER_MAP_ZONE_AT_COORDS
Returns the hash of the water zone (lake, river and so on) at the given coordinates, or 0 if there is none.
Signature
Hash _GET_WATER_MAP_ZONE_AT_COORDS(float x, float y, float z); // 0x5BA7A68A346A5A91 b1207Parameters
| # | Name | Type |
|---|---|---|
| 1 | x | float |
| 2 | y | float |
| 3 | z | float |
Facts
| Name | _GET_WATER_MAP_ZONE_AT_COORDS |
|---|---|
| Hash | 0x5BA7A68A346A5A91 |
| Namespace | |
| Returns | Hash |
| Game build | 1207 |
Examples
Calls by hash work in every RedM runtime. Replace the placeholder arguments with your own values.
local hash = Citizen.InvokeNative(0x5BA7A68A346A5A91, -- _GET_WATER_MAP_ZONE_AT_COORDS
0.0, -- float x
0.0, -- float y
0.0, -- float z
Citizen.ResultAsInteger()
)
print(hash)// Whole JS numbers are sent as integers: pass floats like 1.5 (or n + 0.0000001), never 1.
const hash = Citizen.invokeNative("0x5BA7A68A346A5A91", // _GET_WATER_MAP_ZONE_AT_COORDS
0.0, // float x
0.0, // float y
0.0, // float z
Citizen.resultAsInteger()
);
console.log(hash)int hash = Function.Call<int>((Hash)0x5BA7A68A346A5A91, // _GET_WATER_MAP_ZONE_AT_COORDS
0.0f, // float x
0.0f, // float y
0.0f // float z
);Related ZONE natives
Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.