<?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=Player%3A%3AgetClothes</id>
	<title>Player::getClothes - История изменений</title>
	<link rel="self" type="application/atom+xml" href="https://rage.grandroleplay.ru/index.php?action=history&amp;feed=atom&amp;title=Player%3A%3AgetClothes"/>
	<link rel="alternate" type="text/html" href="https://rage.grandroleplay.ru/index.php?title=Player::getClothes&amp;action=history"/>
	<updated>2026-07-24T22:33:13Z</updated>
	<subtitle>История изменений этой страницы в вики</subtitle>
	<generator>MediaWiki 1.43.9</generator>
	<entry>
		<id>https://rage.grandroleplay.ru/index.php?title=Player::getClothes&amp;diff=11693&amp;oldid=prev</id>
		<title>imported&gt;Mos: /* Example */</title>
		<link rel="alternate" type="text/html" href="https://rage.grandroleplay.ru/index.php?title=Player::getClothes&amp;diff=11693&amp;oldid=prev"/>
		<updated>2020-04-16T16:28:41Z</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 return a hash of player clothes.&lt;br /&gt;
== Syntax ==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;javascript&amp;quot;&amp;gt;&lt;br /&gt;
Object player.getClothes(Number componentNumber)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
List of components:&lt;br /&gt;
* 0 - Head&lt;br /&gt;
* 1 - Beard&lt;br /&gt;
* 2 - Hair&lt;br /&gt;
* 3 - Torso&lt;br /&gt;
* 4 - Legs&lt;br /&gt;
* 5 - Hands&lt;br /&gt;
* 6 - Foot&lt;br /&gt;
* 7 - None?&lt;br /&gt;
* 8 - Accessories like parachute, scuba tank&lt;br /&gt;
* 9 - Accessories like bags, mask, scuba mask&lt;br /&gt;
* 10- Decals and mask&lt;br /&gt;
* 11 - Auxiliary parts for torso&lt;br /&gt;
Object keys:&lt;br /&gt;
* drawable - ID of clothing.&lt;br /&gt;
* texture - ID of texture.&lt;br /&gt;
* palette - ID of palette.&lt;br /&gt;
&lt;br /&gt;
== Example ==&lt;br /&gt;
This example outputs player clothes for component ID.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;javascript&amp;quot;&amp;gt;&lt;br /&gt;
mp.events.addCommand(&amp;#039;getclothes&amp;#039;, (player, text, component) =&amp;gt; {&lt;br /&gt;
  if (component == null || !parseInt(component)) {&lt;br /&gt;
    return player.outputChatBox(&amp;#039;Use syntax: /getclothes [component_id]&amp;#039;);&lt;br /&gt;
  } else {&lt;br /&gt;
    let clothes = player.getClothes(parseInt(component));&lt;br /&gt;
    player.outputChatBox(&amp;#039;drawable: &amp;#039; + clothes.drawable + &amp;#039; texture: &amp;#039; + clothes.texture + &amp;#039; palette: &amp;#039; + palette.texture);&lt;br /&gt;
  }&lt;br /&gt;
});&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See also==&lt;br /&gt;
{{Player_block}}&lt;br /&gt;
&lt;br /&gt;
[[Category:Player Appearance]]&lt;br /&gt;
[[Category:Server-side Function]]&lt;/div&gt;</summary>
		<author><name>imported&gt;Mos</name></author>
	</entry>
</feed>