<?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%3AsetClothes</id>
	<title>Player::setClothes - История изменений</title>
	<link rel="self" type="application/atom+xml" href="https://rage.grandroleplay.ru/index.php?action=history&amp;feed=atom&amp;title=Player%3A%3AsetClothes"/>
	<link rel="alternate" type="text/html" href="https://rage.grandroleplay.ru/index.php?title=Player::setClothes&amp;action=history"/>
	<updated>2026-07-24T21:23:31Z</updated>
	<subtitle>История изменений этой страницы в вики</subtitle>
	<generator>MediaWiki 1.43.9</generator>
	<entry>
		<id>https://rage.grandroleplay.ru/index.php?title=Player::setClothes&amp;diff=12117&amp;oldid=prev</id>
		<title>imported&gt;Ufteers в 17:36, 6 июля 2021</title>
		<link rel="alternate" type="text/html" href="https://rage.grandroleplay.ru/index.php?title=Player::setClothes&amp;diff=12117&amp;oldid=prev"/>
		<updated>2021-07-06T17:36:08Z</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;This function set clothing for player.&lt;br /&gt;
Alternative of client-side function: [https://wiki.rage.mp/index.php?title=Player::setComponentVariation Player::setComponentVariation]&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! colspan=&amp;quot;4&amp;quot;| Clothes&lt;br /&gt;
|-&lt;br /&gt;
! Component ID !! Part !! colspan=&amp;quot;2&amp;quot;| Gender&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;text-align:center&amp;quot; | 0 || Head || colspan=&amp;quot;2&amp;quot;|&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;text-align:center&amp;quot; | 1 || Masks || colspan=&amp;quot;2&amp;quot;| [[Masks|Male + Female]]&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;text-align:center&amp;quot; | 2 || Hair Styles || [[Male_Hair_Styles|Male]] || | [[Female_Hair_Styles|Female]]&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;text-align:center&amp;quot; | 3 || Torsos || [[Male_Torsos|Male]] || [[Female_Torsos|Female]]&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;text-align:center&amp;quot; | 4 || Legs || [[Male_Legs|Male]] || [[Female_Legs|Female]]&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;text-align:center&amp;quot; | 5 || | Bags and Parachutes || colspan=&amp;quot;2&amp;quot; | [[Bags and Parachutes|Male + Female]]&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;text-align:center&amp;quot; | 6 || Shoes || [[Male_Shoes|Male]] || [[Female_Shoes|Female]]&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;text-align:center&amp;quot; | 7 || Accessories || [[Male_Accessories|Male]] || [[Female_Accessories|Female]]&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;text-align:center&amp;quot; | 8 || Undershirts || [[Male_Undershirts|Male]] || [[Female_Undershirts|Female]]&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;text-align:center&amp;quot; | 9 || Body Armors || [[Male_Body_Armors|Male]] || [[Female_Body_Armors|Female]]&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;text-align:center&amp;quot; | 10 || Decals || [[Male_Decals|Male]] || [[Female_Decals|Female]] &lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;text-align:center&amp;quot; | 11 || Tops || [[Male_Tops|Male]] || [[Female_Tops|Female]]&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Known issues ==&lt;br /&gt;
*This function can&amp;#039;t handle drawable over 255. If you need, use player.data &amp;amp; entityDataChange + entityStreamIn events so you can set it client-side with [https://wiki.rage.mp/index.php?title=Player::setComponentVariation setComponentVariation]. Fixed in 1.0+.&lt;br /&gt;
&lt;br /&gt;
== Syntax ==&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
player.setClothes(Number componentNumber, Number drawable, Number texture, Number palette)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Example ==&lt;br /&gt;
This example changes clothes.&lt;br /&gt;
{{ServersideCode|&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
mp.events.add(&amp;#039;playerCommand&amp;#039;, (player, command) =&amp;gt; {&lt;br /&gt;
  let arr = command.split(&amp;#039; &amp;#039;);&lt;br /&gt;
  if (arr[0] == &amp;#039;setclothes&amp;#039;) {&lt;br /&gt;
    if (arr.length &amp;lt; 5 || parseInt(arr[1]) === undefined || parseInt(arr[2]) === undefined || parseInt(arr[3]) === undefined || parseInt(arr[4]) === undefined) {&lt;br /&gt;
      return player.outputChatBox(&amp;#039;Use syntax: /setclothes [component_id] [drawable_id] [texture_id] [palette_id]&amp;#039;);&lt;br /&gt;
    } else {&lt;br /&gt;
      player.setClothes(parseInt(arr[1]), parseInt(arr[2]), parseInt(arr[3]), parseInt(arr[4]));&lt;br /&gt;
    }&lt;br /&gt;
  }&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;
{{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;Ufteers</name></author>
	</entry>
</feed>