<?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=Krischkros</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=Krischkros"/>
	<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/wiki/Special:Contributions/Krischkros"/>
	<updated>2026-04-29T01:18:24Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.39.3</generator>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=String.count&amp;diff=31726</id>
		<title>String.count</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=String.count&amp;diff=31726"/>
		<updated>2012-06-30T11:10:32Z</updated>

		<summary type="html">&lt;p&gt;Krischkros: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;English:&lt;br /&gt;
&lt;br /&gt;
This Function counts a text from a text.&lt;br /&gt;
It is server side and client side!&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function string.count(text, search)&lt;br /&gt;
	if search and text then&lt;br /&gt;
		local string_count = 0&lt;br /&gt;
		for i in string.gfind(text, search) do&lt;br /&gt;
			string_count = string_count + 1&lt;br /&gt;
		end&lt;br /&gt;
		return string_count&lt;br /&gt;
	else&lt;br /&gt;
		return 0&lt;br /&gt;
	end&lt;br /&gt;
end&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Usage:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
outputChatbox(string.count(&amp;quot;A Text&amp;quot;, &amp;quot;T&amp;quot;)) -- and the result is 2!&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
German:&lt;br /&gt;
&lt;br /&gt;
Diese Funktion zählt euch auf, wie oft ein String in einem anderen gegeben String vorhanden ist.&lt;br /&gt;
Diese Funktion geht serverseitig, wie auch clientseitig.&lt;br /&gt;
Die Verwendung ist eigentlich ganz simpel, allerdings sehr nützlich!&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function string.count(text, search)&lt;br /&gt;
	if search and text then&lt;br /&gt;
		local string_count = 0&lt;br /&gt;
		for i in string.gfind(text, search) do&lt;br /&gt;
			string_count = string_count + 1&lt;br /&gt;
		end&lt;br /&gt;
		return string_count&lt;br /&gt;
	else&lt;br /&gt;
		return 0&lt;br /&gt;
	end&lt;br /&gt;
end&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Verwendung:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
outputChatbox(string.count(&amp;quot;Yeah, Senfsalat&amp;quot;, &amp;quot;a&amp;quot;)) -- Das Ergebnis btw. der Rückgabewert währe in diesem Fall 3. Da 3x &amp;quot;a&amp;quot; vorhanden ist.&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Code and Edit by Krischkros.&lt;/div&gt;</summary>
		<author><name>Krischkros</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=String.count&amp;diff=31725</id>
		<title>String.count</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=String.count&amp;diff=31725"/>
		<updated>2012-06-30T11:07:58Z</updated>

		<summary type="html">&lt;p&gt;Krischkros: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;English:&lt;br /&gt;
&lt;br /&gt;
This Function counts a text from a text.&lt;br /&gt;
It is server side and client side!&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function string.count(text, search)&lt;br /&gt;
	if search and text then&lt;br /&gt;
		local string_count = 0&lt;br /&gt;
		for i in string.gfind(text, search) do&lt;br /&gt;
			string_count = string_count + 1&lt;br /&gt;
		end&lt;br /&gt;
		return string_count&lt;br /&gt;
	else&lt;br /&gt;
		return 0&lt;br /&gt;
	end&lt;br /&gt;
end&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Usage:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
outputChatbox(string.count(&amp;quot;A Text&amp;quot;, &amp;quot;T&amp;quot;)) -- and the result is 2!&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
German:&lt;br /&gt;
&lt;br /&gt;
Diese Funktion zählt euch auf, wie oft ein String in einem anderen gegeben String vorhanden ist.&lt;br /&gt;
Diese Funktion geht serverseitig, wie auch clientseitig.&lt;br /&gt;
Die Verwendung ist eigentlich ganz simpel, allerdings sehr nützlich!&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function string.count(text, search)&lt;br /&gt;
	if search and text then&lt;br /&gt;
		local string_count = 0&lt;br /&gt;
		for i in string.gfind(text, search) do&lt;br /&gt;
			string_count = string_count + 1&lt;br /&gt;
		end&lt;br /&gt;
		return string_count&lt;br /&gt;
	else&lt;br /&gt;
		return 0&lt;br /&gt;
	end&lt;br /&gt;
