<?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=TeeNekk</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=TeeNekk"/>
	<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/wiki/Special:Contributions/TeeNekk"/>
	<updated>2026-05-05T04:29:14Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.39.3</generator>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=PL/IsElementFrozen&amp;diff=55128</id>
		<title>PL/IsElementFrozen</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=PL/IsElementFrozen&amp;diff=55128"/>
		<updated>2018-05-26T06:28:59Z</updated>

		<summary type="html">&lt;p&gt;TeeNekk: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{PL/Shared function}}&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
bool isElementFrozen ( element theElement )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
{{OOP||[[element]]:isFrozen|frozen|setElementFrozen}}&lt;br /&gt;
&lt;br /&gt;
===Wymagane argumenty=== &lt;br /&gt;
*'''theElement:''' Element, który sprawdzamy czy jest zamrożony&lt;br /&gt;
===Wynik===&lt;br /&gt;
*Zwraca ''true'' jeżeli obiekt jest zamrożony, ''false'' jeżeli nie jest lub gdy argument został niepoprawnie wypełniony.&lt;br /&gt;
&lt;br /&gt;
==Przykłady==&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;
Ten przykład pokaże Ci, jak zrobić komendę która freezuje lub odfreezowywuje gracza.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
 function freezeStatus(thePlayer)&lt;br /&gt;
  if isElementFrozen(thePlayer) then&lt;br /&gt;
    setElementFrozen(thePlayer,false)&lt;br /&gt;
    outputChatBox(&amp;quot;Wyłączyłeś zamrożenie!&amp;quot;,thePlayer)&lt;br /&gt;
  else&lt;br /&gt;
    setElementFrozen(thePlayer,true)&lt;br /&gt;
    outputChatBox(&amp;quot;Włączyłeś zamrożenie!&amp;quot;,thePlayer)&lt;br /&gt;
  end&lt;br /&gt;
end&lt;br /&gt;
addCommandHandler(&amp;quot;zamroz&amp;quot;,freezeStatus)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;/section&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br/&amp;gt;&lt;br /&gt;
''Autor: [[User:TeeNekk|TeeNekk]], utworzono: 11:42 11 Kwi 2018 (CEST)''&lt;br /&gt;
&amp;lt;br/&amp;gt;''Author: [[User:TeeNekk|TeeNekk]], created: 09:42 11 Apr 2018 (UTC)''&lt;br /&gt;
&lt;br /&gt;
==Zobacz również==&lt;br /&gt;
{{Element_functions}}&lt;/div&gt;</summary>
		<author><name>TeeNekk</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=PL/IsElementFrozen&amp;diff=55127</id>
		<title>PL/IsElementFrozen</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=PL/IsElementFrozen&amp;diff=55127"/>
		<updated>2018-05-26T06:28:08Z</updated>

		<summary type="html">&lt;p&gt;TeeNekk: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{PL/Shared function}}&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
bool isElementFrozen ( element theElement )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
{{OOP||[[element]]:isFrozen|frozen|setElementFrozen}}&lt;br /&gt;
&lt;br /&gt;
===Wymagane argumenty=== &lt;br /&gt;
*'''theElement:''' Element, który sprawdzamy czy jest zamrożony&lt;br /&gt;
===Wynik===&lt;br /&gt;
*Zwraca ''true'' jeżeli obiekt jest zamrożony, ''false'' jeżeli nie jest lub gdy argument został niepoprawnie wypełniony.&lt;br /&gt;
&lt;br /&gt;
==Example==&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;
Ten przykład pokaże Ci, jak zrobić komendę która freezuje lub odfreezowywuje gracza.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
 function freezeStatus(thePlayer)&lt;br /&gt;
  if isElementFrozen(thePlayer) then&lt;br /&gt;
    setElementFrozen(thePlayer,false)&lt;br /&gt;
    outputChatBox(&amp;quot;Wyłączyłeś zamrożenie!&amp;quot;,thePlayer)&lt;br /&gt;
  else&lt;br /&gt;
    setElementFrozen(thePlayer,true)&lt;br /&gt;
    outputChatBox(&amp;quot;Włączyłeś zamrożenie!&amp;quot;,thePlayer)&lt;br /&gt;
  end&lt;br /&gt;
end&lt;br /&gt;
addCommandHandler(&amp;quot;zamroz&amp;quot;,freezeStatus)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;/section&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br/&amp;gt;&lt;br /&gt;
''Autor: [[User:TeeNekk|TeeNekk]], utworzono: 11:42 11 Kwi 2018 (CEST)''&lt;br /&gt;
&amp;lt;br/&amp;gt;''Author: [[User:TeeNekk|TeeNekk]], created: 09:42 11 Apr 2018 (UTC)''&lt;br /&gt;
&lt;br /&gt;
==Zobacz również==&lt;br /&gt;
{{Element_functions}}&lt;/div&gt;</summary>
		<author><name>TeeNekk</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=PL/IsElementFrozen&amp;diff=54698</id>
		<title>PL/IsElementFrozen</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=PL/IsElementFrozen&amp;diff=54698"/>
		<updated>2018-04-11T10:03:34Z</updated>

		<summary type="html">&lt;p&gt;TeeNekk: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{PL/Shared function}}&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
