<?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=JasperNL</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=JasperNL"/>
	<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/wiki/Special:Contributions/JasperNL"/>
	<updated>2026-04-22T10:14:42Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.39.3</generator>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Talk:LoadMapData&amp;diff=24374</id>
		<title>Talk:LoadMapData</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Talk:LoadMapData&amp;diff=24374"/>
		<updated>2010-08-18T18:05:34Z</updated>

		<summary type="html">&lt;p&gt;JasperNL: Created page with 'I'm wondering if the example is good. because there's the following   loadMapData ( node, getRootNode ) getRootNode ? I'm wondering what that is o,o --~~~~  ----'&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;I'm wondering if the example is good. because there's the following&lt;br /&gt;
  loadMapData ( node, getRootNode )&lt;br /&gt;
getRootNode ? I'm wondering what that is o,o&lt;br /&gt;
--[[User:JasperNL|Jasper.]] 18:05, 18 August 2010 (UTC)&lt;br /&gt;
&lt;br /&gt;
----&lt;/div&gt;</summary>
		<author><name>JasperNL</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Talk:OnClientGUIChanged&amp;diff=24118</id>
		<title>Talk:OnClientGUIChanged</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Talk:OnClientGUIChanged&amp;diff=24118"/>
		<updated>2010-07-29T09:33:51Z</updated>

		<summary type="html">&lt;p&gt;JasperNL: Created page with 'Whats the difference between the source and the parameter element theElement o_O --~~~~'&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Whats the difference between the source and the parameter element theElement o_O&lt;br /&gt;
--[[User:JasperNL|Jasper.]] 09:33, 29 July 2010 (UTC)&lt;/div&gt;</summary>
		<author><name>JasperNL</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Talk:SetElementData&amp;diff=24060</id>
		<title>Talk:SetElementData</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Talk:SetElementData&amp;diff=24060"/>
		<updated>2010-07-18T18:39:16Z</updated>

		<summary type="html">&lt;p&gt;JasperNL: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Bug found, i think o,o&lt;br /&gt;
setElementData (weaponPickup,&amp;quot;norespawn&amp;quot;,true) &amp;lt;&amp;lt;&lt;br /&gt;
 Weaponpickup is a weapon pickup as the name says, like a AK-47&lt;br /&gt;
Debugscript: WARNING: ...: Bad argument @ 'setElementData'&lt;br /&gt;
 True or False can't be a var in this case i think.&lt;br /&gt;
--[[User:JasperNL|Jasper.]] 18:38, 18 July 2010 (UTC)&lt;br /&gt;
&lt;br /&gt;
----&lt;/div&gt;</summary>
		<author><name>JasperNL</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Talk:SetElementData&amp;diff=24059</id>
		<title>Talk:SetElementData</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Talk:SetElementData&amp;diff=24059"/>
		<updated>2010-07-18T18:39:06Z</updated>

		<summary type="html">&lt;p&gt;JasperNL: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Bug found, i think o,o&lt;br /&gt;
setElementData (weaponPickup,&amp;quot;norespawn&amp;quot;,true) &amp;lt;&amp;lt;&lt;br /&gt;
- Weaponpickup is a weapon pickup as the name says, like a AK-47&lt;br /&gt;
Debugscript: WARNING: ...: Bad argument @ 'setElementData'&lt;br /&gt;
- True or False can't be a var in this case i think.&lt;br /&gt;
--[[User:JasperNL|Jasper.]] 18:38, 18 July 2010 (UTC)&lt;br /&gt;
&lt;br /&gt;
----&lt;/div&gt;</summary>
		<author><name>JasperNL</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Talk:SetElementData&amp;diff=24058</id>
		<title>Talk:SetElementData</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Talk:SetElementData&amp;diff=24058"/>
		<updated>2010-07-18T18:38:58Z</updated>

		<summary type="html">&lt;p&gt;JasperNL: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Bug found, i think o,o&lt;br /&gt;
setElementData (weaponPickup,&amp;quot;norespawn&amp;quot;,true) &amp;lt;&amp;lt;&lt;br /&gt;
 - Weaponpickup is a weapon pickup as the name says, like a AK-47&lt;br /&gt;
Debugscript: WARNING: ...: Bad argument @ 'setElementData'&lt;br /&gt;
 - True or False can't be a var in this case i think.&lt;br /&gt;
--[[User:JasperNL|Jasper.]] 18:38, 18 July 2010 (UTC)&lt;br /&gt;
&lt;br /&gt;
----&lt;/div&gt;</summary>
		<author><name>JasperNL</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Talk:SetElementData&amp;diff=24057</id>
		<title>Talk:SetElementData</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Talk:SetElementData&amp;diff=24057"/>
		<updated>2010-07-18T18:38:41Z</updated>

		<summary type="html">&lt;p&gt;JasperNL: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Bug found, i think o,o&lt;br /&gt;