end&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Verwendung:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
outputChatbox(string.count(&amp;quot;Yeah, Senfsalat&amp;quot;, &amp;quot;a&amp;quot;)) -- Das Ergebnis btw. der Rückgabewert währe in diesem Fall 3. Da 3x &amp;quot;a&amp;quot; vorhanden ist.&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;/div&gt;</summary>
		<author><name>Krischkros</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=String.count&amp;diff=31724</id>
		<title>String.count</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=String.count&amp;diff=31724"/>
		<updated>2012-06-30T11:06:06Z</updated>

		<summary type="html">&lt;p&gt;Krischkros: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;English:&lt;br /&gt;
&lt;br /&gt;
This Function counts a text from a text.&lt;br /&gt;
It is server side and client side!&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function string.count(text, search)&lt;br /&gt;
	if searchand text then&lt;br /&gt;
		local string_count = 0&lt;br /&gt;
		for i in string.gfind(text, search) do&lt;br /&gt;
			string_count = string_count + 1&lt;br /&gt;
		end&lt;br /&gt;
		return string_count&lt;br /&gt;
	else&lt;br /&gt;
		return 0&lt;br /&gt;
	end&lt;br /&gt;
end&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Usage:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
outputChatbox(string.count(&amp;quot;A Text&amp;quot;, &amp;quot;T&amp;quot;)) -- and the result is 2!&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
German:&lt;br /&gt;
&lt;br /&gt;
Diese Funktion zählt euch auf, wie oft ein String in einem anderen gegeben String vorhanden ist.&lt;br /&gt;
Diese Funktion geht serverseitig, wie auch clientseitig.&lt;br /&gt;
Die Verwendung ist eigentlich ganz simpel, allerdings sehr nützlich!&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function string.count(text, search)&lt;br /&gt;
	if searchand text then&lt;br /&gt;
		local string_count = 0&lt;br /&gt;
		for i in string.gfind(text, search) do&lt;br /&gt;
			string_count = string_count + 1&lt;br /&gt;
		end&lt;br /&gt;
		return string_count&lt;br /&gt;
	else&lt;br /&gt;
		return 0&lt;br /&gt;
	end&lt;br /&gt;
end&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Verwendung:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
outputChatbox(string.count(&amp;quot;Yeah, Senfsalat&amp;quot;, &amp;quot;a&amp;quot;)) -- Das Ergebnis btw. der Rückgabewert währe in diesem Fall 3. Da 3x &amp;quot;a&amp;quot; vorhanden ist.&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;/div&gt;</summary>
		<author><name>Krischkros</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=String.count&amp;diff=31723</id>
		<title>String.count</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=String.count&amp;diff=31723"/>
		<updated>2012-06-30T11:05:41Z</updated>

		<summary type="html">&lt;p&gt;Krischkros: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;English:&lt;br /&gt;
&lt;br /&gt;
This Function counts a text from a text.&lt;br /&gt;
It is server side and client side!&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function string.count(text, search)&lt;br /&gt;
	if searchand text then&lt;br /&gt;
		local string_count = 0&lt;br /&gt;
		for i in string.gfind(text, search) do&lt;br /&gt;
			string_count = string_count + 1&lt;br /&gt;
		end&lt;br /&gt;
		return string_count&lt;br /&gt;
	else&lt;br /&gt;
		return 0&lt;br /&gt;
	end&lt;br /&gt;