bool isElementFrozen ( element theElement )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
{{OOP||[[element]]:isFrozen|frozen|setElementFrozen}}&lt;br /&gt;
&lt;br /&gt;
===Wymagane argumenty=== &lt;br /&gt;
*'''theElement:''' Element, który sprawdzamy czy jest zamrożony&lt;br /&gt;
===Wynik===&lt;br /&gt;
*Returns ''true'' jeżeli obiekt jest zamrożony, ''false'' jeżeli nie jest lub gdy argument został niepoprawnie wypełniony.&lt;br /&gt;
&lt;br /&gt;
==Example==&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;
Ten przykład pokaże Ci, jak zrobić komendę która freezuje lub odfreezowywuje gracza.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function freezeStatus(thePlayer)&lt;br /&gt;
if isElementFrozen(thePlayer) then&lt;br /&gt;
setElementFrozen(thePlayer,false)&lt;br /&gt;
outputChatBox(&amp;quot;Wyłączyłeś zamrożenie!&amp;quot;,thePlayer)&lt;br /&gt;
else&lt;br /&gt;
setElementFrozen(thePlayer,true)&lt;br /&gt;
outputChatBox(&amp;quot;Włączyłeś zamrożenie!&amp;quot;,thePlayer)&lt;br /&gt;
end&lt;br /&gt;
end&lt;br /&gt;
addCommandHandler(&amp;quot;zamroz&amp;quot;,freezeStatus)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;/section&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br/&amp;gt;&lt;br /&gt;
''Autor: [[User:TeeNekk|TeeNekk]], utworzono: 11:42 11 Kwi 2018 (CEST)''&lt;br /&gt;
&amp;lt;br/&amp;gt;''Author: [[User:TeeNekk|TeeNekk]], created: 09:42 11 Apr 2018 (UTC)''&lt;br /&gt;
&lt;br /&gt;
==Zobacz również==&lt;br /&gt;
{{Element_functions}}&lt;/div&gt;</summary>
		<author><name>TeeNekk</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=PL/IsElementFrozen&amp;diff=54697</id>
		<title>PL/IsElementFrozen</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=PL/IsElementFrozen&amp;diff=54697"/>
		<updated>2018-04-11T10:02:56Z</updated>

		<summary type="html">&lt;p&gt;TeeNekk: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{PL/Shared function}}&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
bool isElementFrozen ( element theElement )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
{{OOP||[[element]]:isFrozen|frozen|setElementFrozen}}&lt;br /&gt;
&lt;br /&gt;
===Required Arguments=== &lt;br /&gt;
*'''theElement:''' Element, który sprawdzamy czy jest zamrożony&lt;br /&gt;
===Returns===&lt;br /&gt;
*Returns ''true'' jeżeli obiekt jest zamrożony, ''false'' jeżeli nie jest lub gdy argument został niepoprawnie wypełniony.&lt;br /&gt;
&lt;br /&gt;
==Example==&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;
Ten przykład pokaże Ci, jak zrobić komendę która freezuje lub odfreezowywuje gracza.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function freezeStatus(thePlayer)&lt;br /&gt;
if isElementFrozen(thePlayer) then&lt;br /&gt;
setElementFrozen(thePlayer,false)&lt;br /&gt;
outputChatBox(&amp;quot;Wyłączyłeś zamrożenie!&amp;quot;,thePlayer)&lt;br /&gt;
else&lt;br /&gt;
setElementFrozen(thePlayer,true)&lt;br /&gt;
outputChatBox(&amp;quot;Włączyłeś zamrożenie!&amp;quot;,thePlayer)&lt;br /&gt;
end&lt;br /&gt;
end&lt;br /&gt;
addCommandHandler(&amp;quot;zamroz&amp;quot;,freezeStatus)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;/section&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br/&amp;gt;&lt;br /&gt;
''Autor: [[User:TeeNekk|TeeNekk]], utworzono: 11:42 11 Kwi 2018 (CEST)''&lt;br /&gt;
&amp;lt;br/&amp;gt;''Author: [[User:TeeNekk|TeeNekk]], created: 09:42 11 Apr 2018 (UTC)''&lt;br /&gt;
&lt;br /&gt;
==Zobacz również==&lt;br /&gt;
{{Element_functions}}&lt;/div&gt;</summary>
		<author><name>TeeNekk</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=PL/SetPedArmor&amp;diff=54696</id>
		<title>PL/SetPedArmor</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=PL/SetPedArmor&amp;diff=54696"/>
		<updated>2018-04-11T10:01:10Z</updated>

		<summary type="html">&lt;p&gt;TeeNekk: Created page with &amp;quot;{{Server function}} Ta funkcja odpowiedzialna jest za ustawianie procentów kamizelki dla ped. ==Syntax== &amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt; bool setPedArmor ( ped thePed, float...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Server function}}&lt;br /&gt;
