<?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=OpenIDUser28</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=OpenIDUser28"/>
	<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/wiki/Special:Contributions/OpenIDUser28"/>
	<updated>2026-05-14T11:50:59Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.39.3</generator>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=SetMaxPlayers&amp;diff=27060</id>
		<title>SetMaxPlayers</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=SetMaxPlayers&amp;diff=27060"/>
		<updated>2011-09-04T13:05:39Z</updated>

		<summary type="html">&lt;p&gt;OpenIDUser28: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__&lt;br /&gt;
{{Server function}}&lt;br /&gt;
This function sets the maximum number of player slots on the server.&lt;br /&gt;
&lt;br /&gt;
'''Note''': the maximum this function can set is what is defined in mtaserver.conf&lt;br /&gt;
&lt;br /&gt;
==Syntax==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;bool setMaxPlayers ( int slots )&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Required Arguments=== &lt;br /&gt;
&amp;lt;!-- List each argument one per line. This should be the argument's name as in the argument list above, NOT the argument's data type --&amp;gt;&lt;br /&gt;
*'''slots:''' Maximum number of player slots on the server.&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
&amp;lt;!-- Make this descriptive. Explain what cases will return false. If you're unsure, add a tag to it so we can check --&amp;gt;&lt;br /&gt;
Returns ''true'' if number of player slots was successfully changed, ''false'' or ''nil'' otherwise.&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
This example set server slots count to half value from current value.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
local curMaxPlayers = getMaxPlayers()&lt;br /&gt;
local newMaxPlayers = math.ceil( curMaxPlayers / 2 )&lt;br /&gt;
&lt;br /&gt;
setMaxPlayers( newMaxPlayers )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{Server functions}}&lt;/div&gt;</summary>
		<author><name>OpenIDUser28</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=ResetRainLevel&amp;diff=27058</id>
		<title>ResetRainLevel</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=ResetRainLevel&amp;diff=27058"/>
		<updated>2011-09-04T12:58:21Z</updated>

		<summary type="html">&lt;p&gt;OpenIDUser28: Extended the info.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__&lt;br /&gt;
{{Server client function}}&lt;br /&gt;
This function resets the rain level of the current weather to its default.&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 resetRainLevel ( )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Returns==&lt;br /&gt;
Returns true if the rain level was reseted.&lt;/div&gt;</summary>
		<author><name>OpenIDUser28</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=ResetWaterColor&amp;diff=27056</id>
		<title>ResetWaterColor</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=ResetWaterColor&amp;diff=27056"/>
		<updated>2011-09-04T12:38:06Z</updated>

		<summary type="html">&lt;p&gt;OpenIDUser28: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__&lt;br /&gt;
{{Server client function}}&lt;br /&gt;
This function reset the water color of the GTA world to default.&lt;br /&gt;
&lt;br /&gt;
{{New_feature|3.0110|1.1|&lt;br /&gt;
Available server-side. Only available client-side for 1.0.x&lt;br /&gt;
}}&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 resetWaterColor ( )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns ''true'' if water color was reset correctly, ''false'' otherwise.&lt;br /&gt;
&lt;br /&gt;
==Example== &lt;br /&gt;
This example adds a command ''resetwatercolor'' with which a player can reset the water colour.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function changeWaterBackToNormal ()&lt;br /&gt;
    resetWaterColor ()&lt;br /&gt;