end&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Usage:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
outputChatbox(string.count(&amp;quot;A Text&amp;quot;, &amp;quot;T&amp;quot;)) -- and the result is 2!&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
German:&lt;br /&gt;
&lt;br /&gt;
Diese Funktion zählt euch auf, wie oft ein String in einem anderen gegeben String vorhanden ist.&lt;br /&gt;
Diese Funktion geht serverseitig, wie auch clientseitig.&lt;br /&gt;
Die Verwendung ist eigentlich ganz simpel, allerdings sehr nützlich!&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function string.count(text, search)&lt;br /&gt;
	if searchand text then&lt;br /&gt;
		local string_count = 0&lt;br /&gt;
		for i in string.gfind(text, search) do&lt;br /&gt;
			string_count = string_count + 1&lt;br /&gt;
		end&lt;br /&gt;
		return string_count&lt;br /&gt;
	else&lt;br /&gt;
		return 0&lt;br /&gt;
	end&lt;br /&gt;
end&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Verwendung:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
outputChatbox(string.count(&amp;quot;Yeah, Senfsalat&amp;quot;, &amp;quot;a&amp;quot;)) -- Das Ergebnis btw. der Rückgabewert wähle in diesem Fall 3. Da 3x &amp;quot;a&amp;quot; vorhanden ist.&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;/div&gt;</summary>
		<author><name>Krischkros</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=String.count&amp;diff=31722</id>
		<title>String.count</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=String.count&amp;diff=31722"/>
		<updated>2012-06-30T11:05:21Z</updated>

		<summary type="html">&lt;p&gt;Krischkros: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;English:&lt;br /&gt;
&lt;br /&gt;
This Function counts a text from a text.&lt;br /&gt;
It is server side and client side!&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function string.count(text, search)&lt;br /&gt;
	if searchand text then&lt;br /&gt;
		local string_count = 0&lt;br /&gt;
		for i in string.gfind(text, search) do&lt;br /&gt;
			string_count = string_count + 1&lt;br /&gt;
		end&lt;br /&gt;
		return string_count&lt;br /&gt;
	else&lt;br /&gt;
		return 0&lt;br /&gt;
	end&lt;br /&gt;
end&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Usage:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
outputChatbox(string.count(&amp;quot;A Text&amp;quot;, &amp;quot;T&amp;quot;)) -- and the result is 2!&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
German:&lt;br /&gt;
&lt;br /&gt;
Diese Funktion zählt euch auf, wie oft ein String in einem anderen gegeben String vorhanden ist.&lt;br /&gt;
Diese Funktion geht serverseitig, wie auch clientseitig.&lt;br /&gt;
Die Verwendung ist eigentlich ganz simpel, allerdings sehr nützlich!&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function string.count(text, search)&lt;br /&gt;
	if searchand text then&lt;br /&gt;
		local string_count = 0&lt;br /&gt;
		for i in string.gfind(text, search) do&lt;br /&gt;
			string_count = string_count + 1&lt;br /&gt;
		end&lt;br /&gt;
		return string_count&lt;br /&gt;
	else&lt;br /&gt;
		return 0&lt;br /&gt;
	end&lt;br /&gt;
