<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.multitheftauto.com/wiki/PL/getTypeIndexFromClothes?action=history&amp;feed=atom</id>
	<title>PL/getTypeIndexFromClothes - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.multitheftauto.com/wiki/PL/getTypeIndexFromClothes?action=history&amp;feed=atom"/>
	<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=PL/getTypeIndexFromClothes&amp;action=history"/>
	<updated>2026-05-14T14:06:45Z</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/getTypeIndexFromClothes&amp;diff=48199&amp;oldid=prev</id>
		<title>ThePiotrek at 19:43, 19 July 2016</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=PL/getTypeIndexFromClothes&amp;diff=48199&amp;oldid=prev"/>
		<updated>2016-07-19T19:43:17Z</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 19:43, 19 July 2016&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-l1&quot;&gt;Line 1:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 1:&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/Shared function}}&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/Shared function}}&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;__NOTOC__&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;__NOTOC__&lt;/div&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;Ta funkcja służy do uzyskania typu i indeksu ciuchu z tekstury i modelu&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;/&lt;/del&gt;&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;Ta funkcja służy do uzyskania typu i indeksu ciuchu z tekstury i modelu&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;(Skanuje listę ubrań).&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;(Skanuje listę ubrań).&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;/table&gt;</summary>
		<author><name>ThePiotrek</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=PL/getTypeIndexFromClothes&amp;diff=48198&amp;oldid=prev</id>
		<title>ThePiotrek: Created page with &quot;{{PL/Shared function}} __NOTOC__ Ta funkcja służy do uzyskania typu i indeksu ciuchu z tekstury i modelu/ (Skanuje listę ubrań).  ==Składnia== &lt;syntaxhighlight lang=&quot;lua&quot;&gt; int int getTy...&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=PL/getTypeIndexFromClothes&amp;diff=48198&amp;oldid=prev"/>
		<updated>2016-07-19T19:42:56Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;{{PL/Shared function}} __NOTOC__ Ta funkcja służy do uzyskania typu i indeksu ciuchu z tekstury i modelu/ (Skanuje listę ubrań).  ==Składnia== &amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt; int int getTy...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{PL/Shared function}}&lt;br /&gt;
__NOTOC__&lt;br /&gt;
Ta funkcja służy do uzyskania typu i indeksu ciuchu z tekstury i modelu/&lt;br /&gt;
(Skanuje listę ubrań).&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;
int int getTypeIndexFromClothes ( string clothesTexture, string clothesModel )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Wymagane argumenty===&lt;br /&gt;
*'''clothesTexture''': Ciąg znaków oznaczający teksturę ubrania którego indeks i typ chcesz pobrać. Zerknij na [[PL/CJ Clothes|katalog odzieży]].&lt;br /&gt;
*'''clothesModel''': Ciąg znaków oznaczający model ubrania którego indeks i typ chcesz pobrać. Zerknij na [[PL/CJ Clothes|katalog odzieży]].&lt;br /&gt;
&lt;br /&gt;
==Wartości zwrotne==&lt;br /&gt;
Funkcja zwraca dwie liczby całkowie, odpowiednio typ i indeks ubrania, lub ''false'' w przypadku podania nieprawidłowych parametrów.&lt;br /&gt;
&lt;br /&gt;
==Przykład==&lt;br /&gt;
Ten przykład pobiera ciuchy gracza wybranego typu i zmienia je na poprzednie w liście po wpisaniu /previousClothes&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function scriptPreviousClothes ( thePlayer, key, clothesType )&lt;br /&gt;
  local currentTexture, currentModel = getPedClothes ( thePlayer, clothesType ) -- sprawdźmy aktualne ciuchy&lt;br /&gt;
  local clothesIndex = 1&lt;br /&gt;
  if ( currentTexture ) then -- if he had clothes of that type&lt;br /&gt;
    local tempA, tempB = getTypeIndexFromClothes ( currentTexture, currentModel ) -- pobierzmy typ i indeks, dzięki czemu będziemy mogli zmienić ubrania na poprzednie w liście&lt;br /&gt;
    if ( tempA and tempB ) then -- jeśli je znaleźliśmy&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śl osiągnęliś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;previousClothes&amp;quot;, scriptPreviousClothes )&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:getTypeIndexFromClothes]]&lt;/div&gt;</summary>
		<author><name>ThePiotrek</name></author>
	</entry>
</feed>