Jump to content

_GET_MAP_ZONE_AT_COORDS


Native Details

  • Name_GET_MAP_ZONE_AT_COORDS
  • NamespaceZONE
  • Native Hash0x43AD8FC02B429D33
  • TypeHash
  • First seen version1207

Native Parameters

  • Parameter 0float x
  • Parameter 1float y
  • Parameter 2float z
  • Parameter 3int type

DESCRIPTION

Types

0: STATE (Doesn't work with this native).
1: TOWN
2: LAKE
3: RIVER
4: No idea. Unused.
5: SWAMP
6: OCEAN
7: CREEK
8: POND
9: No idea. Unused.
10: DISTRICT
11: No idea. Unused.
12: No idea. Unused.

 

 

 

CREEKS
WATER_DEADBOOT_CREEK
WATER_DEWBERRY_CREEK
WATER_HAWKS_EYE_CREEK
WATER_RINGNECK_CREEK
WATER_SPIDER_GORGE
WATER_STILLWATER_CREEK
WATER_WHINYARD_STRAIT

 

DISTRICTS
GuarmaD
BayouNwa
bigvalley
BluewaterMarsh
ChollaSprings
Cumberland
DiezCoronas
GaptoothRidge
greatPlains
GrizzliesEast
GrizzliesWest
HennigansStead
Perdido
PuntaOrgullo
RioBravo
roanoke
scarlettMeadows
TallTrees
Heartlands

 

LAKES
WATER_AURORA_BASIN
WATER_BARROW_LAGOON
WATER_CALMUT_RAVINE
WATER_ELYSIAN_POOL
WATER_FLAT_IRON_LAKE
WATER_HEARTLANDS_OVERFLOW
WATER_LAKE_DON_JULIO
WATER_LAKE_ISABELLA
WATER_O_CREAGHS_RUN
WATER_OWANJILA
WATER_SEA_OF_CORONADO

 

OCEANS
WATER_BAHIA_DE_LA_PAZ

 

PONDS
WATER_CAIRN_LAKE
WATER_CATTIAL_POND
WATER_HOT_SPRINGS
WATER_MATTLOCK_POND
WATER_MOONSTONE_POND
WATER_SOUTHFIELD_FLATS

 

RIVERS
WATER_BEARTOOTH_BECK
WATER_DAKOTA_RIVER
WATER_KAMASSA_RIVER
WATER_LANNAHECHEE_RIVER
WATER_LITTLE_CREEK_RIVER
WATER_LOWER_MONTANA_RIVER
WATER_SAN_LUIS_RIVER
WATER_UPPER_MONTANA_RIVER
WATER_ARROYO_DE_LA_VIBORA

 

STATES
Ambarino
Lemoyne
NewAustin
NewHanover
NuevoParaiso
WestElizabeth
LowerWestElizabeth
UpperWestElizabeth
Guarma

 

SWAMPS
WATER_BAYOU_NWA

 

TOWNS
Annesburg
Armadillo
Blackwater
BeechersHope
Braithwaite
Butcher
Caliga
cornwall
Emerald
lagras
Manzanita
Rhodes
Siska
StDenis
Strawberry
Tumbleweed
valentine
VANHORN
Wallace
wapiti
AguasdulcesFarm
AguasdulcesRuins
AguasdulcesVilla
Manicato



User Feedback

Recommended Comments

I've added types and zone names.

 

Example usage with RAGE Plugin Hook:

private static bool IsPositionInZone(Vector3 position, string zoneName)
{
    const int ZoneMapTypeTown = 1;
    const int ZoneMapTypeDestrict = 10;
    uint desiredZoneHash = Game.GetHashKey(zoneName);
    uint zoneHash = Game.CallNative<uint>(0x43AD8FC02B429D33ul, position.X, position.Y, position.Z, ZoneMapTypeTown);
    if (zoneHash == desiredZoneHash)
    {
        return true;
    }

    zoneHash = Game.CallNative<uint>(0x43AD8FC02B429D33ul, position.X, position.Y, position.Z, ZoneMapTypeDestrict);
    return zoneHash == desiredZoneHash;
}

 

Edited by MulleDK19
  • Like 1
Link to comment
Share on other sites



Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Add a comment...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Red Dead Redemption 2 Native Database by www.mod-rdr.com, includes contributions by gudmunduro and alloc8or.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...