<?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=Ped%3A%3AsetPropIndex</id>
	<title>Ped::setPropIndex - История изменений</title>
	<link rel="self" type="application/atom+xml" href="https://rage.grandroleplay.ru/index.php?action=history&amp;feed=atom&amp;title=Ped%3A%3AsetPropIndex"/>
	<link rel="alternate" type="text/html" href="https://rage.grandroleplay.ru/index.php?title=Ped::setPropIndex&amp;action=history"/>
	<updated>2026-07-24T19:03:16Z</updated>
	<subtitle>История изменений этой страницы в вики</subtitle>
	<generator>MediaWiki 1.43.9</generator>
	<entry>
		<id>https://rage.grandroleplay.ru/index.php?title=Ped::setPropIndex&amp;diff=11508&amp;oldid=prev</id>
		<title>imported&gt;Shr0x в 12:23, 2 ноября 2024</title>
		<link rel="alternate" type="text/html" href="https://rage.grandroleplay.ru/index.php?title=Ped::setPropIndex&amp;diff=11508&amp;oldid=prev"/>
		<updated>2024-11-02T12:23:05Z</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;{{ClientsideJsFunction}}&lt;br /&gt;
{{JSContainer|&lt;br /&gt;
&lt;br /&gt;
==Function==&lt;br /&gt;
This function sets a prop on a ped (such as a hat, glasses, or other accessories) by specifying the component, drawable, and texture IDs. The `attach` parameter determines if the prop should be applied immediately.&lt;br /&gt;
&lt;br /&gt;
===Required Params===&lt;br /&gt;
*&amp;#039;&amp;#039;&amp;#039;ped:&amp;#039;&amp;#039;&amp;#039; {{RageType|number}} - The handle of the ped (player or NPC).&lt;br /&gt;
*&amp;#039;&amp;#039;&amp;#039;componentId:&amp;#039;&amp;#039;&amp;#039; {{RageType|number}} - The ID of the prop component (e.g., hats, glasses).&lt;br /&gt;
*&amp;#039;&amp;#039;&amp;#039;drawableId:&amp;#039;&amp;#039;&amp;#039; {{RageType|number}} - The specific prop model to apply.&lt;br /&gt;
*&amp;#039;&amp;#039;&amp;#039;TextureId:&amp;#039;&amp;#039;&amp;#039; {{RageType|number}} - The texture variation of the prop.&lt;br /&gt;
*&amp;#039;&amp;#039;&amp;#039;attach:&amp;#039;&amp;#039;&amp;#039; {{RageType|boolean}} - Whether to attach the prop immediately.&lt;br /&gt;
&lt;br /&gt;
===Return value===&lt;br /&gt;
*&amp;#039;&amp;#039;&amp;#039; {{RageType|void}} &amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
==Syntax==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;javascript&amp;quot;&amp;gt;&lt;br /&gt;
mp.game.ped.setPropIndex(ped, componentId, drawableId, TextureId, attach);&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;javascript&amp;quot;&amp;gt;&lt;br /&gt;
// Example: Apply a hat to the player ped with a specific model and texture.&lt;br /&gt;
const playerPed = mp.players.local.handle; // Get the local player&amp;#039;s ped handle&lt;br /&gt;
const componentId = 0; // Hats component&lt;br /&gt;
const drawableId = 5; // Example hat model&lt;br /&gt;
const textureId = 2; // Texture variation for the hat&lt;br /&gt;
const attach = true; // Attach immediately&lt;br /&gt;
&lt;br /&gt;
mp.game.ped.setPropIndex(playerPed, componentId, drawableId, textureId, attach);&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
==See also==&lt;br /&gt;
{{Ped_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>