{"hash":"0x43AD8FC02B429D33","ns":"ZONE","name":"_GET_MAP_ZONE_AT_COORDS","slug":"_GET_MAP_ZONE_AT_COORDS","official":false,"named":true,"luaName":"GetMapZoneAtCoords","game":"rdr3","apiset":"client","returnType":"Hash","params":[{"name":"x","type":"float"},{"name":"y","type":"float"},{"name":"z","type":"float"},{"name":"type","type":"int"}],"summary":"Returns name hash, see common:/data/levels/rdr3/mapzones.meta type (-1 matches any type): class CMapZone STATE, TOWN, LAKE, RIVER, OIL_SPILL, SWAMP, OCEAN, CREEK, POND, GLACIER, DISTRICT, TEXT_PRINTED, TEXT_WRITTEN","descriptions":[{"source":"alloc8or","format":"text","body":"Returns name hash, see common:/data/levels/rdr3/mapzones.meta\n\ntype (-1 matches any type):\nclass CMapZone\n{\npublic:\n\tenum class Type\n\t{\n\t\tSTATE,\n\t\tTOWN,\n\t\tLAKE,\n\t\tRIVER,\n\t\tOIL_SPILL,\n\t\tSWAMP,\n\t\tOCEAN,\n\t\tCREEK,\n\t\tPOND,\n\t\tGLACIER,\n\t\tDISTRICT,\n\t\tTEXT_PRINTED,\n\t\tTEXT_WRITTEN\n\t};\n};\n\nhttps://github.com/femga/rdr3_discoveries/tree/master/zones & https://alloc8or.re/rdr3/doc/enums/CMapZone__Type.txt"}],"examples":[],"aliases":[],"enums":[],"related":[],"build":"1207","sources":["alloc8or"],"doc":2,"url":"https://natives.borderlinerp.com/natives/ZONE/_GET_MAP_ZONE_AT_COORDS","markdownUrl":"https://natives.borderlinerp.com/natives/ZONE/_GET_MAP_ZONE_AT_COORDS.md","snippets":{"lua":"local retval = GetMapZoneAtCoords(x, y, z, type)","luaInvoke":"local retval = Citizen.InvokeNative(0x43AD8FC02B429D33, x, y, z, type, Citizen.ResultAsInteger())","js":"const retval = GetMapZoneAtCoords(x, y, z, type);","jsInvoke":"const retval = Citizen.invokeNative('0x43AD8FC02B429D33', x + 0.0000001, y + 0.0000001, z + 0.0000001, type, Citizen.returnResultAnyway(), Citizen.resultAsInteger());","csharp":"int retval = Function.Call<int>((Hash)0x43AD8FC02B429D33, x, y, z, type);","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."]}}