<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.multitheftauto.com/wiki/PL/getClothesByTypeIndex?action=history&amp;feed=atom</id>
	<title>PL/getClothesByTypeIndex - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.multitheftauto.com/wiki/PL/getClothesByTypeIndex?action=history&amp;feed=atom"/>
	<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=PL/getClothesByTypeIndex&amp;action=history"/>
	<updated>2026-05-14T09:32:16Z</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=PL/getClothesByTypeIndex&amp;diff=48190&amp;oldid=prev</id>
		<title>ThePiotrek: ThePiotrek moved page PL/GetClothesByTypeIndex to PL/getClothesByTypeIndex</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=PL/getClothesByTypeIndex&amp;diff=48190&amp;oldid=prev"/>
		<updated>2016-07-19T19:30:51Z</updated>

		<summary type="html">&lt;p&gt;ThePiotrek moved page &lt;a href=&quot;/wiki/PL/GetClothesByTypeIndex&quot; class=&quot;mw-redirect&quot; title=&quot;PL/GetClothesByTypeIndex&quot;&gt;PL/GetClothesByTypeIndex&lt;/a&gt; to &lt;a href=&quot;/wiki/PL/getClothesByTypeIndex&quot; title=&quot;PL/getClothesByTypeIndex&quot;&gt;PL/getClothesByTypeIndex&lt;/a&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 19:30, 19 July 2016&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-notice&quot; lang=&quot;en&quot;&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;(No difference)&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;</summary>
		<author><name>ThePiotrek</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=PL/getClothesByTypeIndex&amp;diff=48164&amp;oldid=prev</id>
		<title>ThePiotrek: Created page with &quot;__NOTOC__ {{PL/Shared function}} Ta funkcja pozwala na pobranie tekstury i modelu ciuchu na podstawie typu i indeksu (skanuje listę ubrań w poszukiwaniu wybranego ubrania)  ...&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=PL/getClothesByTypeIndex&amp;diff=48164&amp;oldid=prev"/>
		<updated>2016-07-19T18:20:02Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;__NOTOC__ {{PL/Shared function}} Ta funkcja pozwala na pobranie tekstury i modelu ciuchu na podstawie typu i indeksu (skanuje listę ubrań w poszukiwaniu wybranego ubrania)  ...&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;
{{PL/Shared function}}&lt;br /&gt;
Ta funkcja pozwala na pobranie tekstury i modelu ciuchu na podstawie typu i indeksu (skanuje listę ubrań w poszukiwaniu wybranego ubrania)&lt;br /&gt;
&lt;br /&gt;
==Składnia==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
string string getClothesByTypeIndex ( int clothesType, int clothesIndex )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Wymagane argumenty===&lt;br /&gt;
*'''clothesType''': Liczba całkowita reprezentująca typ/slot ubrań do znalezienia.&lt;br /&gt;
{{Clothes Textures}}&lt;br /&gt;
*'''clothesIndex''': Liczba całkowita reprezentująca indeks ubrań w liście które chcesz przetworzyć. Każdy rodzaj ma inny prawidłowy numer indeksu.&lt;br /&gt;
&lt;br /&gt;
==Wartości zwrotne==&lt;br /&gt;
Funkcja zwraca dwa ciągi znaków, teksturę i model, lub ''false'' w przypadku niepowodzenia.&lt;br /&gt;
&lt;br /&gt;
==Przykład==&lt;br /&gt;
Funkcja pobiera ubrania tego samego typu co te które aktualnie ma założone gracz, a następnie zmienia na następne na liście.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function scriptNextClothes ( thePlayer, key, clothesType )&lt;br /&gt;
  local currentTexture, currentModel = getPedClothes ( thePlayer, clothesType ) -- pobieramy ubrania na wybranym slocie&lt;br /&gt;
  local clothesIndex = -1&lt;br /&gt;
  if ( currentTexture ) then -- jeśli ma ubrania tego typu&lt;br /&gt;
    local tempA, tempB = getTypeIndexFromClothes ( currentTexture, currentModel ) -- pobieramy ich indeks i typ, będziemy mogli użyć tych wartości do ustawienia następnych ubrań z listy&lt;br /&gt;
    if ( tempA and tempB ) then -- jeśli je znajdziemy&lt;br /&gt;
      clothesType, clothesIndex = tempA, tempB&lt;br /&gt;
    end&lt;br /&gt;
  end&lt;br /&gt;
  clothesIndex = clothesIndex + 1&lt;br /&gt;
  local texture, model = getClothesByTypeIndex ( clothesType, clothesIndex ) -- pobierzmy nową teksturę i model&lt;br /&gt;
  if ( texture == false ) then -- jeśli osiągneliśmy koniec listy&lt;br /&gt;
    removePedClothes ( thePlayer, clothesType )&lt;br /&gt;
  else addPedClothes ( thePlayer, texture, model, clothesType )&lt;br /&gt;
  end&lt;br /&gt;
end&lt;br /&gt;
addCommandHandler ( &amp;quot;nextClothes&amp;quot;, scriptNextClothes )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Zobacz także==&lt;br /&gt;
{{Clothes and body functions}}&lt;br /&gt;
&lt;br /&gt;
[[en:GetClothesByTypeIndex]]&lt;/div&gt;</summary>
		<author><name>ThePiotrek</name></author>
	</entry>
</feed>