end&lt;br /&gt;
addCommandHandler ( &amp;quot;resetwatercolor&amp;quot;, changeWaterBackToNormal )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{Client water functions}}&lt;/div&gt;</summary>
		<author><name>OpenIDUser28</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=GetRainLevel&amp;diff=27055</id>
		<title>GetRainLevel</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=GetRainLevel&amp;diff=27055"/>
		<updated>2011-09-04T12:34:34Z</updated>

		<summary type="html">&lt;p&gt;OpenIDUser28: Extended the info.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__&lt;br /&gt;
{{Server client function}}&lt;br /&gt;
This function is used to get the current rain level.&lt;br /&gt;
&lt;br /&gt;
'''Note:''' The server can only return the rain level if it has actually been set by script, otherwise it will return ''false''.&lt;br /&gt;
&lt;br /&gt;
==Syntax==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
float getRainLevel( )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns the rain level as a number.&lt;/div&gt;</summary>
		<author><name>OpenIDUser28</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=SetRainLevel&amp;diff=27054</id>
		<title>SetRainLevel</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=SetRainLevel&amp;diff=27054"/>
		<updated>2011-09-04T12:22:04Z</updated>

		<summary type="html">&lt;p&gt;OpenIDUser28: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__&lt;br /&gt;
{{Server client function}}&lt;br /&gt;
This function sets the rain level to any weather available in GTA. Use [[resetRainLevel]] to undo the changes.&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 setRainLevel ( float level )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Required Arguments=== &lt;br /&gt;
*'''level:''' A floating point number representing the rain level.&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns ''true'' if the rain level was set, ''false'' otherwise.&lt;/div&gt;</summary>
		<author><name>OpenIDUser28</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=SetRainLevel&amp;diff=27053</id>
		<title>SetRainLevel</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=SetRainLevel&amp;diff=27053"/>
		<updated>2011-09-04T12:20:51Z</updated>

		<summary type="html">&lt;p&gt;OpenIDUser28: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__&lt;br /&gt;
{{Server client function}}&lt;br /&gt;
This function sets the rain level to any weather available in GTA. Use [[resetRainLevel]] to undo the changes.&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 setRainLevel ( float level )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Required Arguments=== &lt;br /&gt;
*'''level:''' A floating point number representing the rain level.&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns true if the rain level was set, ''false'' otherwise.&lt;/div&gt;</summary>
		<author><name>OpenIDUser28</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=SetRainLevel&amp;diff=27052</id>
		<title>SetRainLevel</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=SetRainLevel&amp;diff=27052"/>
		<updated>2011-09-04T12:14:47Z</updated>

		<summary type="html">&lt;p&gt;OpenIDUser28: Extended the info.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__&lt;br /&gt;
{{Server client function}}&lt;br /&gt;
This function sets the rain level to any weather available in GTA. Use [[resetRainLevel]] to undo the changes.&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 setRainLevel ( float Level )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Required Arguments=== &lt;br /&gt;
*'''Level:''' A floating point number representing the rain level.&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns true if the rain level was set, ''false'' otherwise.&lt;/div&gt;</summary>
		<author><name>OpenIDUser28</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=CreatePed&amp;diff=27023</id>
		<title>CreatePed</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=CreatePed&amp;diff=27023"/>
		<updated>2011-09-04T01:23:52Z</updated>

		<summary type="html">&lt;p&gt;OpenIDUser28: Server and Client Side Syntax&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__ &lt;br /&gt;
{{Server client function}}&lt;br /&gt;
{{Needs_Checking|Please check if I'm right with the bSynced argument. I've been testing two different peds and discovered the effect written below --[[User:OpenIDUser28|Sniper]] 03:12, 4 September 2011 (CEST)}} &lt;br /&gt;
Creates a Ped in the GTA world.&lt;br /&gt;
&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;ped createPed ( int modelid, float x, float y, float z [, float rot = 0.0, bool bSynced = true ] )&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
&lt;br /&gt;
===Required Arguments=== &lt;br /&gt;
*'''modelid:''' A whole integer specifying the [[Character_Skins|GTASA skin ID]].&lt;br /&gt;
*'''x:''' A floating point number representing the X coordinate on the map.&lt;br /&gt;
*'''y:''' A floating point number representing the Y coordinate on the map.&lt;br /&gt;
*'''z:''' A floating point number representing the Z coordinate on the map.&lt;br /&gt;
&lt;br /&gt;
==Optional Arguments==&lt;br /&gt;
{{OptionalArg}}&lt;br /&gt;
*'''rot:''' A floating point number representing the rotation in degrees. &lt;br /&gt;
*'''bSynced:''' A boolean value representing whether or not the ped will be fully synchronized even for players that are not within the syncing range. If disabled a player that is more than 100 units away from the ped won't receive any new information about its state and position. This will cause a desync of the ped (useful for frozen/static peds to increase the server perfomance).&lt;br /&gt;
&amp;lt;/section&amp;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;ped createPed ( int modelid, float x, float y, float z [, float rot = 0.0 ] )&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
&lt;br /&gt;
===Required Arguments=== &lt;br /&gt;
*'''modelid:''' A whole integer specifying the [[Character_Skins|GTASA skin ID]].&lt;br /&gt;
*'''x:''' A floating point number representing the X coordinate on the map.&lt;br /&gt;
*'''y:''' A floating point number representing the Y coordinate on the map.&lt;br /&gt;
*'''z:''' A floating point number representing the Z coordinate on the map.&lt;br /&gt;
&lt;br /&gt;
==Optional Arguments==&lt;br /&gt;
{{OptionalArg}}&lt;br /&gt;
*'''rot:''' A floating point number representing the rotation in degrees. &lt;br /&gt;
&amp;lt;/section&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns a ped element if it was successfully created.&lt;br /&gt;
&lt;br /&gt;
==Example== &lt;br /&gt;
&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;
This example creates an ped when the resource starts:&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function pedLoad ( name )&lt;br /&gt;
   createPed ( 120, 5540.6654, 1020.55122, 1240.545 )&lt;br /&gt;
