Перейти к содержанию

Zone::getHashOfMapAreaAtCoords

Материал из RAGE MP Wiki Archive
Версия от 21:10, 11 мая 2017; imported>StreetGT
(разн.) ← Предыдущая версия | Текущая версия (разн.) | Следующая версия → (разн.)

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

<syntaxhighlight lang="javascript">mp.game.zone.getHashOfMapAreaAtCoords(x, y, z);</syntaxhighlight>

Required Arguments

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

Return value

  • Model hash or name

Example

<syntaxhighlight lang="javascript"> // todo </syntaxhighlight>

See also

Шаблон:Zone s function c