setElementData (weaponPickup,&amp;quot;norespawn&amp;quot;,true) &amp;lt;&amp;lt;&lt;br /&gt;
 Weaponpickup is a weapon pickup as the name says, like a AK-47&lt;br /&gt;
Debugscript: WARNING: ...: Bad argument @ 'setElementData'&lt;br /&gt;
 True or False can't be a var in this case i think.&lt;br /&gt;
--[[User:JasperNL|Jasper.]] 18:38, 18 July 2010 (UTC)&lt;br /&gt;
&lt;br /&gt;
----&lt;/div&gt;</summary>
		<author><name>JasperNL</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Talk:SetElementData&amp;diff=24056</id>
		<title>Talk:SetElementData</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Talk:SetElementData&amp;diff=24056"/>
		<updated>2010-07-18T18:38:01Z</updated>

		<summary type="html">&lt;p&gt;JasperNL: Created page with 'Bug found, i think o,o setElementData (weaponPickup,&amp;quot;norespawn&amp;quot;,true) &amp;lt;&amp;lt;   Weaponpickup is a weapon pickup as the name says, like a AK-47 Debugscript: WARNING: ...: Bad argument …'&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Bug found, i think o,o&lt;br /&gt;
setElementData (weaponPickup,&amp;quot;norespawn&amp;quot;,true) &amp;lt;&amp;lt;&lt;br /&gt;
  Weaponpickup is a weapon pickup as the name says, like a AK-47&lt;br /&gt;
Debugscript: WARNING: ...: Bad argument @ 'setElementData'&lt;br /&gt;
  True or False can't be a var in this case i think.&lt;br /&gt;
--[[User:JasperNL|Jasper.]] 18:38, 18 July 2010 (UTC)&lt;br /&gt;
&lt;br /&gt;
----&lt;/div&gt;</summary>
		<author><name>JasperNL</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Talk:Modules/SebasIRC&amp;diff=24007</id>
		<title>Talk:Modules/SebasIRC</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Talk:Modules/SebasIRC&amp;diff=24007"/>
		<updated>2010-07-09T21:20:28Z</updated>

		<summary type="html">&lt;p&gt;JasperNL: Created page with 'THE LINK DIED (PEEEEEEEEEEEEEP) The link isn't exist any more :&amp;lt; --~~~~'&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;THE LINK DIED (PEEEEEEEEEEEEEP)&lt;br /&gt;
The link isn't exist any more :&amp;lt;&lt;br /&gt;
--[[User:JasperNL|Jasper.]] 21:20, 9 July 2010 (UTC)&lt;/div&gt;</summary>
		<author><name>JasperNL</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Talk:ClearElementVisibleTo&amp;diff=23855</id>
		<title>Talk:ClearElementVisibleTo</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Talk:ClearElementVisibleTo&amp;diff=23855"/>
		<updated>2010-07-03T19:59:29Z</updated>

		<summary type="html">&lt;p&gt;JasperNL: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;The example is wrong o,o&lt;br /&gt;
--[[User:JasperNL|Jasper.]] 19:59, 3 July 2010 (UTC)&lt;/div&gt;</summary>
		<author><name>JasperNL</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Talk:ClearElementVisibleTo&amp;diff=23854</id>
		<title>Talk:ClearElementVisibleTo</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Talk:ClearElementVisibleTo&amp;diff=23854"/>
		<updated>2010-07-03T19:59:18Z</updated>

		<summary type="html">&lt;p&gt;JasperNL: Created page with 'The example is wrong o,o'&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;The example is wrong o,o&lt;/div&gt;</summary>
		<author><name>JasperNL</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=SetCameraClip&amp;diff=23574</id>
		<title>SetCameraClip</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=SetCameraClip&amp;diff=23574"/>
		<updated>2010-05-30T10:49:09Z</updated>

		<summary type="html">&lt;p&gt;JasperNL: Example&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Client function}} &lt;br /&gt;
__NOTOC__ &lt;br /&gt;
This function sets if the camera will &amp;quot;collide&amp;quot; with any objects or vehicles in its way. This means that if object clip is enabled an object is in the way of where the camera actually wants to be, the camera will try to be in front of it. This function can disable that.&lt;br /&gt;
&lt;br /&gt;
'''Note:''' This function doesn't fix the issue of camera clip not working on objects out of world bounds.&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 setCameraClip ( bool objects, bool vehicles ) &lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
&lt;br /&gt;
===Required Arguments=== &lt;br /&gt;
*'''objects:''' Sets if you want the camera to clip on objects.&lt;br /&gt;
*'''vehicles:''' Sets if you want the camera to clip on vehicles.&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Always returns ''true''.&lt;br /&gt;
&lt;br /&gt;
==Example== &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;
This function enables it to look though cars&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function enableCameraThoughCars ()&lt;br /&gt;
  setCameraClip (true,false)&lt;br /&gt;
  outputChatBox (&amp;quot;Your camera can see the vehicle interior now!&amp;quot;,255,0,0,false)&lt;br /&gt;