end&lt;br /&gt;
addEventHandler ( &amp;quot;onResourceStart&amp;quot;, getRootElement(), pedLoad )&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;
{{Ped functions}}&lt;br /&gt;
[[ru:createPed]]&lt;/div&gt;</summary>
		<author><name>OpenIDUser28</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=CreatePed&amp;diff=27022</id>
		<title>CreatePed</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=CreatePed&amp;diff=27022"/>
		<updated>2011-09-04T01:13:10Z</updated>

		<summary type="html">&lt;p&gt;OpenIDUser28: /* Required Arguments */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__ &lt;br /&gt;
{{Server client function}}&lt;br /&gt;
{{Needs_Checking|Please check if I'm right with the bSynced argument. I've been testing two different peds and discovered the effect written below --[[User:OpenIDUser28|Sniper]] 03:12, 4 September 2011 (CEST)}} &lt;br /&gt;
Creates a Ped in the GTA world.&lt;br /&gt;
&lt;br /&gt;
==Syntax== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;ped createPed ( int modelid, float x, float y, float z [, float rot = 0.0, bool bSynced = true ] )&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
&lt;br /&gt;
===Required Arguments=== &lt;br /&gt;
*'''modelid:''' A whole integer specifying the [[Character_Skins|GTASA skin ID]].&lt;br /&gt;
*'''x:''' A floating point number representing the X coordinate on the map.&lt;br /&gt;
*'''y:''' A floating point number representing the Y coordinate on the map.&lt;br /&gt;
*'''z:''' A floating point number representing the Z coordinate on the map.&lt;br /&gt;
*'''rot:''' A floating point number representing the rotation in degrees. &lt;br /&gt;
*'''bSynced:''' A boolean value representing whether or not the ped will be fully synchronized even for players that are not within the syncing range. If disabled a player that is more than 100 units away from the ped won't receive any new information about its state and position. This will cause a desync of the ped (useful for frozen/static peds to increase the server perfomance).&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns a ped element if it was successfully created, ''nil'' if an invalid element is passed.&lt;br /&gt;
&lt;br /&gt;
==Example== &lt;br /&gt;
&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;
This example creates an ped when the resource starts:&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function pedLoad ( name )&lt;br /&gt;
   createPed ( 120, 5540.6654, 1020.55122, 1240.545 )&lt;br /&gt;
