<?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%3AgetClosestVehicleNodeWithHeading</id>
	<title>Pathfind::getClosestVehicleNodeWithHeading - История изменений</title>
	<link rel="self" type="application/atom+xml" href="https://rage.grandroleplay.ru/index.php?action=history&amp;feed=atom&amp;title=Pathfind%3A%3AgetClosestVehicleNodeWithHeading"/>
	<link rel="alternate" type="text/html" href="https://rage.grandroleplay.ru/index.php?title=Pathfind::getClosestVehicleNodeWithHeading&amp;action=history"/>
	<updated>2026-07-24T19:44:47Z</updated>
	<subtitle>История изменений этой страницы в вики</subtitle>
	<generator>MediaWiki 1.43.9</generator>
	<entry>
		<id>https://rage.grandroleplay.ru/index.php?title=Pathfind::getClosestVehicleNodeWithHeading&amp;diff=10974&amp;oldid=prev</id>
		<title>imported&gt;Shr0x: mp.game v2 compatibility</title>
		<link rel="alternate" type="text/html" href="https://rage.grandroleplay.ru/index.php?title=Pathfind::getClosestVehicleNodeWithHeading&amp;diff=10974&amp;oldid=prev"/>
		<updated>2021-09-21T17:23:29Z</updated>

		<summary type="html">&lt;p&gt;mp.game v2 compatibility&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Новая страница&lt;/b&gt;&lt;/p&gt;&lt;div&gt;p5, p6 and p7 seems to be about the same as p4, p5 and p6 for GET_CLOSEST_VEHICLE_NODE. p6 and/or p7 has something to do with finding a node on the same path/road and same direction(at least for this native, something to do with the heading maybe). Edit this when you find out more.&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;p5 is either 1 or 12. 1 means any path/road. 12, 8, 0 means node in the middle of the closest main (asphalt) road.&amp;lt;br&amp;gt;p6 is always 3.0&amp;lt;br&amp;gt;p7 is always 0.&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;Known node types: simple path/asphalt road, only asphalt road, water, under the map at always the same coords. &amp;lt;br&amp;gt;&amp;lt;br&amp;gt;The node types follows a pattern. For example, every fourth node is of the type water i.e. 3, 7, 11, 15, 19, 23, 27, 31, 35, 39... 239. Could not see any difference between nodes within certain types. &amp;lt;br&amp;gt;Starting at 2, every fourth node is under the map, always same coords.&amp;lt;br&amp;gt;Same with only asphalt road (0, 4, 8, etc) and simple path/asphalt road (1, 5, 9, etc).&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;gtaforums.com/topic/843561-pathfind-node-types&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;Example of usage, moving vehicle to closest path/road:&amp;lt;br&amp;gt;Vector3 coords = ENTITY::GET_ENTITY_COORDS(playerVeh, true);&amp;lt;br&amp;gt;Vector3 closestVehicleNodeCoords; &amp;lt;br&amp;gt;float roadHeading; &amp;lt;br&amp;gt;PATHFIND::GET_CLOSEST_VEHICLE_NODE_WITH_HEADING(coords.x, coords.y, coords.z, &amp;amp;amp;closestVehicleNodeCoords, &amp;amp;amp;roadHeading, 1, 3, 0); &amp;lt;br&amp;gt;ENTITY::SET_ENTITY_HEADING(playerVeh, roadHeading);&amp;lt;br&amp;gt;ENTITY::SET_ENTITY_COORDS(playerVeh, closestVehicleNodeCoords.x, closestVehicleNodeCoords.y, closestVehicleNodeCoords.z, 1, 0, 0, 1);&amp;lt;br&amp;gt;VEHICLE::SET_VEHICLE_ON_GROUND_PROPERLY(playerVeh);&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;------------------------------------------------------------------&amp;lt;br&amp;gt;C# Example (ins1de) : pastebin.com/fxtMWAHD&lt;br /&gt;
==Syntax==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;javascript&amp;quot;&amp;gt;mp.game.pathfind.getClosestVehicleNodeWithHeading(x, y, z, nodeType, p6, p7):&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;nodeType:&amp;#039;&amp;#039;&amp;#039; int&lt;br /&gt;
*&amp;#039;&amp;#039;&amp;#039;p6:&amp;#039;&amp;#039;&amp;#039; float&lt;br /&gt;
*&amp;#039;&amp;#039;&amp;#039;p7:&amp;#039;&amp;#039;&amp;#039; int&lt;br /&gt;
===Return value===&lt;br /&gt;
*&amp;#039;&amp;#039;&amp;#039;object:&amp;#039;&amp;#039;&amp;#039; outPosition, outHeading, , , &lt;br /&gt;
==Example==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;javascript&amp;quot;&amp;gt;&lt;br /&gt;
// todo&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;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;Shr0x</name></author>
	</entry>
</feed>