<?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%3Aat</id>
	<title>Pool::at - История изменений</title>
	<link rel="self" type="application/atom+xml" href="https://rage.grandroleplay.ru/index.php?action=history&amp;feed=atom&amp;title=Pool%3A%3Aat"/>
	<link rel="alternate" type="text/html" href="https://rage.grandroleplay.ru/index.php?title=Pool::at&amp;action=history"/>
	<updated>2026-07-24T20:00:41Z</updated>
	<subtitle>История изменений этой страницы в вики</subtitle>
	<generator>MediaWiki 1.43.9</generator>
	<entry>
		<id>https://rage.grandroleplay.ru/index.php?title=Pool::at&amp;diff=12592&amp;oldid=prev</id>
		<title>imported&gt;Shr0x: Pool list</title>
		<link rel="alternate" type="text/html" href="https://rage.grandroleplay.ru/index.php?title=Pool::at&amp;diff=12592&amp;oldid=prev"/>
		<updated>2024-11-10T12:07:36Z</updated>

		<summary type="html">&lt;p&gt;Pool list&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Новая страница&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{ServersideJsFunction}}&lt;br /&gt;
{{JSContainer|&lt;br /&gt;
&lt;br /&gt;
{{Pool_list}}&lt;br /&gt;
&lt;br /&gt;
==Summary==&lt;br /&gt;
The `pool.at` function returns an entity from a specified pool by its ID. It is useful for accessing specific entities such as players, vehicles, or objects by their unique server-side ID.&lt;br /&gt;
&lt;br /&gt;
===Syntax===&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;javascript&amp;quot;&amp;gt;&lt;br /&gt;
pool.at(id)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Return value===&lt;br /&gt;
An entity with the selected ID from a pool, or `undefined` if no entity exists with that ID.&lt;br /&gt;
&lt;br /&gt;
===Required Arguments===&lt;br /&gt;
*&amp;#039;&amp;#039;&amp;#039;id:&amp;#039;&amp;#039;&amp;#039; {{RageType|Number}} — The ID of the element to retrieve from the pool.&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
This example retrieves a player by ID and outputs their name to the console if they exist.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;javascript&amp;quot;&amp;gt;&lt;br /&gt;
let player = mp.players.at(1488);&lt;br /&gt;
if (player) {&lt;br /&gt;
    console.log(`Player with ID 1488 has nickname ${player.name}`);&lt;br /&gt;
} else {&lt;br /&gt;
    console.log(`Player with ID 1488 does not exist...`);&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
}}&lt;br /&gt;
==See Also==&lt;br /&gt;
{{EntityPool_function}}&lt;br /&gt;
[[Category:Serverside API]]&lt;/div&gt;</summary>
		<author><name>imported&gt;Shr0x</name></author>
	</entry>
</feed>