end&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Verwendung:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
outputChatbox(string.count(&amp;quot;Yeah, Senfsalat&amp;quot;, &amp;quot;a&amp;quot;)) -- Das Ergebnis btw. der Rückgabewert wähle in diesem Fall 3. Da 3x &amp;quot;a&amp;quot; vorhanden ist.&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;/div&gt;</summary>
		<author><name>Krischkros</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Template:DE/N%C3%BCtzliche_Funktionen&amp;diff=31721</id>
		<title>Template:DE/Nützliche Funktionen</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Template:DE/N%C3%BCtzliche_Funktionen&amp;diff=31721"/>
		<updated>2012-06-30T11:03:00Z</updated>

		<summary type="html">&lt;p&gt;Krischkros: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;*[[callClientFunction]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» Diese Funktion erlaubt es jede clientseitige Funktion vom Server aus aufzurufen.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*[[callServerFunction]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» Diese Funktion erlaubt es dir jede serverseitige Funktion vom Client aus aufzurufen.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*[[Check]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» Diese Funktion überprüft ob die Argumente vom richtigen Typ sind und ruft die Error-Funktion auf wenn nicht.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*[[doForAllElements]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» Diese Funktion kann benutzt werden um eine bestimmte Funktion für alle Elemente eines bestimmten Typs auszuführen.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*[[iterElements]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» Spart Zeit beim schreiben von &amp;amp;nbsp;for Schleifen&amp;amp;nbsp;. Anstatt &amp;amp;nbsp;ipairs( getElementsByType( type))&amp;amp;nbsp; wird &amp;amp;nbsp;iterElements( type )&amp;amp;nbsp; benutzt.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*[[findRotation]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» Nimmt zwei Punkte und gibt die Richtung von Punkt A zu Punkt B aus.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*[[FormatDate]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» Formatiert ein Datum nach den Standards.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*[[getAge]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia', sans-serif; font-size:smaller;&amp;quot;&amp;gt;» Diese Funktion kalkuliert ein Alter eines Geburtsdatums.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*[[getPointFromDistanceRotation]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» Findet einen Punkt basierend auf dem Start-Punk, Richtung und Entfernung.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*[[getTimestamp]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» Mit dieser Funktion kann die [http://en.wikipedia.org/wiki/Unix_time UNIX Zeit] benutzt werden.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*[[IfElse]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» Gibt einen von zwei Werten, basierend auf einer boolean, aus.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*[[isLeapYear]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» Überprüft ob das gegebene Jahr ein Schaltjahr ist.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*[[math.round]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» Rundet eine Zahl auf die angegebenen Dezimalstellen und der Methode.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*[[setTableProtected]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» Schützt eine Tabelle und setzt sie zu &amp;quot;Read-Only&amp;quot;.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*[[setVehicleGravityPoint]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» Diese clientseitige Funktion setzt den Gravitations Punkt in drei, dreidimensionalen Koordinaten mit der Stärke fest.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*[[string.explode]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» Diese Funktion spaltet einen &amp;quot;String&amp;quot; an einem bestimmten Punkt und füg sie in eine Tabelle in Stücken ein.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*[[table.copy]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» Diese Funktion kopiert eine ganze Tabelle mit allen beinhaltenden Tabellen.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*[[table.map]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» This function goes through a table and replaces every field with the return of the passed function, where the field's value is passed as first argument and optionally more arguments.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*[[table.size]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» Findet die größe einer Tabelle.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*[[var_dump]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;»Diese Funktion gibt Informationen über eine oder mehrere Variablen über &amp;amp;nbsp;outputConsole()&amp;amp;nbsp; aus. &amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*[[RGBToHex]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» Diese Funktion gibt einen &amp;quot;String&amp;quot; aus, der die Farbe in Hexadezimal enthält.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*[[getAlivePlayersInTeam]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» Diese Funktion gibt eine Tabelle mit den aktuell lebenden Spieler eines Teams aus.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*[[getResourceSettings]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» Diese Funktion gibt eine Tabelle mit den Ressourcen Informationen aus.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*[[onVehicleWeaponFire]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» Dieser Code implementiert ein Event das ausgelöst wird wenn ein Spieler die Waffe eines Fahrzeuges benutzt.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*[[toHex]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» Diese Funktion konvertiert eine Dezimalzahl zu einer Hexadezimalzahl, als Problem Behebung clientseitig.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*[[getElementSpeed]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» Diese Funktion nimmt die Schnelligkeit eines Elements in kph(kilometers per hour) oder in mph(miles per hour).&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*[[setElementSpeed]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» Diese Funktion setzt die Schnelligkeit eines Elements in kph(kilometers per hour) oder in mph(miles per hour).&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*[[centerWindow]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» Diese Funktion zentriert ein Fenster in jeder Auflösung.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*[[coroutine.resume]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» Fix für Koroutine Fehler-Nachrichten&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*[[getPlayerFromNamePart]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» Diese Funktion nimmt den Spieler bei einem Teil seines Namens.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*[[string.count]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» Diese Funktion zählt euch auf, wie oft ein bestimmter String in einem anderen gegebenen String vorhanden ist.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{{Needs_Checking|Translate the &amp;quot;table.map&amp;quot; line to german}}&lt;br /&gt;
&lt;br /&gt;
[[Category:Useful Functions]]&lt;/div&gt;</summary>
		<author><name>Krischkros</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=String.count&amp;diff=31720</id>
		<title>String.count</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=String.count&amp;diff=31720"/>
		<updated>2012-06-30T11:00:49Z</updated>

		<summary type="html">&lt;p&gt;Krischkros: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This Function counts a text from a text.&lt;br /&gt;
It is server side and client side!&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function string.count(text, search)&lt;br /&gt;
	if searchand text then&lt;br /&gt;
		local string_count = 0&lt;br /&gt;
		for i in string.gfind(text, search) do&lt;br /&gt;
			string_count = string_count + 1&lt;br /&gt;
		end&lt;br /&gt;
		return string_count&lt;br /&gt;
	else&lt;br /&gt;
		return 0&lt;br /&gt;
	end&lt;br /&gt;
end&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Usage:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
outputChatbox(string.count(&amp;quot;A Text&amp;quot;, &amp;quot;T&amp;quot;)) -- and the result is 2!&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;/div&gt;</summary>
		<author><name>Krischkros</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=String.count&amp;diff=31719</id>
		<title>String.count</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=String.count&amp;diff=31719"/>
		<updated>2012-06-30T10:58:54Z</updated>

		<summary type="html">&lt;p&gt;Krischkros: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This Function counts a text from a text.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function string.count(text, search)&lt;br /&gt;
	if searchand text then&lt;br /&gt;
		local string_count = 0&lt;br /&gt;
		for i in string.gfind(text, search) do&lt;br /&gt;
			string_count = string_count + 1&lt;br /&gt;
		end&lt;br /&gt;
		return string_count&lt;br /&gt;
	else&lt;br /&gt;
		return 0&lt;br /&gt;
	end&lt;br /&gt;
end&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;/div&gt;</summary>
		<author><name>Krischkros</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=String.count&amp;diff=31718</id>
		<title>String.count</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=String.count&amp;diff=31718"/>
		<updated>2012-06-30T10:58:17Z</updated>

		<summary type="html">&lt;p&gt;Krischkros: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This Function counts a text from a text.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;[lua, N]&amp;gt;&lt;br /&gt;
function string.count(text, search)&lt;br /&gt;
	if searchand text then&lt;br /&gt;
		local string_count = 0&lt;br /&gt;
		for i in string.gfind(text, search) do&lt;br /&gt;
			string_count = string_count + 1&lt;br /&gt;
		end&lt;br /&gt;
		return string_count&lt;br /&gt;
	else&lt;br /&gt;
		return 0&lt;br /&gt;
	end&lt;br /&gt;
end&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;/div&gt;</summary>
		<author><name>Krischkros</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=String.count&amp;diff=31717</id>
		<title>String.count</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=String.count&amp;diff=31717"/>
		<updated>2012-06-30T10:58:10Z</updated>

		<summary type="html">&lt;p&gt;Krischkros: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This Function counts a text from a text.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;[lua]&amp;gt;&lt;br /&gt;
function string.count(text, search)&lt;br /&gt;
	if searchand text then&lt;br /&gt;
		local string_count = 0&lt;br /&gt;
		for i in string.gfind(text, search) do&lt;br /&gt;
			string_count = string_count + 1&lt;br /&gt;
		end&lt;br /&gt;
		return string_count&lt;br /&gt;
	else&lt;br /&gt;
		return 0&lt;br /&gt;
	end&lt;br /&gt;
end&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;/div&gt;</summary>
		<author><name>Krischkros</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=String.count&amp;diff=31716</id>
		<title>String.count</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=String.count&amp;diff=31716"/>
		<updated>2012-06-30T10:57:45Z</updated>

		<summary type="html">&lt;p&gt;Krischkros: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This Function counts a text from a text.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function string.count(text, search)&lt;br /&gt;
	if searchand text then&lt;br /&gt;
		local string_count = 0&lt;br /&gt;
		for i in string.gfind(text, search) do&lt;br /&gt;
			string_count = string_count + 1&lt;br /&gt;
		end&lt;br /&gt;
		return string_count&lt;br /&gt;
	else&lt;br /&gt;
		return 0&lt;br /&gt;
	end&lt;br /&gt;
end&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;/div&gt;</summary>
		<author><name>Krischkros</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=String.count&amp;diff=31715</id>
		<title>String.count</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=String.count&amp;diff=31715"/>
		<updated>2012-06-30T10:57:12Z</updated>

		<summary type="html">&lt;p&gt;Krischkros: Created page with &amp;quot;This Function counts a text from a text.  function string.count(text, search) 	if searchand text then 		local string_count = 0 		for i in string.gfind(text, search) do 			string_...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This Function counts a text from a text.&lt;br /&gt;
&lt;br /&gt;
function string.count(text, search)&lt;br /&gt;
	if searchand text then&lt;br /&gt;
		local string_count = 0&lt;br /&gt;
		for i in string.gfind(text, search) do&lt;br /&gt;
			string_count = string_count + 1&lt;br /&gt;
		end&lt;br /&gt;
		return string_count&lt;br /&gt;
	else&lt;br /&gt;
		return 0&lt;br /&gt;
	end&lt;br /&gt;
end&lt;/div&gt;</summary>
		<author><name>Krischkros</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Template:Useful_Functions&amp;diff=31714</id>
		<title>Template:Useful Functions</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Template:Useful_Functions&amp;diff=31714"/>
		<updated>2012-06-30T10:56:05Z</updated>

		<summary type="html">&lt;p&gt;Krischkros: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;*[[callClientFunction]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» This function allows you to call any clientside function from the server's side.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*[[callServerFunction]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» This function allows you to call any server-side function from the client's side.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*[[centerWindow]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» This function center the window in any resolution.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*[[Check]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» This function checks if it's arguments are of the right types and calls the error-function if one isn't.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*[[coroutine.resume]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» Fix for hidden coroutine error messages&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*[[doForAllElements]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» This function can be used to execute a specified function for all elements of a specified type.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*[[dxDrawColorText]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» This function draws a dx text with #RRGGBB color codes support.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*[[findRotation]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» Takes two points and returns the direction from point A to point B.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*[[FormatDate]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» Formats a date on the basis of a format string and returns it.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*[[getAge]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia', sans-serif; font-size:smaller;&amp;quot;&amp;gt;» This function calculates the age of a birthday.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*[[getAlivePlayersInTeam]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» This function returns a table of the alive players in a team.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*[[getCursorMoveOn]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» This function checks in which way the cursor is currently moving.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*[[getElementSpeed]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» This function allows you to get element speed in kph or mph units.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*[[getPlayerFromNamePart]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» This function allows you to get player From his Name part.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*[[getPointFromDistanceRotation]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» Finds a point based on a starting point, direction and distance.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*[[getResourceSettings]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» This function returns a table of the resource settings.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*[[getTimestamp]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» With this function you can get the [http://en.wikipedia.org/wiki/Unix_time UNIX timestamp].&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*[[IfElse]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» Returns one of two values based on a boolean expression.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*[[isLeapYear]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» Checks if the given year is a leap year.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*[[iterElements]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» Returns an iterator for your for loops saving time typing ipairs( getElementsByType( type ) ), instead you type: iterElements( type ).&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*[[math.round]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» Rounds a number whereas the number of decimals to keep and the method may be set.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*[[onVehicleWeaponFire]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» This code implements an event that is triggered when a player in a vehicle fires a vehicles weapon.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*[[RGBToHex]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» This function returns a string representing the color in hexadecimal.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*[[setElementSpeed]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» This function allows you to set moving element speed in kph or mph units.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*[[setTableProtected]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» Protects a table and makes it read-only.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*[[setVehicleGravityPoint]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» This clientside function sets a vehicle's gravity in the direction of a 3 dimensional coordinate with the strength specified.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*[[string.explode]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» This function splits a string at a given separator pattern and returns a table with the pieces.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*[[table.copy]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» This function copies a whole table and all the tables in that table.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*[[table.map]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» This function goes through a table and replaces every field with the return of the passed function, where the field's value is passed as first argument and optionally more arguments.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*[[table.size]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» Finds the absolute size of a table.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*[[toHex]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» This function converts a decimal number to a hexadecimal number, as a fix to be used clientside.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*[[var_dump]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;»This function outputs information about one or more variables using outputConsole(). &amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*[[multi_check]] &amp;lt;span style=&amp;quot;color: gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» This function checks one element to many, handy and clean. &amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*[[isElementInPhotograph]] &amp;lt;span style=&amp;quot;color: gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» This function checks if an element was in the player's camera picture. This needs writing still. --[[User:Ransom|Ransom]] 21:45, 2 May 2012 (UTC) &amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*[[getOffsetFromXYZ]]  &amp;lt;span style=&amp;quot;color: gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» This function allows you to take an entity and a position and calculate the relative offset between them accounting for rotations. &amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*[[dxDrawGifImage]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» This function simulates the effect of a GIF image by using image sprites.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*[[getPlayersInPhotograph]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» This function gets all the players in a photograph.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*[[dxDrawRectangle3D]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» This function draws a 3D rectangle.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*[[dxDrawImage3D]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» This function draws a 3D image.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*[[string.count]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» This function counts a text from a text.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Category:Useful Functions]]&lt;/div&gt;</summary>
		<author><name>Krischkros</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=OnClientHUDRender&amp;diff=31611</id>
		<title>OnClientHUDRender</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=OnClientHUDRender&amp;diff=31611"/>
		<updated>2012-06-24T14:13:26Z</updated>

		<summary type="html">&lt;p&gt;Krischkros: /* Example */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__&lt;br /&gt;
{{Client event}} &lt;br /&gt;
This event is triggered before GTA renders the HUD. This is particularly useful if you want to use [[dxUpdateScreenSource]] to capture the screen onto a texture without capturing the HUD, or to alter HUD textures using [[Element/Shader|shaders]] before they are drawn onto the screen.&lt;br /&gt;
&lt;br /&gt;
==Parameters==&lt;br /&gt;
''None''&lt;br /&gt;
&lt;br /&gt;
==Source==&lt;br /&gt;
The [[event system#Event source|source]] of this event is the client's [[root element]].&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
local render_count = 0&lt;br /&gt;
&lt;br /&gt;
addEventHandler(&amp;quot;onClientHUDRender&amp;quot;, root, function()&lt;br /&gt;
	render_count = render_count + 1&lt;br /&gt;
end)&lt;br /&gt;
&lt;br /&gt;
addEventHandler(&amp;quot;onClientRender&amp;quot;, root, function()&lt;br /&gt;
	render_count = render_count - 1&lt;br /&gt;
end)&lt;br /&gt;
&lt;br /&gt;
addCommandHandler(&amp;quot;getLossFrames&amp;quot;, function()&lt;br /&gt;
	outputChatBox(&amp;quot;Loss: &amp;quot;..render_count)&lt;br /&gt;
	outputDebugString(&amp;quot;Loss: &amp;quot;..render_count, 3, 255, 0, 0)&lt;br /&gt;
end)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
===[[Game_Processing_Order|Game Processing Order]]===&lt;br /&gt;
===Other client events===&lt;br /&gt;
{{Client_other_events}}&lt;br /&gt;
===Client event functions===&lt;br /&gt;
{{Client_event_functions}}&lt;br /&gt;
&lt;br /&gt;
[[Category:Needs Example]]&lt;/div&gt;</summary>
		<author><name>Krischkros</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=OnClientHUDRender&amp;diff=31610</id>
		<title>OnClientHUDRender</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=OnClientHUDRender&amp;diff=31610"/>
		<updated>2012-06-24T14:10:01Z</updated>

		<summary type="html">&lt;p&gt;Krischkros: /* Example */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__&lt;br /&gt;
{{Client event}} &lt;br /&gt;
This event is triggered before GTA renders the HUD. This is particularly useful if you want to use [[dxUpdateScreenSource]] to capture the screen onto a texture without capturing the HUD, or to alter HUD textures using [[Element/Shader|shaders]] before they are drawn onto the screen.&lt;br /&gt;
&lt;br /&gt;
==Parameters==&lt;br /&gt;
''None''&lt;br /&gt;
&lt;br /&gt;
==Source==&lt;br /&gt;
The [[event system#Event source|source]] of this event is the client's [[root element]].&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
local render_count = 0&lt;br /&gt;
&lt;br /&gt;
addEventHandler(&amp;quot;onClientHUDRender&amp;quot;, root, function()&lt;br /&gt;
	render_count = render_count + 1&lt;br /&gt;
end)&lt;br /&gt;
&lt;br /&gt;
addEventHandler(&amp;quot;onClientRender&amp;quot;, root, function()&lt;br /&gt;
	render_count = render_count - 1&lt;br /&gt;
end)&lt;br /&gt;
&lt;br /&gt;
addCommandHandler(&amp;quot;getLossFrames&amp;quot;, root, function()&lt;br /&gt;
	outputChatBox(&amp;quot;Loss: &amp;quot;..render_count)&lt;br /&gt;
	outputDebugString(&amp;quot;Loss: &amp;quot;..render_count, 3, 255, 0, 0)&lt;br /&gt;
end)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
===[[Game_Processing_Order|Game Processing Order]]===&lt;br /&gt;
===Other client events===&lt;br /&gt;
{{Client_other_events}}&lt;br /&gt;
===Client event functions===&lt;br /&gt;
{{Client_event_functions}}&lt;br /&gt;
&lt;br /&gt;
[[Category:Needs Example]]&lt;/div&gt;</summary>
		<author><name>Krischkros</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=OnClientHUDRender&amp;diff=31609</id>
		<title>OnClientHUDRender</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=OnClientHUDRender&amp;diff=31609"/>
		<updated>2012-06-24T14:09:17Z</updated>

		<summary type="html">&lt;p&gt;Krischkros: /* Example */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__&lt;br /&gt;
{{Client event}} &lt;br /&gt;
This event is triggered before GTA renders the HUD. This is particularly useful if you want to use [[dxUpdateScreenSource]] to capture the screen onto a texture without capturing the HUD, or to alter HUD textures using [[Element/Shader|shaders]] before they are drawn onto the screen.&lt;br /&gt;
&lt;br /&gt;
==Parameters==&lt;br /&gt;
''None''&lt;br /&gt;
&lt;br /&gt;
==Source==&lt;br /&gt;
The [[event system#Event source|source]] of this event is the client's [[root element]].&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
local render_count = 0&lt;br /&gt;
&lt;br /&gt;
addEventHandler(&amp;quot;onClientHUDRender&amp;quot;, root, function()&lt;br /&gt;
	render_count = render_count + 1&lt;br /&gt;
end)&lt;br /&gt;
&lt;br /&gt;
addEventHandler(&amp;quot;onClientRender&amp;quot;, root, function()&lt;br /&gt;
	render_count = render_count -&lt;br /&gt;
end)&lt;br /&gt;
&lt;br /&gt;
addCommandHandler(&amp;quot;getLossFrames&amp;quot;, root, function()&lt;br /&gt;
	outputChatBox(&amp;quot;Loss: &amp;quot;..render_count)&lt;br /&gt;
	outputDebugString(&amp;quot;Loss: &amp;quot;..render_count, 3, 255, 0, 0)&lt;br /&gt;
end)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
===[[Game_Processing_Order|Game Processing Order]]===&lt;br /&gt;
===Other client events===&lt;br /&gt;
{{Client_other_events}}&lt;br /&gt;
===Client event functions===&lt;br /&gt;
{{Client_event_functions}}&lt;br /&gt;
&lt;br /&gt;
[[Category:Needs Example]]&lt;/div&gt;</summary>
		<author><name>Krischkros</name></author>
	</entry>
</feed>