<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.multitheftauto.com/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=XSrJulianProHG</id>
	<title>Multi Theft Auto: Wiki - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.multitheftauto.com/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=XSrJulianProHG"/>
	<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/wiki/Special:Contributions/XSrJulianProHG"/>
	<updated>2026-04-22T12:45:47Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.39.3</generator>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=SetPlayerSkin&amp;diff=54082</id>
		<title>SetPlayerSkin</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=SetPlayerSkin&amp;diff=54082"/>
		<updated>2018-02-24T19:17:11Z</updated>

		<summary type="html">&lt;p&gt;XSrJulianProHG: /* Syntax */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Server client function}}&lt;br /&gt;
__NOTOC__&lt;br /&gt;
{{Deprecated}}&lt;br /&gt;
&lt;br /&gt;
Please use [[setElementModel]]&lt;br /&gt;
&lt;br /&gt;
This function changes the skin of a player.&lt;br /&gt;
&lt;br /&gt;
==Syntax== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
bool setPlayerSkin ( player thePlayer, int skinID )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
&lt;br /&gt;
===Required Arguments By xjulianGilx=== &lt;br /&gt;
*'''thePlayer:''' The [[player]] whose model will be changed.&lt;br /&gt;
*'''skinID:''' A GTASA player model (skin) ID. See [[Character Skins]].&lt;br /&gt;
&lt;br /&gt;
==Example== &lt;br /&gt;
This example sets you a police skin when you type the command /law.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt; &lt;br /&gt;
function enterTheLaw(playerSource)&lt;br /&gt;
  if (getPlayerSkin(playerSource) == 280) then&lt;br /&gt;
    outputChatBox(&amp;quot;You are already in the law!&amp;quot;, playerSource)&lt;br /&gt;
  else&lt;br /&gt;
    setPlayerSkin(playerSource, 280)&lt;br /&gt;
    outputChatBox(&amp;quot;Welcome to the law, protect the innocents.&amp;quot;, playerSource)&lt;br /&gt;
  end&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
addCommandHandler(&amp;quot;law&amp;quot;, enterTheLaw)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{Player functions}}&lt;/div&gt;</summary>
		<author><name>XSrJulianProHG</name></author>
	</entry>
</feed>