end&lt;br /&gt;
addEventHandler (&amp;quot;onClientResourceStart&amp;quot;,getResourceRootElement(getThisResource()),enableCameraThoughCars)&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;
{{Client camera functions}}&lt;br /&gt;
[[Category:Incomplete]]&lt;/div&gt;</summary>
		<author><name>JasperNL</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=XmlNodeSetAttribute&amp;diff=23571</id>
		<title>XmlNodeSetAttribute</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=XmlNodeSetAttribute&amp;diff=23571"/>
		<updated>2010-05-29T15:55:46Z</updated>

		<summary type="html">&lt;p&gt;JasperNL: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__&lt;br /&gt;
{{Server client function}}&lt;br /&gt;
This function is used to edit an attribute of a node in a configuration file.&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 xmlNodeSetAttribute ( xmlnode node, string name, string/float value )             &lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
&lt;br /&gt;
===Required Arguments=== &lt;br /&gt;
*'''node:''' The node of which you wish to edit an attribute.&lt;br /&gt;
*'''name:''' The name of the attribute.&lt;br /&gt;
*'''value:''' The value which you wish to change the attribute to.&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns ''true'' if the attribute was set successfully, ''false'' if the node and/or attribute do not exist, or if they're faulty.&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
&amp;lt;section name=&amp;quot;Server&amp;quot; class=&amp;quot;server&amp;quot; show=&amp;quot;true&amp;quot;&amp;gt;&lt;br /&gt;
In a gamemode, we want a command to change the marker color in the configuration file.&lt;br /&gt;
&lt;br /&gt;
config.xml:&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;config&amp;gt;&lt;br /&gt;
    &amp;lt;markers color=&amp;quot;255,100,0&amp;quot; /&amp;gt;&lt;br /&gt;
&amp;lt;/config&amp;gt;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Lua code:&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
config = xmlLoadFile(&amp;quot;config.xml&amp;quot;)&lt;br /&gt;
&lt;br /&gt;
function changeConfigMarkerColor(thePlayer, command, r, g, b)&lt;br /&gt;
    local markernode = xmlFindSubNode(config, &amp;quot;markers&amp;quot;, 0)&lt;br /&gt;
    xmlNodeSetAttribute(markernode, &amp;quot;color&amp;quot;, r .. &amp;quot;,&amp;quot; .. g .. &amp;quot;,&amp;quot; .. b)&lt;br /&gt;
end&lt;br /&gt;
addCommandHandler(&amp;quot;markercolor&amp;quot;, changeConfigMarkerColor)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Note that this example only changes the in-memory XML document. If you want to save the changed document back to the hard drive, use [[xmlSaveFile]].&lt;br /&gt;
&amp;lt;/section&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{XML_functions}}&lt;/div&gt;</summary>
		<author><name>JasperNL</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=User:JasperNL&amp;diff=23467</id>
		<title>User:JasperNL</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=User:JasperNL&amp;diff=23467"/>
		<updated>2010-05-14T10:57:46Z</updated>

		<summary type="html">&lt;p&gt;JasperNL: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;----&lt;br /&gt;