Ta funkcja odpowiedzialna jest za ustawianie procentów kamizelki dla [[ped]].&lt;br /&gt;
==Syntax==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
bool setPedArmor ( ped thePed, float armor )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{OOP||[[ped]]:setArmor|armor|getPedArmor}}&lt;br /&gt;
&lt;br /&gt;
===Wymagane argumenty===&lt;br /&gt;
*'''thePed''': [[ped]] któremu ustawimy odpowiednią ilość kamizelki..&lt;br /&gt;
*'''armor''': Ilość ustawianej kamizelki (od 0 do 100).&lt;br /&gt;
&lt;br /&gt;
===Wynik===&lt;br /&gt;
Zwraca ''true'' jeżeli zmieniono poprawnie ilość kamizelki, ''false'' jeżeli któryś z argumentów został źle uzupełniony, lub ilość nie była w zakresie od zera do stu.&lt;br /&gt;
&lt;br /&gt;
==Przykłady==&lt;br /&gt;
Ten przykład, pokazuje jak wykonać żeby po wpisaniu addarmor ustawiło naszą kamizelkę na 100 procent, oraz po wpisaniu removearmor ustawiło na zero procent.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function armor (player, command)&lt;br /&gt;
   if command == &amp;quot;addarmor&amp;quot; then  -- jeżeli gracz wpisał komendę &amp;quot;addarmor&amp;quot;&lt;br /&gt;
      setPedArmor ( player, 100 )    --Ustawiamy graczowi, który wpisał komendę jego kamizelkę na sto procent&lt;br /&gt;
   elseif command == &amp;quot;removearmor&amp;quot; then -- jeżeli jednak wpisał on &amp;quot;removearmor&amp;quot;&lt;br /&gt;
      setPedArmor ( player, 0 )      -- Ustawiamy jego kamizelkę na zero procent&lt;br /&gt;
   end &lt;br /&gt;
end&lt;br /&gt;
addCommandHandler (&amp;quot;addarmor&amp;quot;, armor) -- dodajemy komendy.&lt;br /&gt;
addCommandHandler (&amp;quot;removearmor&amp;quot;, armor)&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
==Zobacz również==&lt;br /&gt;
{{Ped functions}}&lt;br /&gt;
[[ru:setPedArmor]]&lt;/div&gt;</summary>
		<author><name>TeeNekk</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=PL/IsElementFrozen&amp;diff=54695</id>
		<title>PL/IsElementFrozen</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=PL/IsElementFrozen&amp;diff=54695"/>
		<updated>2018-04-11T09:49:28Z</updated>

		<summary type="html">&lt;p&gt;TeeNekk: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{PL/Shared function}}&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
bool isElementFrozen ( element theElement )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
{{OOP||[[element]]:isFrozen|frozen|setElementFrozen}}&lt;br /&gt;
&lt;br /&gt;
===Required Arguments=== &lt;br /&gt;
*'''theElement:''' Element, który sprawdzamy czy jest zamrożony&lt;br /&gt;
===Returns===&lt;br /&gt;
*Returns ''true'' jeżeli obiekt jest zamrożony, ''false'' jeżeli nie jest lub gdy argument został niepoprawnie wypełniony.&lt;br /&gt;
&lt;br /&gt;
==Example==&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;
Ten przykład pokaże Ci, jak zrobić komendę która freezuje lub odfreezowywuje gracza.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function freezeStatus(thePlayer)&lt;br /&gt;
if isElementFrozen(thePlayer) then&lt;br /&gt;
setElementFrozen(thePlayer,false)&lt;br /&gt;
outputChatBox(&amp;quot;Wyłączyłeś zamrożenie!&amp;quot;,thePlayer)&lt;br /&gt;
else&lt;br /&gt;
setElementFrozen(thePlayer,true)&lt;br /&gt;
outputChatBox(&amp;quot;Włączyłeś zamrożenie!&amp;quot;,thePlayer)&lt;br /&gt;
end&lt;br /&gt;
end&lt;br /&gt;
addCommandHandler(&amp;quot;zamroz&amp;quot;,freezeStatus)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;/section&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br/&amp;gt;&lt;br /&gt;
''Autor: [[User:TeeNekk|TeeNekk]], utworzono: 11:42 11 Kwi 2018 (CEST)''&lt;br /&gt;
&amp;lt;br/&amp;gt;''Author: [[User:TeeNekk|TeeNekk]], created: 09:42 11 Apr 2018 (UTC)''&lt;/div&gt;</summary>
		<author><name>TeeNekk</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=PL/IsElementFrozen&amp;diff=54694</id>
		<title>PL/IsElementFrozen</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=PL/IsElementFrozen&amp;diff=54694"/>
		<updated>2018-04-11T09:46:17Z</updated>

		<summary type="html">&lt;p&gt;TeeNekk: /* Required Arguments */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
bool isElementFrozen ( element theElement )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
{{OOP||[[element]]:isFrozen|frozen|setElementFrozen}}&lt;br /&gt;
&lt;br /&gt;
===Wymagane argumenty=== &lt;br /&gt;
*'''theElement:''' Element, który sprawdzamy czy jest zamrożony&lt;br /&gt;
&lt;br /&gt;
===Wynik===&lt;br /&gt;
*Zwraca ''true'' jeżeli obiekt jest zamrożony, ''false'' jeżeli nie jest lub gdy argument został niepoprawnie wypełniony.&lt;br /&gt;
&lt;br /&gt;
==Example==&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;
Ten przykład pokaże Ci, jak zrobić komendę która freezuje lub odfreezowywuje gracza.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function freezeStatus(thePlayer)&lt;br /&gt;
if isElementFrozen(thePlayer) then&lt;br /&gt;
setElementFrozen(thePlayer,false)&lt;br /&gt;
outputChatBox(&amp;quot;Wyłączyłeś zamrożenie!&amp;quot;,thePlayer)&lt;br /&gt;
else&lt;br /&gt;
setElementFrozen(thePlayer,true)&lt;br /&gt;
outputChatBox(&amp;quot;Włączyłeś zamrożenie!&amp;quot;,thePlayer)&lt;br /&gt;
end&lt;br /&gt;
end&lt;br /&gt;
addCommandHandler(&amp;quot;zamroz&amp;quot;,freezeStatus)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;/section&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br/&amp;gt;&lt;br /&gt;
''Autor: [[User:TeeNekk|TeeNekk]], utworzono: 11:42 11 Kwi 2018 (CEST)''&lt;br /&gt;
&amp;lt;br/&amp;gt;''Author: [[User:TeeNekk|TeeNekk]], created: 09:42 11 Apr 2018 (UTC)''&lt;/div&gt;</summary>
		<author><name>TeeNekk</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=PL/IsElementFrozen&amp;diff=54693</id>
		<title>PL/IsElementFrozen</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=PL/IsElementFrozen&amp;diff=54693"/>
		<updated>2018-04-11T09:46:05Z</updated>

		<summary type="html">&lt;p&gt;TeeNekk: /* Returns */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
