<?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=Pool%3A%3AatRemoteId</id>
	<title>Pool::atRemoteId - История изменений</title>
	<link rel="self" type="application/atom+xml" href="https://rage.grandroleplay.ru/index.php?action=history&amp;feed=atom&amp;title=Pool%3A%3AatRemoteId"/>
	<link rel="alternate" type="text/html" href="https://rage.grandroleplay.ru/index.php?title=Pool::atRemoteId&amp;action=history"/>
	<updated>2026-07-24T20:17:26Z</updated>
	<subtitle>История изменений этой страницы в вики</subtitle>
	<generator>MediaWiki 1.43.9</generator>
	<entry>
		<id>https://rage.grandroleplay.ru/index.php?title=Pool::atRemoteId&amp;diff=12594&amp;oldid=prev</id>
		<title>imported&gt;Nenoxc: /* Example */</title>
		<link rel="alternate" type="text/html" href="https://rage.grandroleplay.ru/index.php?title=Pool::atRemoteId&amp;diff=12594&amp;oldid=prev"/>
		<updated>2020-06-05T19:04:38Z</updated>

		<summary type="html">&lt;p&gt;&lt;span class=&quot;autocomment&quot;&gt;Example&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Новая страница&lt;/b&gt;&lt;/p&gt;&lt;div&gt;This function returns the entity object, if valid from the server-side generated entity.id.&lt;br /&gt;
This is important to know, because the client-side entity.id may be different to the entity.id server-side.&lt;br /&gt;
&lt;br /&gt;
==Syntax==&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Entity pool.atRemoteId(Number ID)&lt;br /&gt;
&amp;lt;/pre&amp;gt; &lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
An entity with the selected remote ID from a pool, or undefined if entity with this remote ID does not exists. &lt;br /&gt;
&lt;br /&gt;
===Required Arguments===&lt;br /&gt;
*&amp;#039;&amp;#039;&amp;#039;ID:&amp;#039;&amp;#039;&amp;#039; Entity remote ID ( entity.remoteId )&lt;br /&gt;
&lt;br /&gt;
==Example== &lt;br /&gt;
This example will check player with ID in pool, and write player name into chat if he exists.&lt;br /&gt;
{{ClientsideCode|&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
// client-side entity.remoteId would return the server-side entity.id&lt;br /&gt;
let localPlayer = mp.players.local;&lt;br /&gt;
let player = mp.players.atRemoteId(localPlayer.remoteId);&lt;br /&gt;
&lt;br /&gt;
// usually it&amp;#039;s used as you have sent the server-side entity.id to clientside and want to grab the correct entity&lt;br /&gt;
// in this example, we got the ID &amp;quot;1&amp;quot; from the server-side and there are more vehicles on the server, where the client-side vehicle ID is &amp;quot;0&amp;quot;&lt;br /&gt;
let vehicleID = 1;&lt;br /&gt;
&lt;br /&gt;
let vehicle = mp.vehicles.atRemoteId(vehicleID);&lt;br /&gt;
&lt;br /&gt;
if(vehicle) {&lt;br /&gt;
	// now we have the vehicle entity, which is the same like server-side&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{EntityPool_function}}&lt;/div&gt;</summary>
		<author><name>imported&gt;Nenoxc</name></author>
	</entry>
</feed>