[[Image:Coder.gif]] '''This user isn't a MTA-Developper'''&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;font size=&amp;quot;50&amp;quot;&amp;gt;o,o&amp;lt;/font&amp;gt;&lt;/div&gt;</summary>
		<author><name>JasperNL</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=User:JasperNL&amp;diff=23466</id>
		<title>User:JasperNL</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=User:JasperNL&amp;diff=23466"/>
		<updated>2010-05-14T10:56:13Z</updated>

		<summary type="html">&lt;p&gt;JasperNL: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Image:Coder.gif]] &amp;lt;font size=&amp;quot;0.8&amp;quot;&amp;gt;This user isn't a MTA-Developper&amp;lt;/font&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;font size=&amp;quot;50&amp;quot;&amp;gt;o,o&amp;lt;/font&amp;gt;&lt;/div&gt;</summary>
		<author><name>JasperNL</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=User:JasperNL&amp;diff=23465</id>
		<title>User:JasperNL</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=User:JasperNL&amp;diff=23465"/>
		<updated>2010-05-14T10:56:04Z</updated>

		<summary type="html">&lt;p&gt;JasperNL: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Image:Coder.gif]] &amp;lt;font size=&amp;quot;5&amp;quot;&amp;gt;This user isn't a MTA-Developper&amp;lt;/font&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;font size=&amp;quot;50&amp;quot;&amp;gt;o,o&amp;lt;/font&amp;gt;&lt;/div&gt;</summary>
		<author><name>JasperNL</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=User:JasperNL&amp;diff=23464</id>
		<title>User:JasperNL</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=User:JasperNL&amp;diff=23464"/>
		<updated>2010-05-14T10:54:47Z</updated>

		<summary type="html">&lt;p&gt;JasperNL: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Image:Coder.gif]] This user isn't a MTA-Developper&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;font size=&amp;quot;50&amp;quot;&amp;gt;o,o&amp;lt;/font&amp;gt;&lt;/div&gt;</summary>
		<author><name>JasperNL</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=User:JasperNL&amp;diff=23463</id>
		<title>User:JasperNL</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=User:JasperNL&amp;diff=23463"/>
		<updated>2010-05-14T10:53:49Z</updated>

		<summary type="html">&lt;p&gt;JasperNL: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Image:Coder.gif]] This user isn't a MTA-Developper&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;big&amp;gt;o,o&amp;lt;/big&amp;gt;&lt;/div&gt;</summary>
		<author><name>JasperNL</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=User:JasperNL&amp;diff=23462</id>
		<title>User:JasperNL</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=User:JasperNL&amp;diff=23462"/>
		<updated>2010-05-14T10:53:28Z</updated>

		<summary type="html">&lt;p&gt;JasperNL: Created page with '&amp;lt;pre&amp;gt;Image:Coder.gif This user isn't a MTA-Developper&amp;lt;/pre&amp;gt;   == o,o =='&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;pre&amp;gt;[[Image:Coder.gif]] This user isn't a MTA-Developper&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== o,o ==&lt;/div&gt;</summary>
		<author><name>JasperNL</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=AddAccount&amp;diff=23461</id>
		<title>AddAccount</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=AddAccount&amp;diff=23461"/>
		<updated>2010-05-14T10:47:34Z</updated>

		<summary type="html">&lt;p&gt;JasperNL: Setting back to no-russian crap&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Server function}}&lt;br /&gt;