bool isElementFrozen ( element theElement )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
{{OOP||[[element]]:isFrozen|frozen|setElementFrozen}}&lt;br /&gt;
&lt;br /&gt;
===Required Arguments=== &lt;br /&gt;
*'''theElement:''' Element, który sprawdzamy czy jest zamrożony&lt;br /&gt;
===Wynik===&lt;br /&gt;
*Zwraca ''true'' jeżeli obiekt jest zamrożony, ''false'' jeżeli nie jest lub gdy argument został niepoprawnie wypełniony.&lt;br /&gt;
&lt;br /&gt;
==Example==&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;
Ten przykład pokaże Ci, jak zrobić komendę która freezuje lub odfreezowywuje gracza.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function freezeStatus(thePlayer)&lt;br /&gt;
if isElementFrozen(thePlayer) then&lt;br /&gt;
setElementFrozen(thePlayer,false)&lt;br /&gt;
outputChatBox(&amp;quot;Wyłączyłeś zamrożenie!&amp;quot;,thePlayer)&lt;br /&gt;
else&lt;br /&gt;
setElementFrozen(thePlayer,true)&lt;br /&gt;
outputChatBox(&amp;quot;Włączyłeś zamrożenie!&amp;quot;,thePlayer)&lt;br /&gt;
end&lt;br /&gt;
end&lt;br /&gt;
addCommandHandler(&amp;quot;zamroz&amp;quot;,freezeStatus)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;/section&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br/&amp;gt;&lt;br /&gt;
''Autor: [[User:TeeNekk|TeeNekk]], utworzono: 11:42 11 Kwi 2018 (CEST)''&lt;br /&gt;
&amp;lt;br/&amp;gt;''Author: [[User:TeeNekk|TeeNekk]], created: 09:42 11 Apr 2018 (UTC)''&lt;/div&gt;</summary>
		<author><name>TeeNekk</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=PL/IsElementFrozen&amp;diff=54692</id>
		<title>PL/IsElementFrozen</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=PL/IsElementFrozen&amp;diff=54692"/>
		<updated>2018-04-11T09:45:32Z</updated>

		<summary type="html">&lt;p&gt;TeeNekk: /* Returns */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
bool isElementFrozen ( element theElement )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
{{OOP||[[element]]:isFrozen|frozen|setElementFrozen}}&lt;br /&gt;
&lt;br /&gt;
===Required Arguments=== &lt;br /&gt;
*'''theElement:''' Element, który sprawdzamy czy jest zamrożony&lt;br /&gt;
===Returns===&lt;br /&gt;
*Zwraca ''true'' jeżeli obiekt jest zamrożony, ''false'' jeżeli nie jest lub gdy argument został niepoprawnie wypełniony.&lt;br /&gt;
&lt;br /&gt;
==Example==&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;
Ten przykład pokaże Ci, jak zrobić komendę która freezuje lub odfreezowywuje gracza.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function freezeStatus(thePlayer)&lt;br /&gt;
if isElementFrozen(thePlayer) then&lt;br /&gt;
setElementFrozen(thePlayer,false)&lt;br /&gt;
outputChatBox(&amp;quot;Wyłączyłeś zamrożenie!&amp;quot;,thePlayer)&lt;br /&gt;
else&lt;br /&gt;
setElementFrozen(thePlayer,true)&lt;br /&gt;
outputChatBox(&amp;quot;Włączyłeś zamrożenie!&amp;quot;,thePlayer)&lt;br /&gt;
end&lt;br /&gt;
end&lt;br /&gt;
addCommandHandler(&amp;quot;zamroz&amp;quot;,freezeStatus)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;/section&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br/&amp;gt;&lt;br /&gt;
''Autor: [[User:TeeNekk|TeeNekk]], utworzono: 11:42 11 Kwi 2018 (CEST)''&lt;br /&gt;
&amp;lt;br/&amp;gt;''Author: [[User:TeeNekk|TeeNekk]], created: 09:42 11 Apr 2018 (UTC)''&lt;/div&gt;</summary>
		<author><name>TeeNekk</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=PL/IsElementFrozen&amp;diff=54691</id>
		<title>PL/IsElementFrozen</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=PL/IsElementFrozen&amp;diff=54691"/>
		<updated>2018-04-11T09:44:35Z</updated>

		<summary type="html">&lt;p&gt;TeeNekk: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
