<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="cs">
	<id>https://wiki.ffredyk.cz/index.php?action=history&amp;feed=atom&amp;title=AddVehicleComponent</id>
	<title>AddVehicleComponent - Historie editací</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.ffredyk.cz/index.php?action=history&amp;feed=atom&amp;title=AddVehicleComponent"/>
	<link rel="alternate" type="text/html" href="https://wiki.ffredyk.cz/index.php?title=AddVehicleComponent&amp;action=history"/>
	<updated>2026-04-06T20:18:14Z</updated>
	<subtitle>Historie editací této stránky</subtitle>
	<generator>MediaWiki 1.43.6</generator>
	<entry>
		<id>https://wiki.ffredyk.cz/index.php?title=AddVehicleComponent&amp;diff=75&amp;oldid=prev</id>
		<title>Ffredyk v 13. 4. 2012, 05:00</title>
		<link rel="alternate" type="text/html" href="https://wiki.ffredyk.cz/index.php?title=AddVehicleComponent&amp;diff=75&amp;oldid=prev"/>
		<updated>2012-04-13T05:00:04Z</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;cs&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Starší verze&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Verze z 13. 4. 2012, 05:00&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-l37&quot;&gt;Řádek 37:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Řádek 37:&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;}&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;}&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;&amp;lt;/pre&amp;gt;&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;&amp;lt;/pre&amp;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;&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;[[Category:SAMP]]&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;[[Category:Funkce]]&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;[[Category:Vozidla]]&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Ffredyk</name></author>
	</entry>
	<entry>
		<id>https://wiki.ffredyk.cz/index.php?title=AddVehicleComponent&amp;diff=71&amp;oldid=prev</id>
		<title>Ffredyk: Založena nová stránka: &#039;&#039;Překlad: Přidej vozidlu součástku&#039;&#039;   :Touto funkcí jste schopni přidat vozidlu další části, když jsou vytvořené funkcemi AddStaticVehicle, [[AddStati…</title>
		<link rel="alternate" type="text/html" href="https://wiki.ffredyk.cz/index.php?title=AddVehicleComponent&amp;diff=71&amp;oldid=prev"/>
		<updated>2012-04-13T04:48:24Z</updated>

		<summary type="html">&lt;p&gt;Založena nová stránka: &amp;#039;&amp;#039;Překlad: Přidej vozidlu součástku&amp;#039;&amp;#039;   :Touto funkcí jste schopni přidat vozidlu další části, když jsou vytvořené funkcemi &lt;a href=&quot;/index.php?title=AddStaticVehicle&quot; title=&quot;AddStaticVehicle&quot;&gt;AddStaticVehicle&lt;/a&gt;, [[AddStati…&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Nová stránka&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&amp;#039;&amp;#039;Překlad: Přidej vozidlu součástku&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
:Touto funkcí jste schopni přidat vozidlu další části, když jsou vytvořené funkcemi [[AddStaticVehicle]], [[AddStaticVehicleEx]] nebo [[CreateVehicle]]. ID komponentů můžete nalézt [[Komponenty|zde]]&lt;br /&gt;
&lt;br /&gt;
====Parametry====&lt;br /&gt;
&amp;lt;tt&amp;gt;&lt;br /&gt;
:&amp;lt;pre&amp;gt;(auto_id, komponenta_id)&amp;lt;/pre&amp;gt;&lt;br /&gt;
::&amp;#039;&amp;#039;&amp;#039;vehicleid&amp;#039;&amp;#039;&amp;#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
:::ID vozidla, kterému chcete přidat komponentu.&amp;lt;tt&amp;gt;&lt;br /&gt;
::&amp;#039;&amp;#039;&amp;#039;komponenta_id&amp;#039;&amp;#039;&amp;#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
:::ID komponenty, kterou chcete vozidlu přidat&lt;br /&gt;
::::&amp;#039;&amp;#039;Nesprávné ID komponenty shodí hru!&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
:&amp;#039;&amp;#039;&amp;#039;Vrací:&amp;#039;&amp;#039;&amp;#039; Funkce nevrací žádnou hodnotu&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
new gTAXI; //Proměnná pro úschovu ID auta&lt;br /&gt;
 &lt;br /&gt;
public OnGameModeInit()&lt;br /&gt;
{&lt;br /&gt;
    gTAXI = AddStaticVehicle(420, -2482.4937, 2242.3936, 4.6225, 179.3656, 6, 1); // Vytvoření auta - Taxi&lt;br /&gt;
    return 1;&lt;br /&gt;
}&lt;br /&gt;
 &lt;br /&gt;
public OnPlayerStateChange(playerid, newstate, oldstate)&lt;br /&gt;
{&lt;br /&gt;
    if (newstate == PLAYER_STATE_DRIVER &amp;amp;&amp;amp; oldstate == PLAYER_STATE_ONFOOT) //Hráč nastoupil do auta (nový state = &amp;quot;řidič&amp;quot;)&lt;br /&gt;
    {&lt;br /&gt;
        if (GetPlayerVehicleID(playerid) == gTAXI) //Pokud nasedl do našeho taxi&lt;br /&gt;
        {&lt;br /&gt;
            AddVehicleComponent(gTAXI, 1010); // Nitro&lt;br /&gt;
            SendClientMessage(playerid, 0xFFFFFFAA, &amp;quot;Nitro bylo přidáno dotvého auta.&amp;quot;);&lt;br /&gt;
        }&lt;br /&gt;
    }&lt;br /&gt;
    return 1;&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;/div&gt;</summary>
		<author><name>Ffredyk</name></author>
	</entry>
</feed>