__NOTOC__&lt;br /&gt;
This function adds an account to the list of registered accounts of the current server.&lt;br /&gt;
&lt;br /&gt;
==Syntax== &lt;br /&gt;
&amp;lt;!-- NOTE: don't use 'special' names for variable names, e.g. you shouldn't be writing things like 'player player, vehicle vehicle', instead write something like 'player thePlayer, vehicle vehicleToGetInto'. This is less confusing and prevents the syntax highlighting being odd --&amp;gt;&lt;br /&gt;
{{New feature|3|1.0 r848|&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
account addAccount ( string name, string pass )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
}}&lt;br /&gt;
{{Deprecated_feature|3|1.0|&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
bool addAccount ( string name, string pass )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&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;
*'''name:''' The name of the account you wish to make, this normally is the player's name.&lt;br /&gt;
*'''pass:''' The password to set for this account for future logins.&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;
{{New feature|3|1.0 r848|&lt;br /&gt;
Returns the ''account'' element if the account was created, ''false'' if the account already exists or an error occured.&lt;br /&gt;
}}&lt;br /&gt;
{{Deprecated_feature|3|1.0|&lt;br /&gt;
Returns ''true'' if the account was created, ''false'' if the account already exists or an error occured.&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
==Example== &lt;br /&gt;
&amp;lt;section name=&amp;quot;Server&amp;quot; class=&amp;quot;server&amp;quot; show=&amp;quot;true&amp;quot;&amp;gt;&lt;br /&gt;
'''Example 1:''' This enables players to register on your server by using /register &amp;lt;password&amp;gt; in the chat window.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function registerPlayer ( source, commandName, password )&lt;br /&gt;
	-- Check if the password field is blank or not (only blank if they didnt enter one)&lt;br /&gt;
	if ( password ~= &amp;quot;&amp;quot; and password ~= nil ) then&lt;br /&gt;
		--Attempt to add the account, and save its value in a var&lt;br /&gt;
		local accountAdded = addAccount( getPlayerName(source), password )&lt;br /&gt;
		if ( accountAdded ) then&lt;br /&gt;
			--  Tell the user all is done&lt;br /&gt;
			outputChatBox ( &amp;quot;Thank you &amp;quot; .. getPlayerName(source) .. &amp;quot;, you're now registed, you can login with /login&amp;quot;, source )&lt;br /&gt;
		else&lt;br /&gt;
			-- There was an error making the account, tell the user&lt;br /&gt;
			outputChatBox ( &amp;quot;Error creating account, contact the server admin&amp;quot;, source )&lt;br /&gt;
		end&lt;br /&gt;
	else&lt;br /&gt;
		-- There was an error in the syntax, tell the user the correct syntax.&lt;br /&gt;
		outputChatBox ( &amp;quot;Error creating account, correct syntax: /register &amp;lt;password&amp;gt;&amp;quot;, source )&lt;br /&gt;
	end&lt;br /&gt;
end&lt;br /&gt;
addCommandHandler ( &amp;quot;register&amp;quot;, registerPlayer ) -- add the command handler&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''This code differs by allowing the user to change their username that they wish to use.'''&lt;br /&gt;
&lt;br /&gt;
'''Example 2:''' This enables players to register on your server by using /register &amp;lt;username&amp;gt; &amp;lt;password&amp;gt; in the chat window.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function registerPlayer ( source, commandName, username, password )&lt;br /&gt;
        if(password ~= &amp;quot;&amp;quot; and password ~= nil and username ~= &amp;quot;&amp;quot; and username ~= nil) then&lt;br /&gt;
                local accountAdded = addAccount(username,password)&lt;br /&gt;
                if(accountAdded) then&lt;br /&gt;
                        outputChatBox(&amp;quot;Thank you &amp;quot; .. getPlayerName(source) .. &amp;quot;, you're now registed, you can login with /login&amp;quot;,source)&lt;br /&gt;
                else&lt;br /&gt;
                        outputChatBox(&amp;quot;Error creating account, contact the server admin.&amp;quot;,source)&lt;br /&gt;
                end&lt;br /&gt;
        else&lt;br /&gt;
                outputChatBox(&amp;quot;Error creating account, correct syntax: /register &amp;lt;nick&amp;gt; &amp;lt;pass&amp;gt;&amp;quot;,source)&lt;br /&gt;
        end&lt;br /&gt;
end&lt;br /&gt;
addCommandHandler ( &amp;quot;register&amp;quot;, registerPlayer ) -- add the command handler&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Example 3:''' This code differs again so the user can only register once /register &amp;lt;username&amp;gt; &amp;lt;password&amp;gt;.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
local bRegisteredOnce = false&lt;br /&gt;
&lt;br /&gt;
function registerPlayer ( source, commandName, username, password )&lt;br /&gt;
        if(password ~= &amp;quot;&amp;quot; and password ~= nil and username ~= &amp;quot;&amp;quot; and username ~= nil and bRegisteredOnce == false) then&lt;br /&gt;
                local accountAdded = addAccount(username,password)&lt;br /&gt;
                if(accountAdded) then&lt;br /&gt;
                        outputChatBox(&amp;quot;Thank you &amp;quot; .. getPlayerName(source) .. &amp;quot;, you're now registed, you can login with /login&amp;quot;,source)&lt;br /&gt;
                        bRegisteredOnce = true&lt;br /&gt;
                else&lt;br /&gt;
                        outputChatBox(&amp;quot;Error creating account, contact the server admin.&amp;quot;,source)&lt;br /&gt;
                end&lt;br /&gt;
        else&lt;br /&gt;
                if bRegisteredOnce == true then&lt;br /&gt;
                    outputChatBox(&amp;quot;You already registered on this server!&amp;quot;,source)&lt;br /&gt;
                else&lt;br /&gt;
                    outputChatBox(&amp;quot;Error creating account, correct syntax: /register &amp;lt;nick&amp;gt; &amp;lt;pass&amp;gt;&amp;quot;,source)&lt;br /&gt;
                end&lt;br /&gt;
        end&lt;br /&gt;
end&lt;br /&gt;
addCommandHandler ( &amp;quot;register&amp;quot;, registerPlayer ) -- add the command handler&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;
&amp;lt;!-- Change FunctionArea to the area that this function is in on the main function list page, e.g. Server, Player, Vehicle etc --&amp;gt;&lt;br /&gt;
{{Account_functions}}&lt;/div&gt;</summary>
		<author><name>JasperNL</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=IsKeyBound&amp;diff=23373</id>
		<title>IsKeyBound</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=IsKeyBound&amp;diff=23373"/>
		<updated>2010-05-05T15:32:57Z</updated>

		<summary type="html">&lt;p&gt;JasperNL: /* Example */  added&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Server function}}&lt;br /&gt;
__NOTOC__&lt;br /&gt;
This function can be used to find out if a key has already been bound.&lt;br /&gt;
&lt;br /&gt;
==Syntax== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;bool isKeyBound ( player thePlayer, string key, [ string keyState, function handler ] ) &amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
&lt;br /&gt;
===Required Arguments=== &lt;br /&gt;
*'''thePlayer:''' The player you're checking.&lt;br /&gt;
*'''key:''' The key you're checking. See [[Key names]] for a list of valid key names.&lt;br /&gt;
&lt;br /&gt;
===Optional Arguments===&lt;br /&gt;
*'''keyState:''' Is the state of the key when it calls the function, Can be either:&lt;br /&gt;
**'''&amp;quot;up&amp;quot;:''' when the key is released&lt;br /&gt;
**'''&amp;quot;down&amp;quot;:''' when the key is pressed&lt;br /&gt;
*'''handler:''' The function you're checking against&lt;br /&gt;
Note: If you do not specify a ''keyState'' or ''handler'', any instances of ''key'' being bound will cause ''isKeyBound'' to return ''true''.&lt;br /&gt;
&lt;br /&gt;
==Example==  &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
This function kicks a player when he joins and numpad 9 is binded, and blame anyone random in the server!&lt;br /&gt;
function onPlayerJoin () -- BE WARNED! never use the same function for the same event&lt;br /&gt;
  if (isKeyBound (source,&amp;quot;num_9&amp;quot;)) then -- if num pad 9 is binded&lt;br /&gt;
    outputChatBox (getPlayerName (source) .. &amp;quot; has binded num pad 9! so he will be kicked.&amp;quot;,getRootElement(),255,0,0,false) -- let see everybody that he has binded it&lt;br /&gt;
    kickPlayer (source,getRandomPlayer(),&amp;quot;I don't like you, so go away &amp;gt;_&amp;gt;&amp;quot;) -- Take anybody random, make him responsible for his kick, and say he don't likes him.&lt;br /&gt;
  end&lt;br /&gt;
end&lt;br /&gt;
addEventHandler (&amp;quot;onPlayerJoin&amp;quot;,getRootElement(),onPlayerJoin) -- add event.&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{Input functions}}&lt;br /&gt;
[[Category:Needs Example]]&lt;/div&gt;</summary>
		<author><name>JasperNL</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Md5&amp;diff=23372</id>
		<title>Md5</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Md5&amp;diff=23372"/>
		<updated>2010-05-05T15:19:03Z</updated>

		<summary type="html">&lt;p&gt;JasperNL: Example added&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__&lt;br /&gt;
{{Server client function}}&lt;br /&gt;
&lt;br /&gt;
Calculates the MD5 hash of the specified string and returns its hexadecimal representation.&lt;br /&gt;
&lt;br /&gt;
Note: returns an uppercase string, so make sure you string.upper() anything else you are checking against that has been MD5'd elsewhere.&lt;br /&gt;
&lt;br /&gt;
==Syntax==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;string md5 ( string str )&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Required Arguments===&lt;br /&gt;
*'''str:''' the string to hash.&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns the MD5 hash of the input string if successful, ''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;
function md5it (player,command,string) -- open function&lt;br /&gt;
  if (string) then -- check if the string is exist&lt;br /&gt;
    md5string = md5 (string) -- get the md5 string&lt;br /&gt;
    outputChatBox (string .. &amp;quot; -&amp;gt; &amp;quot; .. md5string ,player,255,0,0,false) -- output it&lt;br /&gt;
  end&lt;br /&gt;
end&lt;br /&gt;
addCommandHandler (&amp;quot;md5it&amp;quot;,md5it) -- create command&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{Utility functions}}&lt;br /&gt;
[[Category:Needs Example]]&lt;/div&gt;</summary>
		<author><name>JasperNL</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=CopyResource&amp;diff=23371</id>
		<title>CopyResource</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=CopyResource&amp;diff=23371"/>
		<updated>2010-05-05T15:13:08Z</updated>

		<summary type="html">&lt;p&gt;JasperNL: /* Example */ added&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__ &lt;br /&gt;
{{Server function}}&lt;br /&gt;
This function copies a specified [[resource]] with a new name.&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 copyResource ( resource theResource, string newResourceName )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
&lt;br /&gt;
===Required Arguments=== &lt;br /&gt;
*'''theResource:''' the resource which is going to be copied&lt;br /&gt;
*'''newResourceName:''' the name that the copied resource will receive&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns ''true'' if the resource was copied successfully, ''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;
-- This script can backup your resource with a easy command! /backupresource [resourcename]&lt;br /&gt;
function backupResource (player,command,resourcetobackup) -- start the function&lt;br /&gt;
  if (resourcetobackup) and (getResourceFromName(resourcetobackup)) then -- check if the resource is exist&lt;br /&gt;
    copyResource (getResourceFromName(resourcetobackup),resourcetobackup .. &amp;quot;_backup&amp;quot;) -- copy the resource and give it the name [resource]_backup&lt;br /&gt;
    outputChatBox (&amp;quot;Resource &amp;quot; .. resourcetobackup .. &amp;quot; succesfully backed up!&amp;quot;,player,255,0,0,false) -- say it's OK!&lt;br /&gt;
  else -- if it isn't exist&lt;br /&gt;
    outputChatBox (&amp;quot;Resource can't be backed up! (don't forget the parameters!)&amp;quot;,player,255,0,0,false) -- say it isn't exist!&lt;br /&gt;
  end&lt;br /&gt;
end&lt;br /&gt;
addCommandHandler (&amp;quot;backupresource&amp;quot;,backupResouce) -- add command&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{Resource_functions}}&lt;br /&gt;
[[Category:Needs_Example]]&lt;/div&gt;</summary>
		<author><name>JasperNL</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=OnClientPlayerChangeNick&amp;diff=22266</id>
		<title>OnClientPlayerChangeNick</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=OnClientPlayerChangeNick&amp;diff=22266"/>
		<updated>2010-01-10T12:46:10Z</updated>

		<summary type="html">&lt;p&gt;JasperNL: /* Example */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:Incomplete Event]]&lt;br /&gt;
{{Client event}}&lt;br /&gt;
__NOTOC__ &lt;br /&gt;
This event is triggered when a player changes his nickname.&lt;br /&gt;
&lt;br /&gt;
==Parameters== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
string oldNick, string newNick&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''oldNick:''' the nickname the player had before.&lt;br /&gt;
*'''newNick:''' the new nickname of the player.&lt;br /&gt;
&lt;br /&gt;
==Source==&lt;br /&gt;
The source of this event is the player that changed his nick&lt;br /&gt;
&lt;br /&gt;
==Example== &lt;br /&gt;
This disallows changing a nick&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
addEventHandler (&amp;quot;onClientPlayerChangeNick&amp;quot;, getRootElement(),&lt;br /&gt;
function()&lt;br /&gt;
  cancelEvent()&lt;br /&gt;
  ouputChatbox (&amp;quot;You can't change your nick!&amp;quot;, source, 255, 0, 0, false)&lt;br /&gt;
end)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
===Client player events===&lt;br /&gt;
{{Client_player_events}}&lt;br /&gt;
===Client event functions===&lt;br /&gt;
{{Client_event_functions}}&lt;/div&gt;</summary>
		<author><name>JasperNL</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=SpawnPlayer&amp;diff=22080</id>
		<title>SpawnPlayer</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=SpawnPlayer&amp;diff=22080"/>
		<updated>2009-12-23T14:07:34Z</updated>

		<summary type="html">&lt;p&gt;JasperNL: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__&lt;br /&gt;
{{Server function}}&lt;br /&gt;
This function spawns the player at an arbitary point on the map.&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''''Note:''' [[setCameraTarget]] must be used to focus on the player. Also, all players have their camera initially faded out after connect. To ensure that the camera is faded in, please do a [[fadeCamera]] after.''&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 spawnPlayer ( player thePlayer, float x, float y, float z, [ int rotation = 0, int skinID = 0, int interior = 0, int dimension = 0, team theTeam = nil ] )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Required Arguments===&lt;br /&gt;
*'''thePlayer:''' The player you want to spawn&lt;br /&gt;
*'''x:''' The x co-ordinate to spawn the player at&lt;br /&gt;
*'''y:''' The y co-ordinate to spawn the player at&lt;br /&gt;
*'''z:''' The z co-ordinate to spawn the player at&lt;br /&gt;
&lt;br /&gt;
===Optional Arguments===&lt;br /&gt;
*'''rotation:''' rotation of the player on spawn&lt;br /&gt;
*'''skinID:''' players skin on spawn&lt;br /&gt;
*'''interior:''' interior the player will spawn into&lt;br /&gt;
*'''dimension:''' The ID of the [[dimension]] that the player should be in&lt;br /&gt;
*'''theTeam:''' the team the player will join&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns ''true'' if the player was spawned successfully, ''false'' otherwise.&lt;br /&gt;
&lt;br /&gt;
==Example== &lt;br /&gt;
This example spawns all the players in the middle of the game map.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
-- Get a table of all the players&lt;br /&gt;
players = getElementsByType ( &amp;quot;player&amp;quot; )&lt;br /&gt;
-- Go through every player&lt;br /&gt;
for playerKey, playerValue in ipairs(players) do&lt;br /&gt;
	-- Spawn them at the desired coordinates&lt;br /&gt;
	spawnPlayer ( playerValue, 0.0, 0.0, 5.0, 90.0, 0 )&lt;br /&gt;