end&lt;br /&gt;
addEventHandler ( &amp;quot;onResourceStart&amp;quot;, getRootElement(), pedLoad )&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;
{{Ped functions}}&lt;br /&gt;
[[ru:createPed]]&lt;/div&gt;</summary>
		<author><name>OpenIDUser28</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=CreatePed&amp;diff=27021</id>
		<title>CreatePed</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=CreatePed&amp;diff=27021"/>
		<updated>2011-09-04T01:12:14Z</updated>

		<summary type="html">&lt;p&gt;OpenIDUser28: Added the bSynced argument&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__ &lt;br /&gt;
{{Server client function}}&lt;br /&gt;
{{Needs_Checking|Please check if I'm right with the bSynced argument. I've been testing two different peds and discovered the effect written below --[[User:OpenIDUser28|Sniper]] 03:12, 4 September 2011 (CEST)}} &lt;br /&gt;
Creates a Ped in the GTA world.&lt;br /&gt;
&lt;br /&gt;
==Syntax== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;ped createPed ( int modelid, float x, float y, float z [, float rot = 0.0, bool bSynced = true ] )&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
&lt;br /&gt;
===Required Arguments=== &lt;br /&gt;
*'''modelid:''' A whole integer specifying the [[Character_Skins|GTASA skin ID]].&lt;br /&gt;
*'''x:''' A floating point number representing the X coordinate on the map.&lt;br /&gt;
*'''y:''' A floating point number representing the Y coordinate on the map.&lt;br /&gt;
*'''z:''' A floating point number representing the Z coordinate on the map.&lt;br /&gt;
*'''rot:''' A floating point number representing the rotation in degrees. &lt;br /&gt;
*'''bSynced:''' A boolean value representing whether or not the ped will be fully synchronized even for players that are not within the syncing range. If disabled a player that is more than 100 units away from the ped won't receive new information about its state and position. This will cause a desync of the ped (useful for frozen/static peds to increase the server perfomance).&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns a ped element if it was successfully created, ''nil'' if an invalid element is passed.&lt;br /&gt;
&lt;br /&gt;
==Example== &lt;br /&gt;
&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;
This example creates an ped when the resource starts:&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function pedLoad ( name )&lt;br /&gt;
   createPed ( 120, 5540.6654, 1020.55122, 1240.545 )&lt;br /&gt;
end&lt;br /&gt;
addEventHandler ( &amp;quot;onResourceStart&amp;quot;, getRootElement(), pedLoad )&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;
{{Ped functions}}&lt;br /&gt;
[[ru:createPed]]&lt;/div&gt;</summary>
		<author><name>OpenIDUser28</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Talk:Test&amp;diff=27013</id>
		<title>Talk:Test</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Talk:Test&amp;diff=27013"/>
		<updated>2011-09-03T22:54:28Z</updated>

		<summary type="html">&lt;p&gt;OpenIDUser28: Blanked the page&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>OpenIDUser28</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Talk:Test&amp;diff=27012</id>
		<title>Talk:Test</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Talk:Test&amp;diff=27012"/>
		<updated>2011-09-03T22:38:14Z</updated>

		<summary type="html">&lt;p&gt;OpenIDUser28: Created page with &amp;quot;{{Needs Checking|Please remove this --~~~~}}&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Needs Checking|Please remove this --[[User:OpenIDUser28|Sniper]] 00:38, 4 September 2011 (CEST)}}&lt;/div&gt;</summary>
		<author><name>OpenIDUser28</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Switching_From_Race&amp;diff=27011</id>
		<title>Switching From Race</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Switching_From_Race&amp;diff=27011"/>
		<updated>2011-09-03T22:32:41Z</updated>

		<summary type="html">&lt;p&gt;OpenIDUser28: Redirection added&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;#REDIRECT [[Switching from Race]]&lt;/div&gt;</summary>
		<author><name>OpenIDUser28</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=OnMapLoad&amp;diff=27009</id>
		<title>OnMapLoad</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=OnMapLoad&amp;diff=27009"/>
		<updated>2011-09-03T22:14:22Z</updated>

		<summary type="html">&lt;p&gt;OpenIDUser28: A small edit to mine before&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__&lt;br /&gt;
{{Needs Checking|This event does not exist anymore. Remove? --[[User:OpenIDUser28|Sniper]] 00:13, 4 September 2011 (CEST)}}&lt;br /&gt;
This event is triggered when a map is loaded.&lt;br /&gt;
&lt;br /&gt;
==Syntax== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
void onMapLoad ( string name )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
&lt;br /&gt;
==Variables==&lt;br /&gt;
* The source of this event refers to the loaded map.&lt;br /&gt;
*'''name''': A string representing the name of the map&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
This example displays a message in the textbox when you load a map containing this lua&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
addEventHandler ( &amp;quot;onMapLoad&amp;quot;, getRootElement(), &amp;quot;mapLoadChatBoxOutput&amp;quot; )&lt;br /&gt;
function mapLoadChatBoxOutput ( name )&lt;br /&gt;
	outputChatBox ( &amp;quot;Map &amp;quot;..name..&amp;quot; Loaded&amp;quot;, root, 255, 255, 255 )&lt;br /&gt;