bool isElementFrozen ( element theElement )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
{{OOP||[[element]]:isFrozen|frozen|setElementFrozen}}&lt;br /&gt;
&lt;br /&gt;
===Required Arguments=== &lt;br /&gt;
*'''theElement:''' Element, który sprawdzamy czy jest zamrożony&lt;br /&gt;
===Returns===&lt;br /&gt;
*Returns ''true'' jeżeli obiekt jest zamrożony, ''false'' jeżeli nie jest lub gdy argument został niepoprawnie wypełniony.&lt;br /&gt;
&lt;br /&gt;
==Example==&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;
Ten przykład pokaże Ci, jak zrobić komendę która freezuje lub odfreezowywuje gracza.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function freezeStatus(thePlayer)&lt;br /&gt;
if isElementFrozen(thePlayer) then&lt;br /&gt;
setElementFrozen(thePlayer,false)&lt;br /&gt;
outputChatBox(&amp;quot;Wyłączyłeś zamrożenie!&amp;quot;,thePlayer)&lt;br /&gt;
else&lt;br /&gt;
setElementFrozen(thePlayer,true)&lt;br /&gt;
outputChatBox(&amp;quot;Włączyłeś zamrożenie!&amp;quot;,thePlayer)&lt;br /&gt;
end&lt;br /&gt;
end&lt;br /&gt;
addCommandHandler(&amp;quot;zamroz&amp;quot;,freezeStatus)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;/section&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br/&amp;gt;&lt;br /&gt;
''Autor: [[User:TeeNekk|TeeNekk]], utworzono: 11:42 11 Kwi 2018 (CEST)''&lt;br /&gt;
&amp;lt;br/&amp;gt;''Author: [[User:TeeNekk|TeeNekk]], created: 09:42 11 Apr 2018 (UTC)''&lt;/div&gt;</summary>
		<author><name>TeeNekk</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=PL/IsElementFrozen&amp;diff=54690</id>
		<title>PL/IsElementFrozen</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=PL/IsElementFrozen&amp;diff=54690"/>
		<updated>2018-04-11T09:37:33Z</updated>

		<summary type="html">&lt;p&gt;TeeNekk: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
bool isElementFrozen ( element theElement )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
{{OOP||[[element]]:isFrozen|frozen|setElementFrozen}}&lt;br /&gt;
&lt;br /&gt;
===Required Arguments=== &lt;br /&gt;
*'''theElement:''' Element, który sprawdzamy czy jest zamrożony&lt;br /&gt;
===Returns===&lt;br /&gt;
*Returns ''true'' jeżeli obiekt jest zamrożony, ''false'' jeżeli nie jest lub gdy argument został niepoprawnie wypełniony.&lt;br /&gt;
&lt;br /&gt;
==Example==&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;
Ten przykład pokaże Ci, jak zrobić komendę która freezuje lub odfreezowywuje gracza.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function freezeStatus(thePlayer)&lt;br /&gt;
if isElementFrozen(thePlayer) then&lt;br /&gt;
setElementFrozen(thePlayer,false)&lt;br /&gt;
outputChatBox(&amp;quot;Wyłączyłeś zamrożenie!&amp;quot;,thePlayer)&lt;br /&gt;
else&lt;br /&gt;
setElementFrozen(thePlayer,true)&lt;br /&gt;
outputChatBox(&amp;quot;Włączyłeś zamrożenie!&amp;quot;,thePlayer)&lt;br /&gt;
end&lt;br /&gt;
end&lt;br /&gt;
addCommandHandler(&amp;quot;zamroz&amp;quot;,freezeStatus)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;/section&amp;gt;&lt;/div&gt;</summary>
		<author><name>TeeNekk</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=PL/IsElementFrozen&amp;diff=54689</id>
		<title>PL/IsElementFrozen</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=PL/IsElementFrozen&amp;diff=54689"/>
		<updated>2018-04-11T09:28:38Z</updated>

		<summary type="html">&lt;p&gt;TeeNekk: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
bool isElementFrozen ( element theElement )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
{{OOP||[[element]]:isFrozen|frozen|setElementFrozen}}&lt;br /&gt;
&lt;br /&gt;
===Required Arguments=== &lt;br /&gt;
*'''theElement:''' Element, który sprawdzamy czy jest zamrożony&lt;br /&gt;
===Returns===&lt;br /&gt;
*Returns ''true'' jeżeli obiekt jest zamrożony, ''false'' jeżeli nie jest lub gdy nie podaliśmy dobrego argumentu.&lt;/div&gt;</summary>
		<author><name>TeeNekk</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=PL/IsElementFrozen&amp;diff=54688</id>
		<title>PL/IsElementFrozen</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=PL/IsElementFrozen&amp;diff=54688"/>
		<updated>2018-04-11T09:27:07Z</updated>

		<summary type="html">&lt;p&gt;TeeNekk: Created page with &amp;quot;&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt; bool isElementFrozen ( element theElement ) &amp;lt;/syntaxhighlight&amp;gt;  {{OOP||element:isFrozen|frozen|setElementFrozen}}  ===Required Arguments===  *...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
