<?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=Mrdejong</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=Mrdejong"/>
	<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/wiki/Special:Contributions/Mrdejong"/>
	<updated>2026-05-10T22:36:18Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.39.3</generator>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Modules/cURL/curl_init&amp;diff=23711</id>
		<title>Modules/cURL/curl init</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Modules/cURL/curl_init&amp;diff=23711"/>
		<updated>2010-06-13T20:34:13Z</updated>

		<summary type="html">&lt;p&gt;Mrdejong: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Modules/cURL/func_page|&lt;br /&gt;
description		= Initialize the curl engine.|&lt;br /&gt;
syntax			= &amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;curl curl_init(string url)&amp;lt;/syntaxhighlight&amp;gt;|&lt;br /&gt;
required_arguments	= * '''url''' The url which you want to connect too.|&lt;br /&gt;
returns			= A valid curl handler on succes, otherwise it returns false|&lt;br /&gt;
example			= &amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
curl = curl_init(&amp;quot;http://mtasa.com/&amp;quot;);&lt;br /&gt;
if not curl then&lt;br /&gt;
    outputDebugString(&amp;quot;Can't connect to http://mtasa.com/ with cURL&amp;quot;);&lt;br /&gt;
else&lt;br /&gt;
    // lets do something here.&lt;br /&gt;
end&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
[[Category:Modules]]&lt;/div&gt;</summary>
		<author><name>Mrdejong</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Template:Modules/cURL/func_page&amp;diff=23710</id>
		<title>Template:Modules/cURL/func page</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Template:Modules/cURL/func_page&amp;diff=23710"/>
		<updated>2010-06-13T20:33:32Z</updated>

		<summary type="html">&lt;p&gt;Mrdejong: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__&lt;br /&gt;
{{ModuleFunction|cURL}}&lt;br /&gt;
{{{description}}}&lt;br /&gt;
&lt;br /&gt;
==Syntax==&lt;br /&gt;
{{{syntax}}}&lt;br /&gt;
&lt;br /&gt;
==Required arguments==&lt;br /&gt;
{{{required_arguments}}}&lt;br /&gt;
&lt;br /&gt;
==Returns==&lt;br /&gt;
{{{returns}}}&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
{{{example}}}&lt;br /&gt;
&lt;br /&gt;
==See also==&lt;br /&gt;
{{Modules/cURL/functions}}&lt;/div&gt;</summary>
		<author><name>Mrdejong</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Modules/cURL/curl_init&amp;diff=23709</id>
		<title>Modules/cURL/curl init</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Modules/cURL/curl_init&amp;diff=23709"/>
		<updated>2010-06-13T20:31:43Z</updated>

		<summary type="html">&lt;p&gt;Mrdejong: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Modules/cURL/func_page|&lt;br /&gt;
description		= Initialize the curl engine.|&lt;br /&gt;
syntax			= curl curl_init(string url)|&lt;br /&gt;
required_arguments	= * '''url''' The url which you want to connect too.|&lt;br /&gt;
returns			= A valid curl handler on succes, otherwise it returns false|&lt;br /&gt;
example			= curl = curl_init(&amp;quot;http://mtasa.com/&amp;quot;);&lt;br /&gt;
if not curl then&lt;br /&gt;
    outputDebugString(&amp;quot;Can't connect to http://mtasa.com/ with cURL&amp;quot;);&lt;br /&gt;
else&lt;br /&gt;
    // lets do something here.&lt;br /&gt;
end&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
[[Category:Modules]]&lt;/div&gt;</summary>
		<author><name>Mrdejong</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Template:Modules/cURL/func_page&amp;diff=23708</id>
		<title>Template:Modules/cURL/func page</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Template:Modules/cURL/func_page&amp;diff=23708"/>
		<updated>2010-06-13T20:30:58Z</updated>

		<summary type="html">&lt;p&gt;Mrdejong: Created page with '__NOTOC__ {{ModuleFunction|cURL}} {{{description}}}  ==Syntax== &amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt; {{{syntax}}} &amp;lt;/syntaxhighlight&amp;gt;  ==Required arguments== {{{required_arguments}}}  ==Returns== {{{returns}}}  ==…'&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__&lt;br /&gt;
{{ModuleFunction|cURL}}&lt;br /&gt;
{{{description}}}&lt;br /&gt;
&lt;br /&gt;
==Syntax==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
{{{syntax}}}&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Required arguments==&lt;br /&gt;
{{{required_arguments}}}&lt;br /&gt;
&lt;br /&gt;
==Returns==&lt;br /&gt;
{{{returns}}}&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
{{{example}}}&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See also==&lt;br /&gt;
{{Modules/cURL/functions}}&lt;/div&gt;</summary>
		<author><name>Mrdejong</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Modules/cURL/curl_init&amp;diff=23707</id>
		<title>Modules/cURL/curl init</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Modules/cURL/curl_init&amp;diff=23707"/>
		<updated>2010-06-13T20:29:41Z</updated>

		<summary type="html">&lt;p&gt;Mrdejong: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Modules/cURL/func_page|&lt;br /&gt;
description		= Initialize the curl engine.&lt;br /&gt;
syntax			= curl curl_init(string url)|&lt;br /&gt;
required_arguments	= * '''url''' The url which you want to connect too.|&lt;br /&gt;
returns			= A valid curl handler on succes, otherwise it returns false|&lt;br /&gt;
example			= curl = curl_init(&amp;quot;http://mtasa.com/&amp;quot;);&lt;br /&gt;
if not curl then&lt;br /&gt;
    outputDebugString(&amp;quot;Can't connect to http://mtasa.com/ with cURL&amp;quot;);&lt;br /&gt;
else&lt;br /&gt;
    // lets do something here.&lt;br /&gt;
end&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
[[Category:Modules]]&lt;/div&gt;</summary>
		<author><name>Mrdejong</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Modules/cURL/curl_setopt&amp;diff=23706</id>
		<title>Modules/cURL/curl setopt</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Modules/cURL/curl_setopt&amp;diff=23706"/>
		<updated>2010-06-13T20:23:42Z</updated>

		<summary type="html">&lt;p&gt;Mrdejong: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__&lt;br /&gt;
{{ModuleFunction|cURL}}&lt;br /&gt;
Set an curl option.&lt;br /&gt;
&lt;br /&gt;
==Syntax==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
curlcode curl_setopt(curl handler, curloption option, bool/number/string value)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Required arguments==&lt;br /&gt;
* '''handler''' The curl handler.&lt;br /&gt;
* '''option''' An curl option, al the options are found [[Modules/cURL/CURLOPT|here]]&lt;br /&gt;
* '''value''' The value, this can be a string, number or boolean. At the [[Modules/cURL/CURLOPT|curl option list]] you can find wich option needs a string, number or boolean.&lt;br /&gt;
&lt;br /&gt;
==Returns==&lt;br /&gt;
Returns a curlcode. Nevermind it for now, i even don't know what it is. But it returns it.&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
curl = curl_init(&amp;quot;http://mtasa.com/&amp;quot;);&lt;br /&gt;
if not curl then&lt;br /&gt;
    outputDebugString(&amp;quot;Can't connect to http://mtasa.com/ with cURL&amp;quot;);&lt;br /&gt;
else&lt;br /&gt;
    curl_setopt(curl, CURLOPT_POST, true);&lt;br /&gt;
    curl_close(curl);&lt;br /&gt;
end&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==See also==&lt;br /&gt;
{{Modules/cURL/functions}}&lt;br /&gt;
&lt;br /&gt;
[[Category:Modules]]&lt;/div&gt;</summary>
		<author><name>Mrdejong</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Modules/cURL/curl_close&amp;diff=23705</id>
		<title>Modules/cURL/curl close</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Modules/cURL/curl_close&amp;diff=23705"/>
		<updated>2010-06-13T20:23:24Z</updated>

		<summary type="html">&lt;p&gt;Mrdejong: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__&lt;br /&gt;
{{ModuleFunction|cURL}}&lt;br /&gt;
Closes the curl engine.&lt;br /&gt;
&lt;br /&gt;
==Syntax==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
curl_close(curl handler)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Required arguments==&lt;br /&gt;
* '''curl''' The curl handler&lt;br /&gt;
&lt;br /&gt;
==Returns==&lt;br /&gt;
True on succes, false otherwise&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
curl = curl_init(&amp;quot;http://mtasa.com/&amp;quot;);&lt;br /&gt;
if not curl then&lt;br /&gt;
    outputDebugString(&amp;quot;Can't connect to http://mtasa.com/ with cURL&amp;quot;);&lt;br /&gt;
else&lt;br /&gt;
    curl_close(curl);&lt;br /&gt;
end&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==See also==&lt;br /&gt;
{{Modules/cURL/functions}}&lt;br /&gt;
&lt;br /&gt;
[[Category:Modules]]&lt;/div&gt;</summary>
		<author><name>Mrdejong</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Modules/cURL/curl_init&amp;diff=23704</id>
		<title>Modules/cURL/curl init</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Modules/cURL/curl_init&amp;diff=23704"/>
		<updated>2010-06-13T20:23:04Z</updated>

		<summary type="html">&lt;p&gt;Mrdejong: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__&lt;br /&gt;
{{ModuleFunction|cURL}}&lt;br /&gt;
Initialize the curl engine.&lt;br /&gt;
&lt;br /&gt;
==Syntax==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
curl curl_init(string url)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Required arguments==&lt;br /&gt;
* '''url''' The url which you want to connect too.&lt;br /&gt;
&lt;br /&gt;
==Returns==&lt;br /&gt;
A valid curl handler on succes, otherwise it returns false&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
curl = curl_init(&amp;quot;http://mtasa.com/&amp;quot;);&lt;br /&gt;
if not curl then&lt;br /&gt;
    outputDebugString(&amp;quot;Can't connect to http://mtasa.com/ with cURL&amp;quot;);&lt;br /&gt;
else&lt;br /&gt;
    // lets do something here.&lt;br /&gt;
end&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==See also==&lt;br /&gt;
{{Modules/cURL/functions}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Category:Modules]]&lt;/div&gt;</summary>
		<author><name>Mrdejong</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Modules/cURL/curl_setopt&amp;diff=23703</id>
		<title>Modules/cURL/curl setopt</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Modules/cURL/curl_setopt&amp;diff=23703"/>
		<updated>2010-06-13T20:20:40Z</updated>

		<summary type="html">&lt;p&gt;Mrdejong: Created page with '__NOTOC__ {{ModuleFunction|cURL}} Set an curl option.  ==Syntax== &amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt; curlcode curl_setopt(curl handler, curloption option, bool/number/string value) &amp;lt;/syntaxhighlight&amp;gt;  ==Require…'&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__&lt;br /&gt;
{{ModuleFunction|cURL}}&lt;br /&gt;
Set an curl option.&lt;br /&gt;
&lt;br /&gt;
==Syntax==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
curlcode curl_setopt(curl handler, curloption option, bool/number/string value)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Required arguments==&lt;br /&gt;
* '''handler''' The curl handler.&lt;br /&gt;
* '''option''' An curl option, al the options are found [[Modules/cURL/CURLOPT|here]]&lt;br /&gt;
* '''value''' The value, this can be a string, number or boolean. At the [[Modules/cURL/CURLOPT|curl option list]] you can find wich option needs a string, number or boolean.&lt;br /&gt;
&lt;br /&gt;
==Returns==&lt;br /&gt;
Returns a curlcode. Nevermind it for now, i even don't know what it is. But it returns it.&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
curl = curl_init(&amp;quot;http://mtasa.com/&amp;quot;);&lt;br /&gt;
if not curl then&lt;br /&gt;
    outputDebugString(&amp;quot;Can't connect to http://mtasa.com/ with cURL&amp;quot;);&lt;br /&gt;
else&lt;br /&gt;
    curl_setopt(curl, CURLOPT_POST, true);&lt;br /&gt;
    curl_close(curl);&lt;br /&gt;
end&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==See also==&lt;br /&gt;
{{Modules/cURL/functions}}&lt;/div&gt;</summary>
		<author><name>Mrdejong</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Modules/cURL/curl_close&amp;diff=23702</id>
		<title>Modules/cURL/curl close</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Modules/cURL/curl_close&amp;diff=23702"/>
		<updated>2010-06-13T20:14:07Z</updated>

		<summary type="html">&lt;p&gt;Mrdejong: Created page with '__NOTOC__ {{ModuleFunction|cURL}} Closes the curl engine.  ==Syntax== &amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt; curl_close(curl handler) &amp;lt;/syntaxhighlight&amp;gt;  ==Required arguments== * '''curl''' The curl handler  ==Retu…'&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__&lt;br /&gt;
{{ModuleFunction|cURL}}&lt;br /&gt;
Closes the curl engine.&lt;br /&gt;
&lt;br /&gt;
==Syntax==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
curl_close(curl handler)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Required arguments==&lt;br /&gt;
* '''curl''' The curl handler&lt;br /&gt;
&lt;br /&gt;
==Returns==&lt;br /&gt;
True on succes, false otherwise&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
curl = curl_init(&amp;quot;http://mtasa.com/&amp;quot;);&lt;br /&gt;
if not curl then&lt;br /&gt;
    outputDebugString(&amp;quot;Can't connect to http://mtasa.com/ with cURL&amp;quot;);&lt;br /&gt;
else&lt;br /&gt;
    curl_close(curl);&lt;br /&gt;
end&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==See also==&lt;br /&gt;
{{Modules/cURL/functions}}&lt;/div&gt;</summary>
		<author><name>Mrdejong</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Modules/cURL/curl_init&amp;diff=23701</id>
		<title>Modules/cURL/curl init</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Modules/cURL/curl_init&amp;diff=23701"/>
		<updated>2010-06-13T20:03:14Z</updated>

		<summary type="html">&lt;p&gt;Mrdejong: Created page with '__NOTOC__ {{ModuleFunction|cURL}} Initialize the curl engine.  ==Syntax== &amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt; curl curl_init(string url) &amp;lt;/syntaxhighlight&amp;gt;  ==Required arguments== * '''url''' The url which you w…'&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__&lt;br /&gt;
{{ModuleFunction|cURL}}&lt;br /&gt;
Initialize the curl engine.&lt;br /&gt;
&lt;br /&gt;
==Syntax==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
curl curl_init(string url)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Required arguments==&lt;br /&gt;
* '''url''' The url which you want to connect too.&lt;br /&gt;
&lt;br /&gt;
==Returns==&lt;br /&gt;
A valid curl handler on succes, otherwise it returns false&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
curl = curl_init(&amp;quot;http://mtasa.com/&amp;quot;);&lt;br /&gt;
if not curl then&lt;br /&gt;
    outputDebugString(&amp;quot;Can't connect to http://mtasa.com/ with cURL&amp;quot;);&lt;br /&gt;
else&lt;br /&gt;
    // lets do something here.&lt;br /&gt;
end&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==See also==&lt;br /&gt;
{{Modules/cURL/functions}}&lt;/div&gt;</summary>
		<author><name>Mrdejong</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Template:Modules/cURL/functions&amp;diff=23700</id>
		<title>Template:Modules/cURL/functions</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Template:Modules/cURL/functions&amp;diff=23700"/>
		<updated>2010-06-13T19:54:54Z</updated>

		<summary type="html">&lt;p&gt;Mrdejong: Created page with '* curl_init * curl_close * curl_setopt'&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;* [[Modules/cURL/curl_init|curl_init]]&lt;br /&gt;
* [[Modules/cURL/curl_close|curl_close]]&lt;br /&gt;
* [[Modules/cURL/curl_setopt|curl_setopt]]&lt;/div&gt;</summary>
		<author><name>Mrdejong</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Modules/cURL&amp;diff=23699</id>
		<title>Modules/cURL</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Modules/cURL&amp;diff=23699"/>
		<updated>2010-06-13T19:50:41Z</updated>

		<summary type="html">&lt;p&gt;Mrdejong: Created page with '{{Module_Info|   name           = MTA Curl |   version        = 1.0 |   author         = Alexander de Jong (mrdejong) |   module_website = ''Not available'' |  …'&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Module_Info|&lt;br /&gt;
  name           = MTA Curl |&lt;br /&gt;
  version        = 1.0 |&lt;br /&gt;
  author         = [[User:mrdejong|Alexander de Jong (mrdejong)]] |&lt;br /&gt;
  module_website = ''Not available'' |&lt;br /&gt;
  download_link  = ''Not available'' |&lt;br /&gt;
  license        = [http://www.opensource.org/licenses/bsd-license.php BSD]&lt;br /&gt;
}}&lt;br /&gt;
MTA Curl module is a handy module to make restful api web calls. You could do everything with it.&lt;br /&gt;
&lt;br /&gt;
The module is based on php cURL module.&lt;br /&gt;
&lt;br /&gt;
==cURL functions==&lt;br /&gt;
{{Modules/cURL/functions}}&lt;br /&gt;
&lt;br /&gt;
==cURL events==&lt;br /&gt;
{{Modules/cURL/events}}&lt;br /&gt;
&lt;br /&gt;
==cURL variables==&lt;br /&gt;
{{Modules/cURL/variables}}&lt;br /&gt;
&lt;br /&gt;
[[Category:Modules]]&lt;/div&gt;</summary>
		<author><name>Mrdejong</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=PHP_SDK&amp;diff=22521</id>
		<title>PHP SDK</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=PHP_SDK&amp;diff=22521"/>
		<updated>2010-03-02T13:21:11Z</updated>

		<summary type="html">&lt;p&gt;Mrdejong: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__&lt;br /&gt;
You can access the MTA Web Interface from almost any programming language that can request web pages using HTTP POST and encode and decode [[JSON]]. PHP can do this very easily. &lt;br /&gt;
&lt;br /&gt;
This SDK provides one function ''call'' that will allow you to call any exported script functions on any server that you have access to.&lt;br /&gt;
&lt;br /&gt;
The download below includes two example pages - one that shows a simple scoreboard, the other that shows the automatic handling of element and resource objects.&lt;br /&gt;
&lt;br /&gt;
If you use this and make any improvements, feel free to send us a copy and we can host it for others to benefit from.&lt;br /&gt;
&lt;br /&gt;
==Functions==&lt;br /&gt;
===call===&lt;br /&gt;
This function calls an exported function in a specific resource.&lt;br /&gt;
&lt;br /&gt;
'''Syntax:'''&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot; lang=&amp;quot;php&amp;quot;&amp;gt;&lt;br /&gt;
$mtaServer = new mta( $hostname, $port, $username, $password );&lt;br /&gt;
$resource = $mtaServer-&amp;gt;getResource ( $resourceName );&lt;br /&gt;
$returns[] = $resource-&amp;gt;call ( &amp;quot;functionName&amp;quot; [,args...] );&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===getInput===&lt;br /&gt;
This function is for use with web pages that are called by [[callRemote]].&lt;br /&gt;
&lt;br /&gt;
'''Syntax:'''&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot; lang=&amp;quot;php&amp;quot;&amp;gt;&lt;br /&gt;
inputData[] = mta::getInput();&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===doReturn===&lt;br /&gt;
Use this function when you want to return data when a page is called with [[callRemote]]. You should '''NOT''' output any other data to the page, e.g. using ''echo'' as this will cause the return to fail.&lt;br /&gt;
&lt;br /&gt;
'''Syntax:'''&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot; lang=&amp;quot;php&amp;quot;&amp;gt;&lt;br /&gt;
mta::doReturn( argument1, argument2 ... argumentN );&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Examples==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot; lang=&amp;quot;php&amp;quot;&amp;gt;&lt;br /&gt;
include( &amp;quot;mta_sdk.php&amp;quot; );&lt;br /&gt;
$mtaServer = new mta(&amp;quot;bastage.net&amp;quot;, 33004);&lt;br /&gt;
$resource = $mtaServer-&amp;gt;getResource ( &amp;quot;echobot&amp;quot; );&lt;br /&gt;
$retn = $resource-&amp;gt;call ( &amp;quot;getThisResource&amp;quot; ); // $retn is an array containing the values the function returned&lt;br /&gt;
$resourceElement = $retn[0]; // the first returned value is the resource&lt;br /&gt;
$retn = $resource-&amp;gt;call ( &amp;quot;getResourceName&amp;quot;, $resourceElement ); &lt;br /&gt;
$resourceName = $retn[0]; // contains the name of the resource 'echobot'&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Authentication==&lt;br /&gt;
If the server you are accessing requires authentication, you must pass the ''http_username'' and ''http_password'' variables to your instantiated instance of the mta() class.&lt;br /&gt;
&lt;br /&gt;
'''Example:'''&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot; lang=&amp;quot;php&amp;quot;&amp;gt;&lt;br /&gt;
include( &amp;quot;mta_sdk.php&amp;quot; );&lt;br /&gt;
$mtaServer = new mta(&amp;quot;example.com&amp;quot;, 33004, &amp;quot;myUsername&amp;quot;, &amp;quot;myPassword&amp;quot; );&lt;br /&gt;
$mtaServer-&amp;gt;getResource(&amp;quot;someResource&amp;quot;)-&amp;gt;call(&amp;quot;someFunction&amp;quot;);&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==A page that can be called by [[callRemote]]==&lt;br /&gt;
This example just adds two numbers passed to it by a lua script.&lt;br /&gt;
&lt;br /&gt;
'''PHP:''' (for the page that LUA expects to be at ''&amp;lt;nowiki&amp;gt;http://www.example.com/page.php&amp;lt;/nowiki&amp;gt;'')&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot; lang=&amp;quot;php&amp;quot;&amp;gt;&lt;br /&gt;
include( &amp;quot;mta_sdk.php&amp;quot; );&lt;br /&gt;
$input = mta::getInput();&lt;br /&gt;
mta::doReturn($input[0] + $input[1]);&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
'''LUA:'''&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot; lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
-- result is called when the function returns&lt;br /&gt;
function result(sum)&lt;br /&gt;
    outputChatBox(sum)&lt;br /&gt;
end&lt;br /&gt;
function addNumbers(number1, number2)&lt;br /&gt;
    callRemote ( &amp;quot;http://www.example.com/page.php&amp;quot;, result, number1, number2 )&lt;br /&gt;
end &lt;br /&gt;
addNumbers ( 123, 456 ) -- call the function&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Caveats==&lt;br /&gt;
* This only works with PHP 5.0 and above.&lt;br /&gt;
* You cannot currently compare two Element instances that you expect to be identical - you need to do a &amp;quot;deep compare&amp;quot;, comparing the &amp;quot;id&amp;quot; fields.&lt;br /&gt;
&lt;br /&gt;
==Download==&lt;br /&gt;
=== Node for version 0.4 ===&lt;br /&gt;
Online 80 in mta_sdk.php you will find the string:&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot; lang=&amp;quot;php&amp;quot;&amp;gt;&lt;br /&gt;
echo $json_output;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Replace that one with:&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot; lang=&amp;quot;php&amp;quot;&amp;gt;&lt;br /&gt;
//echo $json_output;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Or remove it completly!&lt;br /&gt;
&lt;br /&gt;
*[http://www.greenhood.nl/mtasa/mtaphpsdk_0.4.zip Download Version 0.4] - Renamed ''public function mta(..)'' to ''public function __construct(..)''.&lt;br /&gt;
*[http://code.opencoding.net/mta/mtaphpsdk_0.3_fix.zip Download Version 0.3] - Neater syntax, support functions for [[callRemote]] (fix version makes call work with args).&lt;br /&gt;
*[http://misc.opencoding.net/mta/mtaphpsdk_0.2.zip Download Version 0.2] -  ''Deprecated - Syntax differs from examples shown above.'' - Adds authentication support.&lt;br /&gt;
*[http://misc.opencoding.net/mta/mtaphpsdk_0.1.zip Download Version 0.1] - ''Deprecated - Syntax differs from examples shown above.''&lt;/div&gt;</summary>
		<author><name>Mrdejong</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Template:Useful_Functions&amp;diff=22355</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=22355"/>
		<updated>2010-02-03T20:21:11Z</updated>

		<summary type="html">&lt;p&gt;Mrdejong: &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;
*[[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;
*[[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;
*[[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;
*[[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;
*[[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;
*[[IsYearALeapYear]] &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;
*[[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;
*[[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;
*[[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;
*[[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.&lt;br /&gt;
&lt;br /&gt;
[[Category:Useful Functions]]&lt;/div&gt;</summary>
		<author><name>Mrdejong</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=GetAge&amp;diff=22354</id>
		<title>GetAge</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=GetAge&amp;diff=22354"/>
		<updated>2010-02-03T16:28:53Z</updated>

		<summary type="html">&lt;p&gt;Mrdejong: Created page with '{{Useful Function}} &amp;lt;lowercasetitle&amp;gt;&amp;lt;/lowercasetitle&amp;gt; __NOTOC__ This function maths the age of the given birthday.  ==Syntax== &amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;int getAge(int day, int month, int yea…'&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Useful Function}}&lt;br /&gt;
&amp;lt;lowercasetitle&amp;gt;&amp;lt;/lowercasetitle&amp;gt;&lt;br /&gt;
__NOTOC__&lt;br /&gt;
This function maths the age of the given birthday.&lt;br /&gt;
&lt;br /&gt;
==Syntax==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;int getAge(int day, int month, int year)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Required Arguments===&lt;br /&gt;
* '''day''': The day when the player was born.&lt;br /&gt;
* '''month''': The month when the player was born.&lt;br /&gt;
* '''year''': The year when the player was born.&lt;br /&gt;
&lt;br /&gt;
==Code==&lt;br /&gt;
&amp;lt;section name=&amp;quot;Function source&amp;quot; class=&amp;quot;both&amp;quot; show=&amp;quot;true&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function getAge(day, month, year)&lt;br /&gt;
	local time = getRealTime();&lt;br /&gt;
	time.year = time.year + 1900;&lt;br /&gt;
	time.month = time.month + 1;&lt;br /&gt;
	&lt;br /&gt;
	year = time.year - year;&lt;br /&gt;
	month = time.month - month;&lt;br /&gt;
	&lt;br /&gt;
	if month &amp;lt; 0 then &lt;br /&gt;
		year = year - 1 &lt;br /&gt;
	elseif month == 0 then&lt;br /&gt;
		if time.monthday &amp;lt; day then&lt;br /&gt;
			year = year - 1;&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
	&lt;br /&gt;
	return year;&lt;br /&gt;
end&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;/section&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
&amp;lt;section name=&amp;quot;Example&amp;quot; class=&amp;quot;both&amp;quot; show=&amp;quot;true&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
-- A simple example:&lt;br /&gt;
addEventHandler(&amp;quot;onResourceStart&amp;quot;, getRootElement(), function()&lt;br /&gt;
	print(getAge(09, 04, 1989))&lt;br /&gt;
end);&lt;br /&gt;
-- that will output:&lt;br /&gt;
-- 20&lt;br /&gt;
-- Yep, i'm 20 years old!&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;/section&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Function created by '''Alexander de Jong AKA mrdejong'''.&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{Useful_Functions}}&lt;/div&gt;</summary>
		<author><name>Mrdejong</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Template:MTA_Framework/Work_In_Progress&amp;diff=19756</id>
		<title>Template:MTA Framework/Work In Progress</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Template:MTA_Framework/Work_In_Progress&amp;diff=19756"/>
		<updated>2009-05-27T17:45:06Z</updated>

		<summary type="html">&lt;p&gt;Mrdejong: New page: &amp;lt;div style=&amp;quot;border: 1px solid red; background-color: #FF8F8F; padding: 5px;&amp;quot;&amp;gt; This is work in progress. If you see functions, classes or anything else that doesn't exists, be aware that it...&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;div style=&amp;quot;border: 1px solid red; background-color: #FF8F8F; padding: 5px;&amp;quot;&amp;gt;&lt;br /&gt;
This is work in progress. If you see functions, classes or anything else that doesn't exists, be aware that it ain't been created yet.&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;/div&gt;</summary>
		<author><name>Mrdejong</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Template:MTA_Framework/Template/Language_Lua_Loader&amp;diff=19754</id>
		<title>Template:MTA Framework/Template/Language Lua Loader</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Template:MTA_Framework/Template/Language_Lua_Loader&amp;diff=19754"/>
		<updated>2009-05-27T12:46:55Z</updated>

		<summary type="html">&lt;p&gt;Mrdejong: New page: * language_lua_loader:init * language_lua_loader:getOutput * [[MTA_Framework/Language_Lua_Loader:...&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;* [[MTA_Framework/Language_Lua_Loader:init|language_lua_loader:init]]&lt;br /&gt;
* [[MTA_Framework/Language_Lua_Loader:getOutput|language_lua_loader:getOutput]]&lt;br /&gt;
* [[MTA_Framework/Language_Lua_Loader:addTranslation|language_lua_loader:addTranslation]]&lt;/div&gt;</summary>
		<author><name>Mrdejong</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Talk:MTA_Framework&amp;diff=19751</id>
		<title>Talk:MTA Framework</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Talk:MTA_Framework&amp;diff=19751"/>
		<updated>2009-05-27T11:49:57Z</updated>

		<summary type="html">&lt;p&gt;Mrdejong: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Ehhh ?? --[[User:Sebassje|Sebas]] 13:44, 27 May 2009 (CEST)&lt;br /&gt;
&lt;br /&gt;
This is an work in progress. --[[User:Mrdejong|mrdejong]] 13:44, 27 May 2009 (CEST)&lt;/div&gt;</summary>
		<author><name>Mrdejong</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Talk:MTA_Framework&amp;diff=19750</id>
		<title>Talk:MTA Framework</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Talk:MTA_Framework&amp;diff=19750"/>
		<updated>2009-05-27T11:49:25Z</updated>

		<summary type="html">&lt;p&gt;Mrdejong: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Ehhh ?? --[[User:Sebassje|Sebas]] 13:44, 27 May 2009 (CEST)&lt;br /&gt;
&lt;br /&gt;
This is an work in progress.&lt;/div&gt;</summary>
		<author><name>Mrdejong</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Server_Manual&amp;diff=18656</id>
		<title>Server Manual</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Server_Manual&amp;diff=18656"/>
		<updated>2009-03-13T13:19:31Z</updated>

		<summary type="html">&lt;p&gt;Mrdejong: /* Configuring your server */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__TOC__&lt;br /&gt;
&lt;br /&gt;
==Getting started==&lt;br /&gt;
It is much easier than it looks to get a server up and running for your internet or LAN buddies: follow this wiki article and you will hopefully be on your way to hosting your own MTA:SA DM Server in no time!&lt;br /&gt;
&lt;br /&gt;
==Installing the server==&lt;br /&gt;
The dedicated server application is available in different flavours depending on the platform of the server.&lt;br /&gt;
&lt;br /&gt;
===Linux installation===&lt;br /&gt;
==Ubuntu==&lt;br /&gt;
I installed the server on ubuntu 6.05 LTS. I will add installation instructions for other linux distros at a later time.&lt;br /&gt;
This install was done on a fresh os install so a few things have to be installed first.&lt;br /&gt;
First of all ssh into your server using whatever client you like. I prefer putty.&lt;br /&gt;
Start by typing   '''sudo apt-get upgrade''' It will prompt you to put your password in again. After the upgrade is done running type&lt;br /&gt;
'''sudo apt-get install pico''' this will install the easy to use pico text editor that you will use to edit the config files.&lt;br /&gt;
After the install is done running you need to get a copy of libcurl3 for the server to run so type '''sudo apt-get install libcurl3'''&lt;br /&gt;
Once again it will ask you for your password. Once this is done now we have to get the server program onto your Linux server. There are a few methods for doing this. you can install a ftp server. you can use putty file transfer. If you know someone with a website you can ask them to put the file on their website then use '''wget http://wwww.websitename.com/file.tar''' Obviously where website name is change to your friends website. Either way once you have the tar file on your server you need to unpack it you do this by using the command '''tar -zxvf filename.tar'''&lt;br /&gt;
==Gentoo==&lt;br /&gt;
I assume that if people are using Gentoo, they know enough of an operating system to get files from the web to their server theirselves... (otherwise, look above and read the ubuntu part)&lt;br /&gt;
&lt;br /&gt;
These versions I needed for DP2:&lt;br /&gt;
&lt;br /&gt;
Update your gcc version to 4.2.2:&lt;br /&gt;
* unmask gcc in /etc/portage/package.unmask)&lt;br /&gt;
* emerge gcc&lt;br /&gt;
* switch to gcc 4.2.2: gcc-config i686-pc-linux-gnu-4.2.2&lt;br /&gt;
Update your libstdc++ version to 3.3 if you haven't got that version&lt;br /&gt;
* emerge libstdc++&lt;br /&gt;
Install libcurl:&lt;br /&gt;
* emerge libcurl&lt;br /&gt;
Unpack mtasa, and run it...&lt;br /&gt;
&lt;br /&gt;
===Windows installation===&lt;br /&gt;
Installation of the MTA:SA DM server on Windows is easy as pie.&lt;br /&gt;
*Go to the [http://mtasa.com/dp.html download page] and scroll down to the &amp;quot;Dedicated servers&amp;quot; section&lt;br /&gt;
*Click the Windows download link.&lt;br /&gt;
*Once the installer is downloaded, open it.&lt;br /&gt;
*Select a folder where you want to install the server.&lt;br /&gt;
*Click Install.&lt;br /&gt;
*Done!&lt;br /&gt;
&lt;br /&gt;
''For a full explanation of acl.xml (access control list) read: [[Access_Control_List|Access Control List]]''&amp;lt;br/&amp;gt;&amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Configuring your server==&lt;br /&gt;
The Multi Theft Auto dedicated server is initially configurable through it's console window, from within the game, and from a webbrowser. In order to make use of the two last options, it is necessary to add at least one administrator user to your configuration file.&lt;br /&gt;
&lt;br /&gt;
===General configuration===&lt;br /&gt;
All general configuration options can be found in the 'mods/deathmatch/'''mtaserver.conf'''' file and can be opened by any regular text editor.&lt;br /&gt;
&lt;br /&gt;
This file is fairly straightforward; every variable has a description of what to do with it and how to change it.&lt;br /&gt;
&lt;br /&gt;
===Port forwarding===&lt;br /&gt;
If you run your server on your own private computer, and you have an router between the internet and your computer. You need to forward 3 ports.&lt;br /&gt;
&lt;br /&gt;
First of all open the file 'mods/deathmatch/'''mtaserver.conf'''' and search for the next lines:&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;serverport&amp;gt;22004&amp;lt;/serverport&amp;gt; &lt;br /&gt;
&amp;lt;httpport&amp;gt;22005&amp;lt;/httpport&amp;gt;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The ports are needed to setup the server right. We explain later how to set them, but first if you want your server to list in the server browser there is an other port we need, and that is the ase port. &lt;br /&gt;
(quick example for how to turn ase on or of):&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;ase&amp;gt;1&amp;lt;/ase&amp;gt; &amp;lt;!-- 0 = of and 1 = on.&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Now we going to forward the ports in router.&lt;br /&gt;
&lt;br /&gt;
If you don't know how it works in your router. Please goto: http://portforward.com/ find your router, and folow the instructions there.&lt;br /&gt;
&lt;br /&gt;
I know one thing for sure. In every router you can set the port type: udp or tcp these are very important. The next list will explain wich port type need to set by the port:&lt;br /&gt;
&lt;br /&gt;
serverport: udp&lt;br /&gt;
httpport: tcp&lt;br /&gt;
&lt;br /&gt;
Now we need the ase port. The ase port is simple to get:&lt;br /&gt;
serverport + 123&lt;br /&gt;
So if you have the serverport set to 22004 then the ase port will be 22127.&lt;br /&gt;
&lt;br /&gt;
The port type for the ase port is: udp.&lt;br /&gt;
&lt;br /&gt;
Good luck with running your server!&lt;br /&gt;
&lt;br /&gt;
===Adding administrators===&lt;br /&gt;
It is strongly recommended to add at least one administrator to your server in order to make use of the built-in webserver to easily maintain and configure your server. This administrator will then also be able to log-in from within the game and control the server.&lt;br /&gt;
&lt;br /&gt;
To add an administrator to your server, follow these steps:&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;ol&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Make sure your server is stopped; if your server is still running, all changes you make will be overwritten&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Open the file 'mods/deathmatch/'accounts.xml'''' with any text editor&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Add a new account into the file by using the XML-syntax below, we use the username &amp;quot;BennyLava&amp;quot; with password &amp;quot;123password&amp;quot; for illustration purposes&lt;br /&gt;
&amp;lt;div style=&amp;quot;padding: 10px&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;accounts&amp;gt;&lt;br /&gt;
  ...&lt;br /&gt;
  &amp;lt;account name=&amp;quot;BennyLava&amp;quot; password=&amp;quot;123password&amp;quot; /&amp;gt;&lt;br /&gt;
&amp;lt;/accounts&amp;gt;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Save and close the file&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Open the file 'mods/deathmatch/'acl.xml'''' with any text editor&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Add the account to the ''Admin'' group by using the XML-syntax below&lt;br /&gt;
&amp;lt;div style=&amp;quot;padding: 10px&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;ACL&amp;gt;&lt;br /&gt;
  ...&lt;br /&gt;
  &amp;lt;group name=&amp;quot;Admin&amp;quot;&amp;gt;&lt;br /&gt;
    &amp;lt;acl name=&amp;quot;Admin&amp;quot;/&amp;gt;&lt;br /&gt;
    ...&lt;br /&gt;
    &amp;lt;object name=&amp;quot;user.BennyLava&amp;quot; /&amp;gt;&lt;br /&gt;
  &amp;lt;/group&amp;gt;&lt;br /&gt;
  ...&lt;br /&gt;
&amp;lt;/ACL&amp;gt;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You can actually add your user to any group you want. Each group is linked to an ACL ([[Access Control List]]). Each ACL contains a series of specific allowed or denied rights. These groups exist so different users can be assigned different rights. The ''Admin'' group points to the ''Admin'' ACL, which is empty (thus allowing all possible commands). The ''Everyone'' group points to the ''Default'' ACL that puts a series of restrictions on the available commands (to disallow regular players from using admin commands).&lt;br /&gt;
&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&lt;br /&gt;
You're done! You can add as many administrators or users as you want this way, take a look at some of the other groups and ACLs for example. The ACL is also accessible through the [[Access_Control_List|Lua scripting engine]].&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
It is recommended to take a look at the web interface, we will explain how to do this below.&lt;br /&gt;
&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ol&amp;gt;&lt;br /&gt;
'''Note''': There are also ways to add accounts and edit rights for the server while it's running. &amp;quot;addaccount &amp;lt;user&amp;gt; &amp;lt;password&amp;gt;&amp;quot; is an internal command to add accounts, but you will have to use the web interface to add these accounts to specific groups/ACLs!&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Using the web interface===&lt;br /&gt;
The dedicated server comes with a few Lua [[resources]] that provide a nice little web interface to your server. This can be used to easily maintain your server, as it allows you to add users, start/stop resources, and more.&lt;br /&gt;
&lt;br /&gt;
The web interface resources are enabled by default and are served through the built-in HTTP web server. To make sure the built-in HTTP web server runs on a port you like (22005 by default), follow these steps:&lt;br /&gt;
&amp;lt;ol&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Make sure your server is stopped&lt;br /&gt;
&amp;lt;li&amp;gt;Open the file '''mods/deathmatch/mtaserver.conf''' with any text editor&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Verify that the HTTP server is enabled:&lt;br /&gt;
&amp;lt;div style=&amp;quot;padding: 10px&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
	&amp;lt;httpserver&amp;gt;1&amp;lt;/httpserver&amp;gt;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Change the HTTP server port to your liking:&lt;br /&gt;
&amp;lt;div style=&amp;quot;padding: 10px&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
	&amp;lt;httpport&amp;gt;22005&amp;lt;/httpport&amp;gt;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Save and close the configuration file&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Start your server&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;If you happened to have changed the start-up resources in your configuration file, make sure the following resources are started:&lt;br /&gt;
&lt;br /&gt;
# resourcebrowser&lt;br /&gt;
# resourcemanager&lt;br /&gt;
# webadmin&lt;br /&gt;
# webmap&lt;br /&gt;
&lt;br /&gt;
These are automatically started in the default configuration file, in case you just installed your server.&lt;br /&gt;
&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Open a web browser (Internet Explorer 6 or 7 are NOT supported: use [http://www.mozilla.com/firefox Mozilla Firefox], [http://www.google.com/chrome Google Chrome], [http://www.apple.com/safari/download Apple Safari], [http://www.opera.com Opera] or others) and navigate to the HTTP server URL: '''http://server:port/'''. For example, If you are running a local server on HTTP port 22005, use '''http://127.0.0.1:22005/'''.&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Enter the username and password of the administrator you added in the previous section.&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ol&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
You should now be able to maintain your server from the web interface.&lt;br /&gt;
&lt;br /&gt;
=== Configuring an external web server ===&lt;br /&gt;
The built-in web server is also used to serve files that are required by resources running on your server to any player that is connected to your server. For example, if you are running a game script with a scripted graphical user interface, or custom models, these need to be transferred to every connected player in order to function properly. This is done by either the built-in web server, or an external web server (that is usually a bit faster) but needs to be set up separately.&lt;br /&gt;
&lt;br /&gt;
For performance or consistency reasons during the game, you could choose to make use of such an external web server if you have one set up. The external web server needs to be accessible for the public, so any client will be able to download the necessary client-side files in order to join and play on your server.&lt;br /&gt;
&lt;br /&gt;
To enable downloading off an external web server, you should configure the ''httpdownload'' and ''httpdownloadurl'' tags in your server configuration:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div style=&amp;quot;padding: 10px&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;xml&amp;quot;&amp;gt;&amp;lt;httpdownload&amp;gt;1&amp;lt;/httpdownload&amp;gt;	&lt;br /&gt;
&amp;lt;httpdownloadurl&amp;gt;http://www.myserver.tld/directory/here&amp;lt;/httpdownloadurl&amp;gt;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Since all the default resources provided with the dedicated server are zipped, and are normally automatically extracted by the built-in web server, you now have to provide a way for the clients to download the unextracted files to their computers. The unextracted files are always available in the '''&amp;lt;SERVER&amp;gt;/mods/deathmatch/resourcecache''' directory.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;ol&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Launch the dedicated server once and exit again. This will extract the zip files into the '''&amp;lt;SERVER&amp;gt;/mods/deathmatch/resourcecache''' directory.&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Go into the directory above and copy the resources to your external web server's public directory, this can be done in several ways:&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;If you don't care about your '''server-side files being publically available''': create a symbolic link (Linux), a junction (Windows) or just plain copy the contents of the '''resourcecache''' directory to your public web server directory.&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;If you don't want your server files to be publically available through your web server: go into the '''resourcecache''' directory and manually copy the folders over to your public web server directory, removing any server-side files (they are '''not''' necessary for the client-side downloading) you do not want to be hosting on your web server.&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
A quick way of securing your server-side files is currently not available. We will investigate into developing a tool that automatically copies only the necessary client-side files for all resources on your server.&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ol&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Note 1''': Please try to avoid any special characters (e.g. ~, !) in your download URLs.&amp;lt;br /&amp;gt;&lt;br /&gt;
'''Note 2''': Please do not use a trailing slash in your download URL (e.g. ''hxxp://www.myserver.tld/directory'' rather than ''hxxp://www.myserver.tld/directory/'')&lt;br /&gt;
&lt;br /&gt;
==Starting your server==&lt;br /&gt;
Begin by making sure that you have finished all configuration of your server, starting your server is the last stage so everything must be ready!&lt;br /&gt;
&lt;br /&gt;
To start your server double click on MTA Server.exe, make sure you allow it through any firewalls and forward ports where nessessary.&lt;br /&gt;
&lt;br /&gt;
==Installing/Updating resources on your server==&lt;br /&gt;
Resources can come in two formats, either a ZIP format or just a normal folder with the script files inside it. The MTA:SA DM server supports both these methods.&lt;br /&gt;
&lt;br /&gt;
# Move or copy the new resource to your &amp;lt;SERVER&amp;gt;\mods\deathmatch\resources folder.&lt;br /&gt;
# In the server window type in the command &amp;quot;refresh&amp;quot; (without the quotes), this will re-scan the resources folder and update the live resources where necessary.&lt;br /&gt;
&lt;br /&gt;
==Uninstalling resources==&lt;br /&gt;
Resources can easily be removed from your server if you no longer want them.&lt;br /&gt;
&lt;br /&gt;
# Delete the ZIP file or the folder of the resource you wish to uninstall&lt;br /&gt;
# In the server window type in the command &amp;quot;refresh&amp;quot; (without the quotes), this will re-scan the resources folder and update the live resources where necessary.&lt;br /&gt;
&lt;br /&gt;
==Administrating your server==&lt;br /&gt;
You can start resources by typing the command &amp;quot;start resourcename&amp;quot; in the server console, or stop ones with &amp;quot;stop resourcename&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
It's also possible to execute these and other admin commands from the ingame console (which you can bring up with the ` key or F8); for this to work, you first need to log in with the command &amp;quot;login username password&amp;quot;. Additionally, you can press the p key to bring up the admin panel: this is a graphical interface which allows you to easily kick or ban misbehaving players, among others.&lt;br /&gt;
&lt;br /&gt;
For further commands, type &amp;quot;help&amp;quot; in a console.&lt;br /&gt;
&lt;br /&gt;
==Starting a map/gamemode==&lt;br /&gt;
See the commands section of the documentation for [[Resource:Map manager|mapmanager]] for more information.&lt;br /&gt;
&lt;br /&gt;
==Useful Notes==&lt;br /&gt;
&lt;br /&gt;
# You may also update the resources while ingame as long as you have the correct access levels by typing &amp;quot;refresh&amp;quot; in the clients console or &amp;quot;/refresh&amp;quot; in the chat window. This may cause a second of lag if you have many resources.&lt;br /&gt;
# In the above instructions, &amp;lt;SERVER&amp;gt; is the path to your server's main directory. In most cases this is C:\Program Files\MTA San Andreas\server&lt;br /&gt;
# You can choose a different config file for the server to use by passing it in the command line after a --config argument, e.g. mtaserver.exe --config anotherconfig.cfg.&lt;br /&gt;
# Do not be alarmed by the warning regarding the parsing of the settings.xml file. This happens because your server installation is still clean and unused.&lt;br /&gt;
&lt;br /&gt;
====Need further help?====&lt;br /&gt;
Why not pop over to our [http://forum.mtasa.com/ Forums] or join us on [irc://irc.multitheftauto.com/mta IRC] (irc.multitheftauto.com #mta - [http://www.mirc.com MIRC])&lt;br /&gt;
&lt;br /&gt;
[[it:Manuale del Server]]&lt;/div&gt;</summary>
		<author><name>Mrdejong</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=GUI_Classes&amp;diff=18448</id>
		<title>GUI Classes</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=GUI_Classes&amp;diff=18448"/>
		<updated>2009-02-28T17:23:30Z</updated>

		<summary type="html">&lt;p&gt;Mrdejong: New page: &amp;lt;pageclass class=&amp;quot;client&amp;quot;&amp;gt;&amp;lt;/pageclass&amp;gt; This page lists all the gui class objects. This will only work with: http://community.mtasa.com/index.php?p=resources&amp;amp;s=details&amp;amp;id=241  This system i...&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;pageclass class=&amp;quot;client&amp;quot;&amp;gt;&amp;lt;/pageclass&amp;gt;&lt;br /&gt;
This page lists all the gui class objects. This will only work with: http://community.mtasa.com/index.php?p=resources&amp;amp;s=details&amp;amp;id=241&lt;br /&gt;
&lt;br /&gt;
This system is created by the well none 50p!&lt;br /&gt;
&lt;br /&gt;
GUI Classes made scripting gui objects eisier!&lt;br /&gt;
__TOC__&lt;br /&gt;
&lt;br /&gt;
==Window class==&lt;br /&gt;
{{GUI_Classes_Window}}&lt;br /&gt;
&lt;br /&gt;
==Window tab class==&lt;br /&gt;
{{GUI_Classes_Window_tab}}&lt;br /&gt;
&lt;br /&gt;
==Tab panel class==&lt;br /&gt;
{{GUI_Classes_TabPanel}}&lt;br /&gt;
&lt;br /&gt;
==Tab class==&lt;br /&gt;
{{GUI_Classes_Tab}}&lt;br /&gt;
&lt;br /&gt;
==Gridlist class==&lt;br /&gt;
{{GUI_Classes_Gridlist}}&lt;br /&gt;
&lt;br /&gt;
==Button class==&lt;br /&gt;
{{GUI_Classes_Button}}&lt;/div&gt;</summary>
		<author><name>Mrdejong</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=GetCameraMode&amp;diff=17790</id>
		<title>GetCameraMode</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=GetCameraMode&amp;diff=17790"/>
		<updated>2008-10-27T08:50:56Z</updated>

		<summary type="html">&lt;p&gt;Mrdejong: /* Example */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Server client function}}&lt;br /&gt;
__NOTOC__&lt;br /&gt;
This function returns a [[string]] containing the current mode of the player's camera.&lt;br /&gt;
==Syntax== &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;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
string getCameraMode ( player thePlayer )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
&lt;br /&gt;
===Required Arguments=== &lt;br /&gt;
*'''thePlayer:''' The player whose camera mode you wish to obtain.&lt;br /&gt;
&amp;lt;/section&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;section name=&amp;quot;Client&amp;quot; class=&amp;quot;client&amp;quot; show=&amp;quot;true&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
string getCameraMode ( )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
&lt;br /&gt;
===Required Arguments=== &lt;br /&gt;
''None.''&lt;br /&gt;
&amp;lt;/section&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns a [[string]] with one of two values if successful:&lt;br /&gt;
* '''player:''' The camera is attached to a player.&lt;br /&gt;
* '''fixed:''' The camera is in a fixed position.&lt;br /&gt;
&lt;br /&gt;
The function will return ''false'' if unsuccessful.&lt;br /&gt;
&lt;br /&gt;
==Example== &lt;br /&gt;
This function checks the camera state of a player:&lt;br /&gt;
&amp;lt;section name=&amp;quot;Server script&amp;quot; class=&amp;quot;server&amp;quot; show=&amp;quot;true&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function checkCamera( source, command, targetName )&lt;br /&gt;
      local targetPlayer = getPlayerFromNick ( targetName )   -- Get the player using his name&lt;br /&gt;
      outputConsole( getCameraMode( targetPlayer ), source )  -- Output the state of player's camera&lt;br /&gt;
end&lt;br /&gt;
addCommandHandler( &amp;quot;camera&amp;quot;, checkCamera )&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;Client script&amp;quot; class=&amp;quot;client&amp;quot; show=&amp;quot;false&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function checkCamera( command, targetName )&lt;br /&gt;
      local targetPlayer = getPlayerFromNick ( getLocalPlayer())   -- Get the player using his name&lt;br /&gt;
      outputConsole( getCameraMode(), getLocalPlayer())  -- Output the state of player's camera&lt;br /&gt;
end&lt;br /&gt;
addCommandHandler( &amp;quot;camera&amp;quot;, checkCamera )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;/section&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{Camera functions}}&lt;/div&gt;</summary>
		<author><name>Mrdejong</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=GetCameraMode&amp;diff=17789</id>
		<title>GetCameraMode</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=GetCameraMode&amp;diff=17789"/>
		<updated>2008-10-27T08:50:33Z</updated>

		<summary type="html">&lt;p&gt;Mrdejong: /* Example */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Server client function}}&lt;br /&gt;
__NOTOC__&lt;br /&gt;
This function returns a [[string]] containing the current mode of the player's camera.&lt;br /&gt;
==Syntax== &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;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
string getCameraMode ( player thePlayer )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
&lt;br /&gt;
===Required Arguments=== &lt;br /&gt;
*'''thePlayer:''' The player whose camera mode you wish to obtain.&lt;br /&gt;
&amp;lt;/section&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;section name=&amp;quot;Client&amp;quot; class=&amp;quot;client&amp;quot; show=&amp;quot;true&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
string getCameraMode ( )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
&lt;br /&gt;
===Required Arguments=== &lt;br /&gt;
''None.''&lt;br /&gt;
&amp;lt;/section&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns a [[string]] with one of two values if successful:&lt;br /&gt;
* '''player:''' The camera is attached to a player.&lt;br /&gt;
* '''fixed:''' The camera is in a fixed position.&lt;br /&gt;
&lt;br /&gt;
The function will return ''false'' if unsuccessful.&lt;br /&gt;
&lt;br /&gt;
==Example== &lt;br /&gt;
This function checks the camera state of a player:&lt;br /&gt;
&amp;lt;section name=&amp;quot;Server script&amp;quot; class=&amp;quot;server&amp;quot; show=&amp;quot;true&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function checkCamera( source, command, targetName )&lt;br /&gt;
      local targetPlayer = getPlayerFromNick ( targetName )   -- Get the player using his name&lt;br /&gt;
      outputConsole( getCameraMode( targetPlayer ), source )  -- Output the state of player's camera&lt;br /&gt;
end&lt;br /&gt;
addCommandHandler( &amp;quot;camera&amp;quot;, checkCamera )&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;Client script&amp;quot; class=&amp;quot;client&amp;quot; show=&amp;quot;false&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function checkCamera( command, targetName )&lt;br /&gt;
      local targetPlayer = getPlayerFromNick ( getLocalPlayer())   -- Get the player using his name&lt;br /&gt;
      outputConsole( getCameraMode(), getLocalPlayer())  -- Output the state of player's camera&lt;br /&gt;
end&lt;br /&gt;
addCommandHandler( &amp;quot;camera&amp;quot;, checkCamera )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{Camera functions}}&lt;/div&gt;</summary>
		<author><name>Mrdejong</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=BanPlayer&amp;diff=17769</id>
		<title>BanPlayer</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=BanPlayer&amp;diff=17769"/>
		<updated>2008-10-24T16:33:39Z</updated>

		<summary type="html">&lt;p&gt;Mrdejong: /* Example */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__ &lt;br /&gt;
{{Server function}}&lt;br /&gt;
This function will ban the specified player from the server by IP.&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 banPlayer ( player bannedPlayer , [ element responsibleElement , string reason ] )         &lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
&lt;br /&gt;
===Required Arguments=== &lt;br /&gt;
*'''bannedPlayer:''' The player that will be banned from the server&lt;br /&gt;
&lt;br /&gt;
===Optional Arguments=== &lt;br /&gt;
{{OptionalArg}} &lt;br /&gt;
*'''responsibleElement:''' The element that is responsible for banning the player. This can be a player or the root: &amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;getRootElement()&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''reason:''' The reason the player will be banned from the server&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns ''true'' if the player was banned succesfully, ''false'' if invalid arguments are specified.&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
This example lets a player ban anyone if he has ACL rights.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
--Add the &amp;quot;ban&amp;quot; command handler&lt;br /&gt;
-- Example with the player&lt;br /&gt;
function banPlayerCommand ( theClient, commandName, bannedName, reason )&lt;br /&gt;
&lt;br /&gt;
	-- Give the player a nice error if he doesn't have rights&lt;br /&gt;
	if ( hasObjectPermissionTo ( theClient, &amp;quot;function.banPlayer&amp;quot; ) ) then&lt;br /&gt;
		--Get player element from the name&lt;br /&gt;
		local bannedPlayer = getPlayerFromNick ( bannedName )&lt;br /&gt;
&lt;br /&gt;
		--Ban the player&lt;br /&gt;
		banPlayer ( bannedPlayer, theClient, reason )&lt;br /&gt;
		outputChatBox ( &amp;quot;ban: &amp;quot; .. bannedName .. &amp;quot; successfully banned&amp;quot;, theClient )&lt;br /&gt;
&lt;br /&gt;
	else&lt;br /&gt;
		outputChatBox ( &amp;quot;ban: You don't have enough permissions&amp;quot;, theClient )&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
-- Example with the rood element.&lt;br /&gt;
function banCheater(theCheater)&lt;br /&gt;
	banPlayer(theCheater, getRootElement(), &amp;quot;You are banned because of cheating.&amp;quot;)&lt;br /&gt;
end&lt;br /&gt;
addCommandHandler ( &amp;quot;ban&amp;quot;, banPlayerCommand )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{Admin_functions}}&lt;/div&gt;</summary>
		<author><name>Mrdejong</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=BanPlayer&amp;diff=17768</id>
		<title>BanPlayer</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=BanPlayer&amp;diff=17768"/>
		<updated>2008-10-24T16:29:48Z</updated>

		<summary type="html">&lt;p&gt;Mrdejong: /* Syntax */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__ &lt;br /&gt;
{{Server function}}&lt;br /&gt;
This function will ban the specified player from the server by IP.&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 banPlayer ( player bannedPlayer , [ element responsibleElement , string reason ] )         &lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
&lt;br /&gt;
===Required Arguments=== &lt;br /&gt;
*'''bannedPlayer:''' The player that will be banned from the server&lt;br /&gt;
&lt;br /&gt;
===Optional Arguments=== &lt;br /&gt;
{{OptionalArg}} &lt;br /&gt;
*'''responsibleElement:''' The element that is responsible for banning the player. This can be a player or the root: &amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;getRootElement()&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''reason:''' The reason the player will be banned from the server&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns ''true'' if the player was banned succesfully, ''false'' if invalid arguments are specified.&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
This example lets a player ban anyone if he has ACL rights.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
--Add the &amp;quot;ban&amp;quot; command handler&lt;br /&gt;
function banPlayerCommand ( theClient, commandName, bannedName, reason )&lt;br /&gt;
&lt;br /&gt;
	-- Give the player a nice error if he doesn't have rights&lt;br /&gt;
	if ( hasObjectPermissionTo ( theClient, &amp;quot;function.banPlayer&amp;quot; ) ) then&lt;br /&gt;
		--Get player element from the name&lt;br /&gt;
		local bannedPlayer = getPlayerFromNick ( bannedName )&lt;br /&gt;
&lt;br /&gt;
		--Ban the player&lt;br /&gt;
		banPlayer ( bannedPlayer, theClient, reason )&lt;br /&gt;
		outputChatBox ( &amp;quot;ban: &amp;quot; .. bannedName .. &amp;quot; successfully banned&amp;quot;, theClient )&lt;br /&gt;
&lt;br /&gt;
	else&lt;br /&gt;
		outputChatBox ( &amp;quot;ban: You don't have enough permissions&amp;quot;, theClient )&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
end&lt;br /&gt;
addCommandHandler ( &amp;quot;ban&amp;quot;, banPlayerCommand )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{Admin_functions}}&lt;/div&gt;</summary>
		<author><name>Mrdejong</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=BanPlayer&amp;diff=17767</id>
		<title>BanPlayer</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=BanPlayer&amp;diff=17767"/>
		<updated>2008-10-24T16:29:28Z</updated>

		<summary type="html">&lt;p&gt;Mrdejong: /* Syntax */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__ &lt;br /&gt;
{{Server function}}&lt;br /&gt;
This function will ban the specified player from the server by IP.&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 banPlayer ( player bannedPlayer , [ element responsibleElement , string reason ] )         &lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
&lt;br /&gt;
===Required Arguments=== &lt;br /&gt;
*'''bannedPlayer:''' The player that will be banned from the server&lt;br /&gt;
&lt;br /&gt;
===Optional Arguments=== &lt;br /&gt;
{{OptionalArg}} &lt;br /&gt;
*'''responsibleElement:''' The element that is responsible for banning the player. This can be a player or the root (&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;getRootElement()&amp;lt;/syntaxhighlight&amp;gt;)&lt;br /&gt;
*'''reason:''' The reason the player will be banned from the server&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns ''true'' if the player was banned succesfully, ''false'' if invalid arguments are specified.&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
This example lets a player ban anyone if he has ACL rights.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
--Add the &amp;quot;ban&amp;quot; command handler&lt;br /&gt;
function banPlayerCommand ( theClient, commandName, bannedName, reason )&lt;br /&gt;
&lt;br /&gt;
	-- Give the player a nice error if he doesn't have rights&lt;br /&gt;
	if ( hasObjectPermissionTo ( theClient, &amp;quot;function.banPlayer&amp;quot; ) ) then&lt;br /&gt;
		--Get player element from the name&lt;br /&gt;
		local bannedPlayer = getPlayerFromNick ( bannedName )&lt;br /&gt;
&lt;br /&gt;
		--Ban the player&lt;br /&gt;
		banPlayer ( bannedPlayer, theClient, reason )&lt;br /&gt;
		outputChatBox ( &amp;quot;ban: &amp;quot; .. bannedName .. &amp;quot; successfully banned&amp;quot;, theClient )&lt;br /&gt;
&lt;br /&gt;
	else&lt;br /&gt;
		outputChatBox ( &amp;quot;ban: You don't have enough permissions&amp;quot;, theClient )&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
end&lt;br /&gt;
addCommandHandler ( &amp;quot;ban&amp;quot;, banPlayerCommand )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{Admin_functions}}&lt;/div&gt;</summary>
		<author><name>Mrdejong</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=User:Mrdejong&amp;diff=17554</id>
		<title>User:Mrdejong</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=User:Mrdejong&amp;diff=17554"/>
		<updated>2008-06-27T16:50:28Z</updated>

		<summary type="html">&lt;p&gt;Mrdejong: New page:  == This is my page ==  But nothing '''To see here''' ---- --~~~~&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
== This is my page ==&lt;br /&gt;
&lt;br /&gt;
But nothing '''To see here'''&lt;br /&gt;
----&lt;br /&gt;
--[[User:Mrdejong|Mrdejong]] 11:50, 27 June 2008 (CDT)&lt;/div&gt;</summary>
		<author><name>Mrdejong</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Talk:Modules/MTA-MySQL/mysql_rows&amp;diff=17553</id>
		<title>Talk:Modules/MTA-MySQL/mysql rows</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Talk:Modules/MTA-MySQL/mysql_rows&amp;diff=17553"/>
		<updated>2008-06-27T16:49:17Z</updated>

		<summary type="html">&lt;p&gt;Mrdejong: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Maybe add mysql_affected_rows(handler)&lt;br /&gt;
Need to return: 1 if the (insert/update) query had updated/inserted rows in to the database. And 0 other wise.&lt;br /&gt;
* Have you seen this function? [[Modules/MTA-MySQL/mysql_affected_rows]] --[[User:Ryden|Ryden]] 23:42, 26 June 2008 (CDT)&lt;br /&gt;
* Yes but to late. My apologise for that --[[User:Mrdejong|Mrdejong]] 18:49, 24 June 2008 (GMT)&lt;/div&gt;</summary>
		<author><name>Mrdejong</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Talk:Modules/MTA-MySQL/mysql_rows&amp;diff=17548</id>
		<title>Talk:Modules/MTA-MySQL/mysql rows</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Talk:Modules/MTA-MySQL/mysql_rows&amp;diff=17548"/>
		<updated>2008-06-26T09:56:21Z</updated>

		<summary type="html">&lt;p&gt;Mrdejong: New page: Maybe add mysql_affected_rows(handler)  Need to return: 1 if the (insert/update) query had updated/inserted rows in to the database. And 0 other wise.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Maybe add mysql_affected_rows(handler)&lt;br /&gt;
&lt;br /&gt;
Need to return: 1 if the (insert/update) query had updated/inserted rows in to the database. And 0 other wise.&lt;/div&gt;</summary>
		<author><name>Mrdejong</name></author>
	</entry>
</feed>