<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="ru">
	<id>https://rage.grandroleplay.ru/index.php?action=history&amp;feed=atom&amp;title=Pathfind%3A%3AgetStreetNameAtCoord</id>
	<title>Pathfind::getStreetNameAtCoord - История изменений</title>
	<link rel="self" type="application/atom+xml" href="https://rage.grandroleplay.ru/index.php?action=history&amp;feed=atom&amp;title=Pathfind%3A%3AgetStreetNameAtCoord"/>
	<link rel="alternate" type="text/html" href="https://rage.grandroleplay.ru/index.php?title=Pathfind::getStreetNameAtCoord&amp;action=history"/>
	<updated>2026-07-24T22:33:03Z</updated>
	<subtitle>История изменений этой страницы в вики</subtitle>
	<generator>MediaWiki 1.43.9</generator>
	<entry>
		<id>https://rage.grandroleplay.ru/index.php?title=Pathfind::getStreetNameAtCoord&amp;diff=10983&amp;oldid=prev</id>
		<title>imported&gt;Unknown в 09:03, 17 ноября 2017</title>
		<link rel="alternate" type="text/html" href="https://rage.grandroleplay.ru/index.php?title=Pathfind::getStreetNameAtCoord&amp;diff=10983&amp;oldid=prev"/>
		<updated>2017-11-17T09:03:57Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Новая страница&lt;/b&gt;&lt;/p&gt;&lt;div&gt;Determines the name of the street which is the closest to the given coordinates.&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;x,y,z - the coordinates of the street&amp;lt;br&amp;gt;streetName - returns a hash to the name of the street the coords are on&amp;lt;br&amp;gt;crossingRoad - if the coordinates are on an intersection, a hash to the name of the crossing road&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;Note: the names are returned as hashes, the strings can be returned using the function UI::GET_STREET_NAME_FROM_HASH_KEY.&lt;br /&gt;
==Syntax==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;javascript&amp;quot;&amp;gt;mp.game.pathfind.getStreetNameAtCoord(x, y, z, streetName, crossingRoad);&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
=== Required Arguments ===&lt;br /&gt;
*&amp;#039;&amp;#039;&amp;#039;x:&amp;#039;&amp;#039;&amp;#039; float&lt;br /&gt;
*&amp;#039;&amp;#039;&amp;#039;y:&amp;#039;&amp;#039;&amp;#039; float&lt;br /&gt;
*&amp;#039;&amp;#039;&amp;#039;z:&amp;#039;&amp;#039;&amp;#039; float&lt;br /&gt;
*&amp;#039;&amp;#039;&amp;#039;streetName:&amp;#039;&amp;#039;&amp;#039; Hash&lt;br /&gt;
*&amp;#039;&amp;#039;&amp;#039;crossingRoad:&amp;#039;&amp;#039;&amp;#039; Hash&lt;br /&gt;
===Return value===&lt;br /&gt;
*&amp;#039;&amp;#039;&amp;#039;object:&amp;#039;&amp;#039;&amp;#039; streetName, crossingRoad&lt;br /&gt;
==Example==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;javascript&amp;quot;&amp;gt;&lt;br /&gt;
// Clientside&lt;br /&gt;
const local = mp.players.local; &lt;br /&gt;
&lt;br /&gt;
let getStreet = mp.game.pathfind.getStreetNameAtCoord(local.position.x, local.position.y, local.position.z, 0, 0);&lt;br /&gt;
// Returns obj {&amp;quot;streetName&amp;quot;: hash, crossingRoad: hash}&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If you want the real streetname you have to use:&lt;br /&gt;
https://wiki.rage.mp/index.php?title=Ui::getStreetNameFromHashKey&lt;br /&gt;
&lt;br /&gt;
==See also==&lt;br /&gt;
{{Pathfind_s_function_c}}&lt;br /&gt;
[[Category:Clientside API]]&lt;br /&gt;
[[Category:TODO: Example]]&lt;/div&gt;</summary>
		<author><name>imported&gt;Unknown</name></author>
	</entry>
</feed>