bool isElementFrozen ( element theElement )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
{{OOP||[[element]]:isFrozen|frozen|setElementFrozen}}&lt;br /&gt;
&lt;br /&gt;
===Required Arguments=== &lt;br /&gt;
*'''theElement:''' the element whose freeze status we want to check.&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
*Returns ''true'' if the element is frozen, ''false'' if it isn't or if invalid arguments were passed.&lt;/div&gt;</summary>
		<author><name>TeeNekk</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=PL/getPlayerPing&amp;diff=54687</id>
		<title>PL/getPlayerPing</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=PL/getPlayerPing&amp;diff=54687"/>
		<updated>2018-04-11T09:24:27Z</updated>

		<summary type="html">&lt;p&gt;TeeNekk: /* Przykłady */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__&lt;br /&gt;
{{PL/Shared function}}&lt;br /&gt;
Dzięki tej funkcji możesz pobrać aktualny stan pingu danego [[player|gracza]]. Ping to inaczej liczba milisekund, określająca ile czasu zajmuje transmisja pakietów danych wysyłana z klienta na serwer (oraz vice versa).&lt;br /&gt;
&lt;br /&gt;
==Składnia==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;int getPlayerPing ( player thePlayer )&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{PL/OOP||[[player]]:getPing|ping|}}&lt;br /&gt;
===Wymagane argumenty===&lt;br /&gt;
*'''thePlayer''': Element [[player|gracza]], którego ping chcesz zmierzyć.&lt;br /&gt;
&lt;br /&gt;
===Wynik===&lt;br /&gt;
Zwraca ping wybranego gracza w postaci [[int|liczby całkowitej]]. Zwraca ''false'', jeżeli gracza nie znaleziono.&lt;br /&gt;
&lt;br /&gt;
==Przykłady==&lt;br /&gt;
&amp;lt;section name=&amp;quot;Przykład nr 1: Serwer&amp;quot; class=&amp;quot;server&amp;quot; show=&amp;quot;true&amp;quot;&amp;gt;&lt;br /&gt;
Ten przykład co 5 sekund wyrzuca z serwera graczy, których ping przekroczył 500ms.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function sprawdzPingi() -- tworzymy funkcję...&lt;br /&gt;
   for _, gracz in ipairs( getElementsByType(&amp;quot;player&amp;quot;) ) do -- ...a w niej pętlę 'for' sprawdzającą wszystkich graczy...&lt;br /&gt;
      if ( getPlayerPing( gracz) &amp;gt;= 500 ) then -- ...i jeżeli ping któregoś z nich przekroczy 500...&lt;br /&gt;
         kickPlayer( gracz, &amp;quot;Twój ping jest zbyt wysoki (ponad 500)!&amp;quot; ) -- ...to wyrzucamy go z serwera&lt;br /&gt;
      end&lt;br /&gt;
   end&lt;br /&gt;
end&lt;br /&gt;
setTimer( sprawdzPingi, 5000, 0 ) -- nie zapominamy również o timerze, który będzie wywoływał naszą funkcję co 5s&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;/section&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;section name=&amp;quot;Przykład nr 2: Klient&amp;quot; class=&amp;quot;client&amp;quot; show=&amp;quot;true&amp;quot;&amp;gt;&lt;br /&gt;
Ten przykład dodaje komendę o nazwie 'ping', która będzie sprawdzać ping gracza, i jeżeli przekroczy on 100ms - gracz zostanie o tym poinformowany.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function sprawdzPing() --tworzymy funkcję, w której...&lt;br /&gt;
   local ping = getPlayerPing( getLocalPlayer() ) -- ...sprawdzamy ping gracza...&lt;br /&gt;
   if ( ping &amp;gt; 100 ) then -- ...i jeżeli przekroczy on 100...&lt;br /&gt;
      outputChatBox( &amp;quot;Twój ping jest dosyć wysoki (ponad 100), postaraj się go zmniejszyć.&amp;quot; ) -- ...informujemy o tym gracza&lt;br /&gt;
   end&lt;br /&gt;
end&lt;br /&gt;
addCommandHandler( &amp;quot;ping&amp;quot;, sprawdzPing ) -- obowiązkowo podłączamy również funkcję pod commandHandler&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;/section&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br/&amp;gt;&lt;br /&gt;
''Autor: [[User:GabWas|GabWas]]; utworzono: 13:01, 21 Lip 2016 (CEST)''&lt;br /&gt;
&amp;lt;br/&amp;gt;''Author: [[User:GabWas|GabWas]]; created: 11:01, 21 Jul 2016 (UTC)''&lt;br /&gt;
&lt;br /&gt;
==Zobacz również==&lt;br /&gt;
{{Player functions}}&lt;br /&gt;
[[en:getPlayerPing]]&lt;br /&gt;
[[ru:getPlayerPing]]&lt;/div&gt;</summary>
		<author><name>TeeNekk</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=HandlingSetABS&amp;diff=54648</id>
		<title>HandlingSetABS</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=HandlingSetABS&amp;diff=54648"/>
		<updated>2018-04-09T09:39:41Z</updated>

		<summary type="html">&lt;p&gt;TeeNekk: /* Example */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__&lt;br /&gt;
{{Server function}}&lt;br /&gt;
{{Needs_Example}}&lt;br /&gt;
Turns ABS on or off for a handling element.&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 handlingSetABS ( handling theHandling, bool ABS )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Required Arguments===&lt;br /&gt;
*'''theHandling:''' the handling of which you want to toggle the ABS.&lt;br /&gt;
*'''ABS:''' ''true'' to turn ABS on, ''false'' to turn it off.&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns ''true'' on success, ''false'' in case of failure.&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function turnABS(thePlayer)&lt;br /&gt;
	local theVehicle = getPedOccupiedVehicle(thePlayer) -- Get thePlayer vehicle&lt;br /&gt;
	if not theVehicle then return end -- if the player is not in the vehicle then cancel&lt;br /&gt;
		local ABS = getVehicleHandlingProperty(theVehicle,&amp;quot;ABS&amp;quot;) -- We will use the additional function that you will find under this one. That will be more convenient.&lt;br /&gt;
		if ABS == true then -- Check, if ABS is turn on then turn its off.&lt;br /&gt;
			setVehicleHandling(theVehicle,&amp;quot;ABS&amp;quot;,false)&lt;br /&gt;
			outputChatBox(&amp;quot;You turn off ABS&amp;quot;,thePlayer)&lt;br /&gt;
		else -- ABS is off. Turn on this.&lt;br /&gt;
	setVehicleHandling(theVehicle,&amp;quot;ABS&amp;quot;,true)&lt;br /&gt;
	outputChatBox(&amp;quot;You turn on ABS&amp;quot;,thePlayer)&lt;br /&gt;
    end&lt;br /&gt;