end&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{Event_functions}}&lt;/div&gt;</summary>
		<author><name>OpenIDUser28</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=OnMapLoad&amp;diff=27008</id>
		<title>OnMapLoad</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=OnMapLoad&amp;diff=27008"/>
		<updated>2011-09-03T22:13:23Z</updated>

		<summary type="html">&lt;p&gt;OpenIDUser28: Needs Checking: Event does not exist&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__&lt;br /&gt;
This event is triggered when a map is loaded.&lt;br /&gt;
{{Needs Checking|This event does not exist anymore. Remove? --[[User:OpenIDUser28|Sniper]] 00:13, 4 September 2011 (CEST)}}&lt;br /&gt;
==Syntax== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
void onMapLoad ( string name )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
&lt;br /&gt;
==Variables==&lt;br /&gt;
* The source of this event refers to the loaded map.&lt;br /&gt;
*'''name''': A string representing the name of the map&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
This example displays a message in the textbox when you load a map containing this lua&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
addEventHandler ( &amp;quot;onMapLoad&amp;quot;, getRootElement(), &amp;quot;mapLoadChatBoxOutput&amp;quot; )&lt;br /&gt;
function mapLoadChatBoxOutput ( name )&lt;br /&gt;
	outputChatBox ( &amp;quot;Map &amp;quot;..name..&amp;quot; Loaded&amp;quot;, root, 255, 255, 255 )&lt;br /&gt;
