Zone::getHashOfMapAreaAtCoords: Difference between revisions

From RAGE Multiplayer Wiki
(yay)
No edit summary
 
Line 15: Line 15:
{{Zone_s_function_c}}
{{Zone_s_function_c}}
[[Category:Clientside API]]
[[Category:Clientside API]]
[[Category:Zone API]]
[[Category:TODO: Example]]
[[Category:TODO: Example]]

Latest revision as of 21:10, 11 May 2017

Returns a hash representing which part of the map the given coords are located.

Possible return values:
(Hash of) city -> -289320599
(Hash of) countryside -> 207209373

C# Example :

Ped player = Game.Player.Character;
Hash h = Function.Call<Hash>(Hash.GET_HASH_OF_MAP_AREA_AT_COORDS, player.Position.X, player.Position.Y, player.Position.Z);

Syntax

mp.game.zone.getHashOfMapAreaAtCoords(x, y, z);

Required Arguments

  • x: float
  • y: float
  • z: float

Return value

  • Model hash or name

Example

// todo

See also

Template:Zone s function c