<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.multitheftauto.com/wiki/RO/addPedClothes?action=history&amp;feed=atom</id>
	<title>RO/addPedClothes - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.multitheftauto.com/wiki/RO/addPedClothes?action=history&amp;feed=atom"/>
	<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=RO/addPedClothes&amp;action=history"/>
	<updated>2026-04-07T07:31:17Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.39.3</generator>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=RO/addPedClothes&amp;diff=69191&amp;oldid=prev</id>
		<title>Myonlake at 18:33, 21 February 2021</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=RO/addPedClothes&amp;diff=69191&amp;oldid=prev"/>
		<updated>2021-02-21T18:33:07Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 18:33, 21 February 2021&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l43&quot;&gt;Line 43:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 43:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;{{RO/Ped functions}}&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;{{RO/Ped functions}}&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;EN&lt;/del&gt;:addPedClothes]]&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;ar&lt;/ins&gt;:addPedClothes&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;]]&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;[[en:AddPedClothes&lt;/ins&gt;]]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[hu:addPedClothes]]&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[hu:addPedClothes]]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[pl:AddPedClothes]]&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[pl:AddPedClothes]]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;[[RO:addPedClothes]]&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;

&lt;!-- diff cache key wiki-wiki_dev_:diff::1.12:old-67514:rev-69191 --&gt;
&lt;/table&gt;</summary>
		<author><name>Myonlake</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=RO/addPedClothes&amp;diff=67514&amp;oldid=prev</id>
		<title>Vinyard: Created page with &quot;__NOTOC__ {{RO/Funcție comună}} {{RO/Observații|Această funcție poate fi utilizată doar pe un ped care folosește skin de CJ (ID 0).}} Această funcție este utilizată...&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=RO/addPedClothes&amp;diff=67514&amp;oldid=prev"/>
		<updated>2020-10-11T14:54:39Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;__NOTOC__ {{RO/Funcție comună}} {{RO/Observații|Această funcție poate fi utilizată doar pe un ped care folosește skin de CJ (ID 0).}} Această funcție este utilizată...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;__NOTOC__&lt;br /&gt;
{{RO/Funcție comună}}&lt;br /&gt;
{{RO/Observații|Această funcție poate fi utilizată doar pe un ped care folosește skin de CJ (ID 0).}}&lt;br /&gt;
Această funcție este utilizată pentru a seta îmbrăcămintea curentă a unui [[ped]]. &lt;br /&gt;
&lt;br /&gt;
==Sintaxă==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
bool addPedClothes(ped thePed, string clothesTexture, string clothesModel, int clothesType)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
[[File:Clothes.png|thumb|CJ cu un tricou.]]&lt;br /&gt;
{{OOP||[[ped]]:addClothes||getPedClothes}}&lt;br /&gt;
&lt;br /&gt;
===Argumente Necesare===&lt;br /&gt;
*'''thePed''': Elementul [[ped]] a cărui îmbrăcăminte doriți să o schimbați.&lt;br /&gt;
*'''clothesTexture''': Un string determinând textura obiectului vestimentar ce va fi adăugat. Vizualizați [[CJ Clothes|catalogul vestimentar]].&lt;br /&gt;
*'''clothesModel''': Un string determinând modelul ce va fi adăugat. Vizualizați [[CJ Clothes|catalogul vestimentar]].&lt;br /&gt;
*'''clothesType''': Un integer reprezentând poziția/tipul îmbrăcămintei ce trebuie adăugată. Vizualizați [[CJ Clothes|catalogul vestimentar]].&lt;br /&gt;
&lt;br /&gt;
===Redare===&lt;br /&gt;
Această funcție redă ''true'' dacă îmbrăcămintea a fost adăugată cu succes. În caz contrar, ''false''.&lt;br /&gt;
&lt;br /&gt;
==Exemplu==&lt;br /&gt;
&amp;lt;section name=&amp;quot;Server&amp;quot; class=&amp;quot;server&amp;quot; show=&amp;quot;true&amp;quot;&amp;gt;&lt;br /&gt;
Acest exemplu adăuga o cască de motociclist unui jucător atunci când acesta se urcă pe un NRG-500 și o înlătură în momentul în care acesta se coboară de pe motor.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function onEnterVehicle(theVehicle, seat, jacked)&lt;br /&gt;
    if (getElementModel(theVehicle) == 522) then -- verificăm dacă este un NRG-500&lt;br /&gt;
        addPedClothes(source, &amp;quot;moto&amp;quot;, &amp;quot;moto&amp;quot;, 16) -- adăugăm casca de motociclist&lt;br /&gt;
    end&lt;br /&gt;
end&lt;br /&gt;
addEventHandler(&amp;quot;onPlayerVehicleEnter&amp;quot;, root, onEnterVehicle)&lt;br /&gt;
&lt;br /&gt;
function onExitVehicle(theVehicle, seat, jacked)&lt;br /&gt;
    if (getElementModel(theVehicle) == 522) then -- verificăm dacă este un NRG-500&lt;br /&gt;
        removePedClothes(source, 16) -- înlăturăm casca de motociclist&lt;br /&gt;
    end&lt;br /&gt;
end&lt;br /&gt;
addEventHandler(&amp;quot;onPlayerVehicleExit&amp;quot;, root, onExitVehicle)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;/section&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Vizualizați de asemenea==&lt;br /&gt;
{{RO/Ped functions}}&lt;br /&gt;
&lt;br /&gt;
[[EN:addPedClothes]]&lt;br /&gt;
[[hu:addPedClothes]]&lt;br /&gt;
[[pl:AddPedClothes]]&lt;/div&gt;</summary>
		<author><name>Vinyard</name></author>
	</entry>
</feed>