end&lt;br /&gt;
	addCommandHandler(&amp;quot;ABS&amp;quot;,turnABS)&lt;br /&gt;
	&lt;br /&gt;
	function getVehicleHandlingProperty ( element, property )&lt;br /&gt;
    if isElement ( element ) and getElementType ( element ) == &amp;quot;vehicle&amp;quot; and type ( property ) == &amp;quot;string&amp;quot; then -- Make sure there's a valid vehicle and a property string&lt;br /&gt;
        local handlingTable = getVehicleHandling ( element ) -- Get the handling as table and save as handlingTable&lt;br /&gt;
        local value = handlingTable[property] -- Get the value from the table&lt;br /&gt;
        &lt;br /&gt;
        if value then -- If there's a value (valid property) &lt;br /&gt;
			return value -- Return it&lt;br /&gt;
        end&lt;br /&gt;
    end&lt;br /&gt;
    &lt;br /&gt;
    return false -- Not an element, not a vehicle or no valid property string. Return failure&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{Handling_functions}}&lt;/div&gt;</summary>
		<author><name>TeeNekk</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=HandlingSetABS&amp;diff=54647</id>
		<title>HandlingSetABS</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=HandlingSetABS&amp;diff=54647"/>
		<updated>2018-04-09T09:19:13Z</updated>

		<summary type="html">&lt;p&gt;TeeNekk: /* Example */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__&lt;br /&gt;
{{Server function}}&lt;br /&gt;
{{Needs_Example}}&lt;br /&gt;
Turns ABS on or off for a handling element.&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 handlingSetABS ( handling theHandling, bool ABS )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Required Arguments===&lt;br /&gt;
*'''theHandling:''' the handling of which you want to toggle the ABS.&lt;br /&gt;
*'''ABS:''' ''true'' to turn ABS on, ''false'' to turn it off.&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns ''true'' on success, ''false'' in case of failure.&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function turnABS(thePlayer)&lt;br /&gt;
	local theVehicle = getPedOccupiedVehicle(thePlayer) -- Get thePlayer vehicle&lt;br /&gt;
	if not theVehicle then return end -- if the player is not in the vehicle then cancel&lt;br /&gt;
		local ABS = getVehicleHandlingProperty(theVehicle,&amp;quot;ABS&amp;quot;) -- We will use the additional function that you will find under this one. That will be more convenient.&lt;br /&gt;
		if ABS == true then -- Check, if ABS is turn on then turn its off.&lt;br /&gt;
			setVehicleHandling(theVehicle,&amp;quot;ABS&amp;quot;,false)&lt;br /&gt;
			outputChatBox(&amp;quot;You turn off ABS&amp;quot;)&lt;br /&gt;
		else -- ABS is off. Turn on this.&lt;br /&gt;
	setVehicleHandling(theVehicle,&amp;quot;ABS&amp;quot;,true)&lt;br /&gt;
	outputChatBox(&amp;quot;You turn on ABS&amp;quot;)&lt;br /&gt;
    end&lt;br /&gt;
end&lt;br /&gt;
	addCommandHandler(&amp;quot;ABS&amp;quot;,turnABS)&lt;br /&gt;
	&lt;br /&gt;
	function getVehicleHandlingProperty ( element, property )&lt;br /&gt;
    if isElement ( element ) and getElementType ( element ) == &amp;quot;vehicle&amp;quot; and type ( property ) == &amp;quot;string&amp;quot; then -- Make sure there's a valid vehicle and a property string&lt;br /&gt;
        local handlingTable = getVehicleHandling ( element ) -- Get the handling as table and save as handlingTable&lt;br /&gt;
        local value = handlingTable[property] -- Get the value from the table&lt;br /&gt;
        &lt;br /&gt;
        if value then -- If there's a value (valid property) &lt;br /&gt;
			return value -- Return it&lt;br /&gt;
        end&lt;br /&gt;
    end&lt;br /&gt;
    &lt;br /&gt;
    return false -- Not an element, not a vehicle or no valid property string. Return failure&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{Handling_functions}}&lt;/div&gt;</summary>
		<author><name>TeeNekk</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=HandlingSetABS&amp;diff=54646</id>
		<title>HandlingSetABS</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=HandlingSetABS&amp;diff=54646"/>
		<updated>2018-04-09T09:18:26Z</updated>

		<summary type="html">&lt;p&gt;TeeNekk: /* Example */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__&lt;br /&gt;
{{Server function}}&lt;br /&gt;
{{Needs_Example}}&lt;br /&gt;
Turns ABS on or off for a handling element.&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 handlingSetABS ( handling theHandling, bool ABS )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Required Arguments===&lt;br /&gt;
*'''theHandling:''' the handling of which you want to toggle the ABS.&lt;br /&gt;
*'''ABS:''' ''true'' to turn ABS on, ''false'' to turn it off.&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns ''true'' on success, ''false'' in case of failure.&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
	function turnABS(thePlayer)&lt;br /&gt;
		local theVehicle = getPedOccupiedVehicle(thePlayer) -- Get thePlayer vehicle&lt;br /&gt;
		if not theVehicle then return end -- if the player is not in the vehicle then cancel&lt;br /&gt;
			local ABS = getVehicleHandlingProperty(theVehicle,&amp;quot;ABS&amp;quot;) -- We will use the additional function that you will find under this one. That will be more convenient.&lt;br /&gt;
			if ABS == true then -- Check, if ABS is turn on then turn its off.&lt;br /&gt;
				setVehicleHandling(theVehicle,&amp;quot;ABS&amp;quot;,false)&lt;br /&gt;
				outputChatBox(&amp;quot;You turn off ABS&amp;quot;)&lt;br /&gt;
			else -- ABS is off. Turn on this.&lt;br /&gt;
		setVehicleHandling(theVehicle,&amp;quot;ABS&amp;quot;,true)&lt;br /&gt;
		outputChatBox(&amp;quot;You turn on ABS&amp;quot;)&lt;br /&gt;
	end&lt;br /&gt;