end&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This example spawns a player when he logs in.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
spawnTeam = createTeam (&amp;quot;Teamname&amp;quot;, 255, 0, 0) -- Create team to spawn.&lt;br /&gt;
function spawnOnLogin (prevA, curA, autoLogin)&lt;br /&gt;
	outputChatBox (&amp;quot;Welcome to ...&amp;quot;, source, 255, 0, 0, false)&lt;br /&gt;
	spawnPlayer (source, 0, 0, 5, 0, math.random (0,288), 0, 0, spawnTeam) -- spawns player with random skin&lt;br /&gt;
	fadeCamera (source, true)&lt;br /&gt;
	setCameraTarget (source, source)&lt;br /&gt;
end&lt;br /&gt;
addEventHandler(&amp;quot;onPlayerLogin&amp;quot;, getRootElement(), spawnOnLogin)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{Player_functions}}&lt;/div&gt;</summary>
		<author><name>JasperNL</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=SpawnPlayer&amp;diff=22079</id>
		<title>SpawnPlayer</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=SpawnPlayer&amp;diff=22079"/>
		<updated>2009-12-23T14:06:13Z</updated>

		<summary type="html">&lt;p&gt;JasperNL: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__&lt;br /&gt;
{{Server function}}&lt;br /&gt;
This function spawns the player at an arbitary point on the map.&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''''Note:''' [[setCameraTarget]] must be used to focus on the player. Also, all players have their camera initially faded out after connect. To ensure that the camera is faded in, please do a [[fadeCamera]] after.''&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 spawnPlayer ( player thePlayer, float x, float y, float z, [ int rotation = 0, int skinID = 0, int interior = 0, int dimension = 0, team theTeam = nil ] )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Required Arguments===&lt;br /&gt;
*'''thePlayer:''' The player you want to spawn&lt;br /&gt;
*'''x:''' The x co-ordinate to spawn the player at&lt;br /&gt;
*'''y:''' The y co-ordinate to spawn the player at&lt;br /&gt;
*'''z:''' The z co-ordinate to spawn the player at&lt;br /&gt;
&lt;br /&gt;
===Optional Arguments===&lt;br /&gt;
*'''rotation:''' rotation of the player on spawn&lt;br /&gt;
*'''skinID:''' players skin on spawn&lt;br /&gt;
*'''interior:''' interior the player will spawn into&lt;br /&gt;
*'''dimension:''' The ID of the [[dimension]] that the player should be in&lt;br /&gt;
*'''theTeam:''' the team the player will join&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns ''true'' if the player was spawned successfully, ''false'' otherwise.&lt;br /&gt;
&lt;br /&gt;
==Example== &lt;br /&gt;
This example spawns all the players in the middle of the game map.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
-- Get a table of all the players&lt;br /&gt;
players = getElementsByType ( &amp;quot;player&amp;quot; )&lt;br /&gt;
-- Go through every player&lt;br /&gt;
for playerKey, playerValue in ipairs(players) do&lt;br /&gt;
	-- Spawn them at the desired coordinates&lt;br /&gt;
	spawnPlayer ( playerValue, 0.0, 0.0, 5.0, 90.0, 0 )&lt;br /&gt;
