<?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%3AsetModel</id>
	<title>Player::setModel - История изменений</title>
	<link rel="self" type="application/atom+xml" href="https://rage.grandroleplay.ru/index.php?action=history&amp;feed=atom&amp;title=Player%3A%3AsetModel"/>
	<link rel="alternate" type="text/html" href="https://rage.grandroleplay.ru/index.php?title=Player::setModel&amp;action=history"/>
	<updated>2026-07-24T21:54:39Z</updated>
	<subtitle>История изменений этой страницы в вики</subtitle>
	<generator>MediaWiki 1.43.9</generator>
	<entry>
		<id>https://rage.grandroleplay.ru/index.php?title=Player::setModel&amp;diff=12217&amp;oldid=prev</id>
		<title>imported&gt;Caballero в 22:04, 6 октября 2024</title>
		<link rel="alternate" type="text/html" href="https://rage.grandroleplay.ru/index.php?title=Player::setModel&amp;diff=12217&amp;oldid=prev"/>
		<updated>2024-10-06T22:04: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;
===Required Params===&lt;br /&gt;
*&amp;#039;&amp;#039;&amp;#039;modelName:&amp;#039;&amp;#039;&amp;#039; {{RageType|string}} — The name of the model to be set for the player.&lt;br /&gt;
&lt;br /&gt;
===Return value===&lt;br /&gt;
*&amp;#039;&amp;#039;&amp;#039;void&amp;#039;&amp;#039;&amp;#039; — This function does not return a value.&lt;br /&gt;
&lt;br /&gt;
==Syntax==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;javascript&amp;quot;&amp;gt;&lt;br /&gt;
// Function to change the player&amp;#039;s model&lt;br /&gt;
function changePlayerModel(modelName) {&lt;br /&gt;
    let player = mp.players.local; // Reference to the local player&lt;br /&gt;
    let modelHash = mp.game.joaat(modelName); // Get the model hash from the model name&lt;br /&gt;
&lt;br /&gt;
    // Set the player&amp;#039;s model&lt;br /&gt;
    player.model = modelHash; // Change the player&amp;#039;s model&lt;br /&gt;
&lt;br /&gt;
    // Notify the player&lt;br /&gt;
    mp.gui.chat.push(&amp;quot;Your model has been changed to &amp;quot; + modelName + &amp;quot;.&amp;quot;);&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
// Bind the function to a key (for example, the &amp;quot;E&amp;quot; key)&lt;br /&gt;
mp.keys.bind(69, false, function() { // 69 is the key code for &amp;quot;E&amp;quot;&lt;br /&gt;
    changePlayerModel(&amp;#039;a_m_m_acult_01&amp;#039;); // Call the function to change the model&lt;br /&gt;
});&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
==Available Models==&lt;br /&gt;
See the list of available models:  [https://wiki.rage.mp/index.php?title=Peds Peds]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==See also==&lt;br /&gt;
{{Ped_functions_c}}&lt;br /&gt;
[[Category:Clientside API]]&lt;br /&gt;
[[Category:TODO: Example]]&lt;/div&gt;</summary>
		<author><name>imported&gt;Caballero</name></author>
	</entry>
</feed>