end&lt;br /&gt;
	addCommandHandler(&amp;quot;ABS&amp;quot;,turnABS)&lt;br /&gt;
	&lt;br /&gt;
	function getVehicleHandlingProperty ( element, property )&lt;br /&gt;
    if isElement ( element ) and getElementType ( element ) == &amp;quot;vehicle&amp;quot; and type ( property ) == &amp;quot;string&amp;quot; then -- Make sure there's a valid vehicle and a property string&lt;br /&gt;
        local handlingTable = getVehicleHandling ( element ) -- Get the handling as table and save as handlingTable&lt;br /&gt;
        local value = handlingTable[property] -- Get the value from the table&lt;br /&gt;
        &lt;br /&gt;
        if value then -- If there's a value (valid property) &lt;br /&gt;
			return value -- Return it&lt;br /&gt;
        end&lt;br /&gt;
    end&lt;br /&gt;
    &lt;br /&gt;
    return false -- Not an element, not a vehicle or no valid property string. Return failure&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{Handling_functions}}&lt;/div&gt;</summary>
		<author><name>TeeNekk</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=HandlingSetABS&amp;diff=54645</id>
		<title>HandlingSetABS</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=HandlingSetABS&amp;diff=54645"/>
		<updated>2018-04-09T09:16:56Z</updated>

		<summary type="html">&lt;p&gt;TeeNekk: /* Example */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__&lt;br /&gt;
{{Server function}}&lt;br /&gt;
{{Needs_Example}}&lt;br /&gt;
Turns ABS on or off for a handling element.&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 handlingSetABS ( handling theHandling, bool ABS )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Required Arguments===&lt;br /&gt;
*'''theHandling:''' the handling of which you want to toggle the ABS.&lt;br /&gt;
*'''ABS:''' ''true'' to turn ABS on, ''false'' to turn it off.&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns ''true'' on success, ''false'' in case of failure.&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function turnABS(thePlayer)&lt;br /&gt;
	local theVehicle = getPedOccupiedVehicle(thePlayer) -- Get thePlayer vehicle&lt;br /&gt;
	if not theVehicle then return end -- if the player is not in the vehicle then cancel&lt;br /&gt;
	local ABS = getVehicleHandlingProperty(theVehicle,&amp;quot;ABS&amp;quot;) -- We will use the additional function that you will find under this one. That will be more convenient.&lt;br /&gt;
	if ABS == true then -- Check, if ABS is turn on then turn its off.&lt;br /&gt;
	setVehicleHandling(theVehicle,&amp;quot;ABS&amp;quot;,false)&lt;br /&gt;
	outputChatBox(&amp;quot;You turn off ABS&amp;quot;)&lt;br /&gt;
	else -- ABS is off. Turn on this.&lt;br /&gt;
	setVehicleHandling(theVehicle,&amp;quot;ABS&amp;quot;,true)&lt;br /&gt;
	outputChatBox(&amp;quot;You turn on ABS&amp;quot;)&lt;br /&gt;
	end&lt;br /&gt;
	end&lt;br /&gt;
	addCommandHandler(&amp;quot;ABS&amp;quot;,turnABS)&lt;br /&gt;
	&lt;br /&gt;
	function getVehicleHandlingProperty ( element, property )&lt;br /&gt;
    if isElement ( element ) and getElementType ( element ) == &amp;quot;vehicle&amp;quot; and type ( property ) == &amp;quot;string&amp;quot; then -- Make sure there's a valid vehicle and a property string&lt;br /&gt;
        local handlingTable = getVehicleHandling ( element ) -- Get the handling as table and save as handlingTable&lt;br /&gt;
        local value = handlingTable[property] -- Get the value from the table&lt;br /&gt;
        &lt;br /&gt;
        if value then -- If there's a value (valid property) &lt;br /&gt;
			return value -- Return it&lt;br /&gt;
        end&lt;br /&gt;
    end&lt;br /&gt;
    &lt;br /&gt;
    return false -- Not an element, not a vehicle or no valid property string. Return failure&lt;br /&gt;
end&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{Handling_functions}}&lt;/div&gt;</summary>
		<author><name>TeeNekk</name></author>
	</entry>
</feed>