end&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This example spawns a player when he logs in.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
spawnTeam = createTeam (&amp;quot;Teamname&amp;quot;, 255, 0, 0) -- Create team to spawn.&lt;br /&gt;
function spawnOnLogin (prevA, curA, autoLogin)&lt;br /&gt;
	spawnPlayer (source, 0, 0, 5, 0, math.random (0,288), 0, 0, spawnTeam) -- spawns player with random skin&lt;br /&gt;
end&lt;br /&gt;
addEventHandler(&amp;quot;onPlayerLogin&amp;quot;, getRootElement(), spawnOnLogin)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{Player_functions}}&lt;/div&gt;</summary>
		<author><name>JasperNL</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=SpawnVehicle&amp;diff=22012</id>
		<title>SpawnVehicle</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=SpawnVehicle&amp;diff=22012"/>
		<updated>2009-12-06T16:14:23Z</updated>

		<summary type="html">&lt;p&gt;JasperNL: at example spellingbug &amp;gt;.&amp;lt;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Server function}}&lt;br /&gt;
__NOTOC__&lt;br /&gt;
Spawns a vehicle at any given position and rotation&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 spawnVehicle ( vehicle theVehicle, float x, float y, float z, float rx, float ry, float rz )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
&lt;br /&gt;
===Required Arguments=== &lt;br /&gt;
*'''theVehicle:''' The vehicle you wish to spawn&lt;br /&gt;
*'''x:''' The x position you wish to spawn the vehicle at&lt;br /&gt;
*'''y:''' The x position you wish to spawn the vehicle at&lt;br /&gt;
*'''z:''' The x position you wish to spawn the vehicle at&lt;br /&gt;
*'''rx:''' The x rotation you wish to spawn the vehicle at&lt;br /&gt;
*'''ry:''' The y rotation you wish to spawn the vehicle at&lt;br /&gt;
*'''rz:''' The z rotation you wish to spawn the vehicle at&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns ''true'' if the vehicle spawned successfully, ''false'' if the passed argument does not exist or is not a vehicle.&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
There is no example.&lt;br /&gt;
&lt;br /&gt;
==Related scripting functions==&lt;br /&gt;
{{Vehicle functions}}&lt;br /&gt;
[[Category:Element Types]]&lt;/div&gt;</summary>
		<author><name>JasperNL</name></author>
	</entry>
</feed>