end&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{Event_functions}}&lt;/div&gt;</summary>
		<author><name>OpenIDUser28</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=OnMapUnload&amp;diff=27007</id>
		<title>OnMapUnload</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=OnMapUnload&amp;diff=27007"/>
		<updated>2011-09-03T22:11:07Z</updated>

		<summary type="html">&lt;p&gt;OpenIDUser28: A small edit to mine before&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:Incomplete Event]]&lt;br /&gt;
{{Needs Checking|This event does not exist anymore. Remove? --[[User:OpenIDUser28|Sniper]] 00:11, 4 September 2011 (CEST)}}&lt;br /&gt;
This event is triggered when the map is changed or unloaded.&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
This example displays a message in the textbox when the map is changed / unloaded&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
addEventHandler ( &amp;quot;onMapUnload&amp;quot;, root, &amp;quot;onMapUnload&amp;quot; )&lt;br /&gt;
function onMapUnload ( )&lt;br /&gt;
  outputChatBox ( &amp;quot;Script Unloaded!&amp;quot;, root, 255, 255, 255 )&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;/div&gt;</summary>
		<author><name>OpenIDUser28</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=OnMapUnload&amp;diff=27006</id>
		<title>OnMapUnload</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=OnMapUnload&amp;diff=27006"/>
		<updated>2011-09-03T22:04:27Z</updated>

		<summary type="html">&lt;p&gt;OpenIDUser28: Needs Checking: Event does not exist&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:Incomplete Event]]&lt;br /&gt;
{{Needs Checking|This event does not exist. It's an internal event taken from the tdma gamemode. The example is useless also. Remove or can somebody finish it? --[[User:OpenIDUser28|Sniper]] 00:04, 4 September 2011 (CEST)}}&lt;br /&gt;
This event is triggered when the map is changed or unloaded.&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
This example displays a message in the textbox when the map is changed / unloaded&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
addEventHandler ( &amp;quot;onMapUnload&amp;quot;, root, &amp;quot;onMapUnload&amp;quot; )&lt;br /&gt;
function onMapUnload ( )&lt;br /&gt;
  outputChatBox ( &amp;quot;Script Unloaded!&amp;quot;, root, 255, 255, 255 )&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;/div&gt;</summary>
		<author><name>OpenIDUser28</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Spawnpoint&amp;diff=27005</id>
		<title>Spawnpoint</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Spawnpoint&amp;diff=27005"/>
		<updated>2011-09-03T21:53:02Z</updated>

		<summary type="html">&lt;p&gt;OpenIDUser28: Updated the link.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;#REDIRECT [[Resource:Spawnmanager]]&lt;/div&gt;</summary>
		<author><name>OpenIDUser28</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=SetMaxPlayers&amp;diff=27004</id>
		<title>SetMaxPlayers</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=SetMaxPlayers&amp;diff=27004"/>
		<updated>2011-09-03T21:48:41Z</updated>

		<summary type="html">&lt;p&gt;OpenIDUser28: Needs Checking: Example Wrong&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__&lt;br /&gt;
{{Needs Checking|Example wrong. Can't increase slots since the maximum you can set is what is defined in the mtaserver.conf. --[[User:OpenIDUser28|Sniper]] 23:48, 3 September 2011 (CEST)}}&lt;br /&gt;
{{Server function}}&lt;br /&gt;
This function set the maximum number of player slots on the server. Note: the maximum this function can set is what is defined in mtaserver.conf&lt;br /&gt;
&lt;br /&gt;
==Syntax==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;bool setMaxPlayers ( int slots )&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Required Arguments=== &lt;br /&gt;
&amp;lt;!-- List each argument one per line. This should be the argument's name as in the argument list above, NOT the argument's data type --&amp;gt;&lt;br /&gt;
*'''slots:''' Maximum number of player slots on the server.&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
&amp;lt;!-- Make this descriptive. Explain what cases will return false. If you're unsure, add a tag to it so we can check --&amp;gt;&lt;br /&gt;
Returns ''true'' if number of player slots was successfully changed, ''false'' or ''nil'' otherwise.&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
This example increases server slots count if server is full.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
addEventHandler( &amp;quot;onPlayerJoin&amp;quot;, root,&lt;br /&gt;
    function()&lt;br /&gt;
        local nowPlayers = getPlayerCount()&lt;br /&gt;
        local maxPlayers = getMaxPlayers()&lt;br /&gt;
&lt;br /&gt;
        if nowPlayers and maxPlayers and nowPlayers &amp;gt;= maxPlayers then&lt;br /&gt;
            setMaxPlayers( maxPlayers + 1 )&lt;br /&gt;
        end&lt;br /&gt;
    end&lt;br /&gt;
)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{Server functions}}&lt;/div&gt;</summary>
		<author><name>OpenIDUser28</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=User:OpenIDUser28&amp;diff=27003</id>
		<title>User:OpenIDUser28</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=User:OpenIDUser28&amp;diff=27003"/>
		<updated>2011-09-03T21:32:33Z</updated>

		<summary type="html">&lt;p&gt;OpenIDUser28: Created page with &amp;quot;This is SHC//Sniper from the SHC DD/DM server helping to provide fixes to the MTA wiki!&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This is SHC//Sniper from the SHC DD/DM server helping to provide fixes to the MTA wiki!&lt;/div&gt;</summary>
		<author><name>OpenIDUser28</name></author>
	</entry>
</feed>