<?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=Twig</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=Twig"/>
	<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/wiki/Special:Contributions/Twig"/>
	<updated>2026-04-24T18:49:46Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.39.3</generator>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Ban&amp;diff=18367</id>
		<title>Ban</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Ban&amp;diff=18367"/>
		<updated>2009-02-10T23:13:03Z</updated>

		<summary type="html">&lt;p&gt;Twig: fixed fix of typo fix&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;A [[ban]] is a pointer that represents a banned player arbitrarily.  The following functions allow interaction with a [[ban]]:&lt;br /&gt;
{{New feature|3|1.0|&lt;br /&gt;
*[[addBan]]&lt;br /&gt;
*[[getBans]]&lt;br /&gt;
*[[getBanAdmin]]&lt;br /&gt;
*[[getBanIP]]&lt;br /&gt;
*[[getBanReason]]&lt;br /&gt;
*[[getBanSerial]]&lt;br /&gt;
*[[getBanTime]]&lt;br /&gt;
*[[getBanUsername]]&lt;br /&gt;
*[[removeBan]]&lt;br /&gt;
}}&lt;br /&gt;
*[[banPlayer]]&lt;br /&gt;
&lt;br /&gt;
[[Category:Scripting Concepts]]&lt;/div&gt;</summary>
		<author><name>Twig</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=TextDisplayIsObserver&amp;diff=18366</id>
		<title>TextDisplayIsObserver</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=TextDisplayIsObserver&amp;diff=18366"/>
		<updated>2009-02-10T23:07:41Z</updated>

		<summary type="html">&lt;p&gt;Twig: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__&lt;br /&gt;
{{Server function}}&lt;br /&gt;
This function checks if a player can see the specified [[textdisplay]].&lt;br /&gt;
&lt;br /&gt;
==Syntax==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;bool textDisplayIsObserver ( textdisplay display, player player )&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Required Arguments===&lt;br /&gt;
&lt;br /&gt;
* '''display''': The [[textdisplay]].&lt;br /&gt;
* '''player''': The [[player]].&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Return true if [[textdisplay]] is showing, or false if not.&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;
{{Text functions}}&lt;/div&gt;</summary>
		<author><name>Twig</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=TextDisplayIsObserver&amp;diff=18365</id>
		<title>TextDisplayIsObserver</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=TextDisplayIsObserver&amp;diff=18365"/>
		<updated>2009-02-10T23:07:27Z</updated>

		<summary type="html">&lt;p&gt;Twig: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__&lt;br /&gt;
{{Server function}}&lt;br /&gt;
This functions checks if a player can see the specified [[textdisplay]].&lt;br /&gt;
&lt;br /&gt;
==Syntax==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;bool textDisplayIsObserver ( textdisplay display, player player )&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Required Arguments===&lt;br /&gt;
&lt;br /&gt;
* '''display''': The [[textdisplay]].&lt;br /&gt;
* '''player''': The [[player]].&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Return true if [[textdisplay]] is showing, or false if not.&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;
{{Text functions}}&lt;/div&gt;</summary>
		<author><name>Twig</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=SetPedHeadless&amp;diff=18079</id>
		<title>SetPedHeadless</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=SetPedHeadless&amp;diff=18079"/>
		<updated>2009-01-01T09:50:48Z</updated>

		<summary type="html">&lt;p&gt;Twig: amended arguement description so that it makes sense&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__&lt;br /&gt;
{{Client function}}&lt;br /&gt;
With this function, you can set if a ped has a head or not.&lt;br /&gt;
==Syntax==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;bool setPedHeadless  ( ped thePed, bool headState )&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Required Arguments===&lt;br /&gt;
*'''thePed''': The [[ped]] to check.&lt;br /&gt;
*'''headState''': head state, use true if you want the ped be headless, use false to give back the head.&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns ''true'' if successful, ''false'' otherwise&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{Ped functions}}&lt;/div&gt;</summary>
		<author><name>Twig</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Template:Client_collision_shape_functions&amp;diff=18046</id>
		<title>Template:Client collision shape functions</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Template:Client_collision_shape_functions&amp;diff=18046"/>
		<updated>2008-12-28T18:15:43Z</updated>

		<summary type="html">&lt;p&gt;Twig: amended polygon function&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;*[[createColCircle]]&lt;br /&gt;
&lt;br /&gt;
*[[createColCuboid]]&lt;br /&gt;
&lt;br /&gt;
*[[createColSphere]]&lt;br /&gt;
&lt;br /&gt;
*[[createColRectangle]]&lt;br /&gt;
&lt;br /&gt;
*[[createColTube]]&lt;br /&gt;
&lt;br /&gt;
*[[createColPolygon]]&lt;/div&gt;</summary>
		<author><name>Twig</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=StopSound&amp;diff=18044</id>
		<title>StopSound</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=StopSound&amp;diff=18044"/>
		<updated>2008-12-28T13:08:30Z</updated>

		<summary type="html">&lt;p&gt;Twig: /* Example */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__ &lt;br /&gt;
{{Client function}}&lt;br /&gt;
Stops the sound playback for specified [[sound]] element.&lt;br /&gt;
&lt;br /&gt;
==Syntax== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;bool stopSound ( element theSound )&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
&lt;br /&gt;
===Required Arguments=== &lt;br /&gt;
*'''theSound:''' The [[sound]] element you want to stop playing.&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns ''true'' if the sound was successfully stopped, ''false'' otherwise.&lt;br /&gt;
&lt;br /&gt;
==Example== &lt;br /&gt;
TODO&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;
function startMySound()&lt;br /&gt;
    sound = playSound( &amp;quot;sound.mp3&amp;quot;, true )&lt;br /&gt;
end&lt;br /&gt;
addEventHandler( &amp;quot;onClientResourceStart&amp;quot;, getResourceRootElement( getThisResource() ), startMySound )&lt;br /&gt;
&lt;br /&gt;
function stopMySound()&lt;br /&gt;
    stopSound( sound )&lt;br /&gt;
end&lt;br /&gt;
addCommandHandler ( &amp;quot;stopsound&amp;quot;, stopMySound ) --using the command 'stopsound' will stop the sound&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_audio_functions}}&lt;/div&gt;</summary>
		<author><name>Twig</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=StopSound&amp;diff=18043</id>
		<title>StopSound</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=StopSound&amp;diff=18043"/>
		<updated>2008-12-28T13:07:49Z</updated>

		<summary type="html">&lt;p&gt;Twig: /* Example */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__ &lt;br /&gt;
{{Client function}}&lt;br /&gt;
Stops the sound playback for specified [[sound]] element.&lt;br /&gt;
&lt;br /&gt;
==Syntax== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;bool stopSound ( element theSound )&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
&lt;br /&gt;
===Required Arguments=== &lt;br /&gt;
*'''theSound:''' The [[sound]] element you want to stop playing.&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns ''true'' if the sound was successfully stopped, ''false'' otherwise.&lt;br /&gt;
&lt;br /&gt;
==Example== &lt;br /&gt;
TODO&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;
function startMySound()&lt;br /&gt;
    sound = playSound(&amp;quot;sound.mp3&amp;quot;, true)&lt;br /&gt;
end&lt;br /&gt;
addEventHandler(&amp;quot;onClientResourceStart&amp;quot;, getResourceRootElement(getThisResource()), startMySound)&lt;br /&gt;
&lt;br /&gt;
function stopMySound()&lt;br /&gt;
    stopSound( sound )&lt;br /&gt;
end&lt;br /&gt;
addCommandHandler ( &amp;quot;stopsound&amp;quot;, stopMySound) --using the command 'stopsound' will stop the sound&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_audio_functions}}&lt;/div&gt;</summary>
		<author><name>Twig</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=PlaySound3D&amp;diff=18042</id>
		<title>PlaySound3D</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=PlaySound3D&amp;diff=18042"/>
		<updated>2008-12-28T13:01:19Z</updated>

		<summary type="html">&lt;p&gt;Twig: condensed example comment and amended the co-ords to 2 decimal places.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__ &lt;br /&gt;
{{Client function}}&lt;br /&gt;
Creates a [[sound]] element in the GTA world and plays it immediately after creation for the local player. [[setElementPosition]] can be used to move the [[sound]] element around after it has been created.&lt;br /&gt;
&lt;br /&gt;
==Syntax== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;element playSound3D ( string soundName, float x, float y, float z, [ bool looped ] )&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
&lt;br /&gt;
===Required Arguments=== &lt;br /&gt;
*'''soundName:''' Name of the sound file you want to play. (Sound file has to be predefined in the client side [[meta.xml]] file with &amp;lt;file /&amp;gt; tags.)&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;
*'''looped:''' A [[boolean]] representing whether the sound will be looped. To loop the sound, use ''true''.&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns a [[sound]] element if the sound was successfully created, ''false'' otherwise.&lt;br /&gt;
&lt;br /&gt;
==Example== &lt;br /&gt;
TODO&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;
function onResourceStart()&lt;br /&gt;
	local sound = playSound3D(&amp;quot;sounds/song.mp3&amp;quot;, 373.14, -125.21, 1001, true) &lt;br /&gt;
-- This example creates a looping sound within a pizza shop. The pizza shop is in san fierro near pier 69&lt;br /&gt;
end&lt;br /&gt;
addEventHandler(&amp;quot;onClientResourceStart&amp;quot;, getResourceRootElement(getThisResource()), onResourceStart)&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_audio_functions}}&lt;/div&gt;</summary>
		<author><name>Twig</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=PlaySound3D&amp;diff=18041</id>
		<title>PlaySound3D</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=PlaySound3D&amp;diff=18041"/>
		<updated>2008-12-28T12:57:38Z</updated>

		<summary type="html">&lt;p&gt;Twig: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__ &lt;br /&gt;
{{Client function}}&lt;br /&gt;
Creates a [[sound]] element in the GTA world and plays it immediately after creation for the local player. [[setElementPosition]] can be used to move the [[sound]] element around after it has been created.&lt;br /&gt;
&lt;br /&gt;
==Syntax== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;element playSound3D ( string soundName, float x, float y, float z, [ bool looped ] )&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
&lt;br /&gt;
===Required Arguments=== &lt;br /&gt;
*'''soundName:''' Name of the sound file you want to play. (Sound file has to be predefined in the client side [[meta.xml]] file with &amp;lt;file /&amp;gt; tags.)&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;
*'''looped:''' A [[boolean]] representing whether the sound will be looped. To loop the sound, use ''true''.&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns a [[sound]] element if the sound was successfully created, ''false'' otherwise.&lt;br /&gt;
&lt;br /&gt;
==Example== &lt;br /&gt;
TODO&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;
function onResourceStart()&lt;br /&gt;
	local sound = playSound3D(&amp;quot;sounds/song.mp3&amp;quot;, 373.14022827148, -125.21725463867, 1001, true) --play sounds/song.mp3 on loop for when a player enters a pizza shop so that when they get near the counter the volume is louder. (incase he gets bored of waiting for his pizza :p the pizza shop is in sf near pier 69)&lt;br /&gt;
end&lt;br /&gt;
addEventHandler(&amp;quot;onClientResourceStart&amp;quot;, getResourceRootElement(getThisResource()), onResourceStart)&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_audio_functions}}&lt;/div&gt;</summary>
		<author><name>Twig</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=PlaySound&amp;diff=18040</id>
		<title>PlaySound</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=PlaySound&amp;diff=18040"/>
		<updated>2008-12-28T12:54:06Z</updated>

		<summary type="html">&lt;p&gt;Twig: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__ &lt;br /&gt;
{{Client function}}&lt;br /&gt;
Creates a [[sound]] element and plays it immediately after creation for the local player.&lt;br /&gt;
==Syntax== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;element playSound ( string soundName, [ bool looped ] )&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
&lt;br /&gt;
===Required Arguments=== &lt;br /&gt;
*'''soundName:''' Name of the sound file you want to play. (Sound file has to be predefined in the client side [[meta.xml]] file with &amp;lt;file /&amp;gt; tags.)&lt;br /&gt;
&lt;br /&gt;
===Optional Arguments=== &lt;br /&gt;
{{OptionalArg}} &lt;br /&gt;
*'''looped:''' A [[boolean]] representing whether the sound will be looped. To loop the sound, use ''true''.&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns a [[sound]] element if the sound was successfully created, ''false'' otherwise.&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;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function wasted (killer, weapon, bodypart) &lt;br /&gt;
	local sound = playSound(&amp;quot;sounds/wasted.mp3&amp;quot;) --Play wasted.mp3 from the sounds folder&lt;br /&gt;
	setSoundVolume(sound, 0.5) -- set the sound volume to 50%&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
addEventHandler(&amp;quot;onClientPlayerWasted&amp;quot;, getLocalPlayer(), wasted) --add the event 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;
{{Client_audio_functions}}&lt;/div&gt;</summary>
		<author><name>Twig</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Element/Sound&amp;diff=18035</id>
		<title>Element/Sound</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Element/Sound&amp;diff=18035"/>
		<updated>2008-12-27T16:23:48Z</updated>

		<summary type="html">&lt;p&gt;Twig: corrected wording, amended formatting to make clear the seperation between client audio functions and element functions.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;The sound element represents a custom sound sent to the client via the use of the file parameter inside the meta file and created either by [[playSound]] or [[playSound3D]].&lt;br /&gt;
&lt;br /&gt;
A sound element is created using [[playSound3D]] or [[playSound]] and can be manipulated with the following element functions:.&lt;br /&gt;
&lt;br /&gt;
* [[setElementPosition]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Sound elements can also be manipulated using the other [[Template:Client audio functions|Client audio functions]].&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The element type of this class is '''&amp;quot;sound&amp;quot;'''.&lt;br /&gt;
&lt;br /&gt;
==Related scripting functions==&lt;br /&gt;
===Client===&lt;br /&gt;
{{Client audio functions}}&lt;/div&gt;</summary>
		<author><name>Twig</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=SetSoundVolume&amp;diff=17981</id>
		<title>SetSoundVolume</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=SetSoundVolume&amp;diff=17981"/>
		<updated>2008-12-26T19:56:43Z</updated>

		<summary type="html">&lt;p&gt;Twig: /* Syntax */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__ &lt;br /&gt;
{{Client function}}&lt;br /&gt;
Sets custom sound volume.&lt;br /&gt;
&lt;br /&gt;
==Syntax== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;bool setSoundVolume ( element sound, float volume )&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
&lt;br /&gt;
===Required Arguments=== &lt;br /&gt;
*'''sound:''' Name of the sound you want to change the volume of.&lt;br /&gt;
*'''volume:''' A float representing the desired volume.&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns ''true'' if the sound volume was successfully changed, ''false'' otherwise.&lt;br /&gt;
&lt;br /&gt;
==Example== &lt;br /&gt;
TODO&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;
--TODO&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;
{{audio functions}}&lt;/div&gt;</summary>
		<author><name>Twig</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Help:Main_Page&amp;diff=17812</id>
		<title>Help:Main Page</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Help:Main_Page&amp;diff=17812"/>
		<updated>2008-11-15T11:46:10Z</updated>

		<summary type="html">&lt;p&gt;Twig: removed support request, wrong place for this&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Can you please add a link to the Italian main page(&amp;lt;nowiki&amp;gt;[[it:Pagina principale]]&amp;lt;/nowiki&amp;gt;)? Thanks.&amp;lt;br/&amp;gt;&amp;lt;span style=&amp;quot;font-family:Courier New, Courier, monospace&amp;quot;&amp;gt;[[User:Shadd|Shadd]]&amp;lt;/span&amp;gt;&amp;lt;sub&amp;gt;([[User_talk:Shadd|Сто?]])&amp;lt;/sub&amp;gt; 11:49, 25 January 2008 (CST)&lt;br /&gt;
:Done :) Keep up the good work! [[User:EAi|eAi]] 20:06, 25 January 2008 (CST)&lt;br /&gt;
&lt;br /&gt;
The Dutch one too please (&amp;lt;nowiki&amp;gt;[[nl:Main Page]]&amp;lt;/nowiki&amp;gt;)? :P&lt;br /&gt;
:Done :) [[User:EAi|eAi]] 11:24, 26 January 2008 (CST)&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br/&amp;gt;&lt;br /&gt;
http://development.mtasa.com/index.php?title=Vehicle_Upgrades&lt;br /&gt;
There is no link in 'Vehicle Upgrades' in the 'ID list'. I already knew that there is this page, but unfortunately we can't modify this page... :( &amp;lt;br/&amp;gt; [[User:Atti|Atti]] 03:29, 27 January 2008 (CST)&lt;br /&gt;
&lt;br /&gt;
Please add a Link to the German Translation. (DE/Hauptseite)&lt;br /&gt;
&lt;br /&gt;
Same [[Introduction to Scripting the GUI|page]] is linked twice in the 'Getting started' section ('Introduction to Scripting the GUI' and 'Scripted GUI'). [[User:Awwu|Awwu]] 05:03, 25 May 2008 (CDT)&lt;br /&gt;
&lt;br /&gt;
== Request ==&lt;br /&gt;
&lt;br /&gt;
I have a request for the italian wiki: it's possible to do that the functions in the code tag that are in the italian pages link to the italian pages of the functions, and not to the english one? Can you create, if in need, a namespace for the italian(and other langueges of course)wiki?&lt;br /&gt;
Example:&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
addEventHandler(&amp;quot;onGamemodeMapStart&amp;quot;, g_root, loadMap)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
If you click on the function name you'll get the addEventHandler page, I want that if I click on it in the italian wiki i can go to IT/addEventHandler instead of addEventHandler. Thanks. --&amp;lt;span style=&amp;quot;font-family:Courier New, Courier, monospace&amp;quot;&amp;gt;[[User:Shadd|Shadd]]&amp;lt;/span&amp;gt;&amp;lt;sub&amp;gt;([[User_talk:Shadd|In caso di emergenza rompere le scatole]])&amp;lt;/sub&amp;gt; 06:51, 5 June 2008 (CDT)&lt;br /&gt;
&lt;br /&gt;
== Double link ==&lt;br /&gt;
&lt;br /&gt;
Links to [[Introduction to Scripting the GUI]] and [[Scripted GUI]] redirect to one page. -- [[User:Divine|Divine]] 04:27, 15 June 2008 (CDT)&lt;/div&gt;</summary>
		<author><name>Twig</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=BanPlayer&amp;diff=17774</id>
		<title>BanPlayer</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=BanPlayer&amp;diff=17774"/>
		<updated>2008-10-26T12:14:01Z</updated>

		<summary type="html">&lt;p&gt;Twig: added further comment and moved addCommandHandler to make it's relation to banPlayerCommand   more obvious&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;
addCommandHandler ( &amp;quot;ban&amp;quot;, banPlayerCommand )&lt;br /&gt;
&lt;br /&gt;
-- Example function with the root element. Here you would pass a player element to the function.&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;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{Admin_functions}}&lt;/div&gt;</summary>
		<author><name>Twig</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=BanPlayer&amp;diff=17773</id>
		<title>BanPlayer</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=BanPlayer&amp;diff=17773"/>
		<updated>2008-10-26T12:11:06Z</updated>

		<summary type="html">&lt;p&gt;Twig: spelling&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 root 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>Twig</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=User:Twig&amp;diff=17758</id>
		<title>User:Twig</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=User:Twig&amp;diff=17758"/>
		<updated>2008-10-18T10:46:38Z</updated>

		<summary type="html">&lt;p&gt;Twig: /* Twig */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{| class=&amp;quot;wikitable sortable&amp;quot; border=&amp;quot;1&amp;quot; cellpadding=&amp;quot;2&amp;quot; style=&amp;quot;text-align:center&amp;quot;&lt;br /&gt;
!width=&amp;quot;100&amp;quot;|Name&lt;br /&gt;
!width=&amp;quot;50&amp;quot;|ID&lt;br /&gt;
!width=&amp;quot;50&amp;quot;|X&lt;br /&gt;
!width=&amp;quot;50&amp;quot;|Y&lt;br /&gt;
!width=&amp;quot;50&amp;quot;|Z&lt;br /&gt;
!width=&amp;quot;200&amp;quot;|Desc&lt;br /&gt;
!width=&amp;quot;200&amp;quot;|SP&lt;br /&gt;
|-&lt;br /&gt;
|24/7 1  || 17  || -25.884499,-35.0952,-3.3979  || -185.868988,-188.7431,-167.9059  || 1003.549988,1002.5469,1008.7656  || Big - L-shaped - NO EXIT  || &lt;br /&gt;
|-&lt;br /&gt;
|24/7 2  || 10  || 6.091180,-13.1705,10.8973  || -29.271898,-32.5796,-73.7699  || 1003.549988,1002.5494,1008.8979  || Big - Oblong - NO EXIT  || &lt;br /&gt;
|-&lt;br /&gt;
|24/7 3  || 18  || -30.946699,-39.2296,-12.9542  || -89.609596,-92.6993,-73.7699  || 1003.549988,1002.5469,1008.9487  || Med - Square  || Creek, LV&lt;br /&gt;
|-&lt;br /&gt;
|24/7 4  || 16  || -25.132599,-39.1961,-14.0429  || -139.066986,-142.2416,-122.4566  || 1003.549988,1002.5469,1008.3311  || Med - Square - NO EXIT  || &lt;br /&gt;
|-&lt;br /&gt;
|24/7 5  || 4  || -27.312300,-36.9258,-25.8106  || -29.277599,-32.1881,-1.8185  || 1003.549988,1002.5573,1009.0845  || Sml - Long  || Mulholland&lt;br /&gt;
|-&lt;br /&gt;
|24/7 6  || 6  || -26.691599,-37.4347,-16.2656  || -55.714897,-58.9940,-48.4956  || 1003.549988,1002.5469,1008.7020  || Sml - Square  || Whetstone &lt;br /&gt;
|-&lt;br /&gt;
|Francis Intn'l Airport - Ticket sales  || 14  || -1827.147338  || 7.207418  || 1061.143554  || Francis Int. Airport (Front Exterior &amp;amp; Ticket Sales)  || Starting Cutscene&lt;br /&gt;
|-&lt;br /&gt;
|Francis Intn'l Airport - Baggage claim  || 14  || -1855.568725  || 41.263156  || 1061.143554  || Francis Int. Airport (Baggage Claim)  || Starting Cutscene&lt;br /&gt;
|-&lt;br /&gt;
|Shamal cabin  || 1  || 2.384830  || 33.103397  || 1199.849976  || Shamal plane interior where you fight with Mafia  || Mission &amp;quot;Free Fall&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
|Andromada cargo hold  || 9  || 315.856170  || 1024.496459  || 1949.797363  || Interior of the Andromeda Plane used in Area51 Break in  || Mission &amp;quot;Stowaway&amp;quot; &lt;br /&gt;
|-&lt;br /&gt;
|Ammunation 1  || 1  || 286.148987  || -40.644398  || 1001.569946  ||  || Ocean Flats, SF&lt;br /&gt;
|-&lt;br /&gt;
|Ammunation 2  || 4  || 286.800995  || -82.547600  || 1001.539978  ||  || Palomino Creek, LV&lt;br /&gt;
|-&lt;br /&gt;
|Ammunation 3  || 6  || 296.919983  || -108.071999  || 1001.569946  ||  || Angel Pine, SF&lt;br /&gt;
|-&lt;br /&gt;
|Ammunation 4  || 7  || 314.820984  || -141.431992  || 999.661987  || 2 Stories, with Booth and Range  || &lt;br /&gt;
|-&lt;br /&gt;
|Ammunation 5  || 6  || 316.524994  || -167.706985  || 999.661987  ||  || El Quebrados, LV&lt;br /&gt;
|-&lt;br /&gt;
|Booth  || 7  || 302.292877  || -143.139099  || 1004.062500  || Ammunation Booth from Ammunation 4  || &lt;br /&gt;
|-&lt;br /&gt;
|Range  || 7  || 280.795104  || -135.203353  || 1004.062500  || Ammunation Range from Ammunation 4  || &lt;br /&gt;
|-&lt;br /&gt;
|House 1  || 3  || 235.508994  || 1189.169897  || 1080.339966  || Large/2 story/3 bedrooms/clone of House 9  || &lt;br /&gt;
|-&lt;br /&gt;
|House 2  || 2  || 225.756989  || 1240.000000  || 1082.149902  || Medium/1 story/1 bedroom  || &lt;br /&gt;
|-&lt;br /&gt;
|House 3  || 1  || 223.043991  || 1289.259888  || 1082.199951  || Small/1 story/1 bedroom  || &lt;br /&gt;
|-&lt;br /&gt;
|House 4  || 7  || 225.630997  || 1022.479980  || 1084.069946  || VERY Large/2 story/4 bedrooms  || &lt;br /&gt;
|-&lt;br /&gt;
|House 5  || 15  || 295.138977  || 1474.469971  || 1080.519897  || Small/1 story/2 bedrooms  || &lt;br /&gt;
|-&lt;br /&gt;
|House 6  || 15  || 328.493988  || 1480.589966  || 1084.449951  || Small/1 story/2 bedrooms  || &lt;br /&gt;
|-&lt;br /&gt;
|House 7  || 15  || 385.803986  || 1471.769897  || 1080.209961  || Small/1 story/1 bedroom/NO BATHROOM!  || &lt;br /&gt;
|-&lt;br /&gt;
|Atrium  || 18  || 1726.18  || -1641.00  || 20.23  || Located in LS, near LSPD  || Mission &amp;quot;Just Business&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
|Big Smoke's Crack Palace  || 2  || 2567.52  || -1294.59  || 1063.25  || Crack Laboratory  || Mission &amp;quot;End of the Line&amp;quot;, after that opened for visit&lt;br /&gt;
|-&lt;br /&gt;
|Bloodbowl Stadium  || 15  || -1394.20  || 987.62  || 1023.96  ||  || Arena Mission &amp;quot;Bloodbowl&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
|Burning Desire House  || 5  || 2338.32  || -1180.61  || 1027.98  || House from the mission, partly no textures even if solid.  || Mission &amp;quot;Burning Desire&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
|Colonel Furhberger's  || 8  || 2807.63  || -1170.15  || 1025.57  || House you rob during a mission  || Mission &amp;quot;Home Invasion&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
|Dillimore Gas Station  || 0  || 664.19  || -570.73  || 16.34  || Only South &amp;amp; West Wall + Floor solid  || Mission &amp;quot;Tanker Commander&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
|Francis International Airport  || 14  || -1830.81  || 16.83  || 1061.14  || Front Exterior &amp;amp; Ticket Sale, visible floors are solid  || Cutscene in &amp;quot;Opening Mission&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
|Jefferson Motel  || 15  || 2220.26  || -1148.01  || 1025.80  || Large Motel with lot of rooms  || Mission &amp;quot;Reuniting the Families&amp;quot;, Jefferson, Los Santos&lt;br /&gt;
|-&lt;br /&gt;
|Kickstart Stadium  || 14  || -1410.72  || 1591.16  || 1052.53  ||  || Arena Mission &amp;quot;Kickstart&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
|Liberty City  || 1  || -750.80  || 491.00  || 1371.70  || Interior with parts of Liberty City, only Saint Marks Bistro and nearer surrounding solid  || Mission &amp;quot;Saint Marks Bistro&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
|Los Santos Airport, Baggage Reclaim  || 14  || -1870.80  || 59.81  || 1056.25  || only roof is solid, maybe some of floor too  || Cutscene in &amp;quot;Opening Mission&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
|Pleasures Dome/Jizzy's  || 3  || -2637.69  || 1404.24  || 906.46  || Club in San Fierro  || Cutscene &amp;amp; in Mission &amp;quot;Ice Cold Killa&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
|RC Battlefield  || 10  || -1079.99  || 1061.58  || 1343.04  ||  || Mission &amp;quot;New Model Army&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
|Ryders House  || 2  || 2451.77  || -1699.80  || 1013.51  || House of Ryder, some objects not solid  || Cutscenes&lt;br /&gt;
|-&lt;br /&gt;
|San Fierro Garage Interior  || 1  || -2042.42  || 178.59  || 28.84  || Interior of your Garage in Doherty. Locked Camera Position  || Cutscenes&lt;br /&gt;
|-&lt;br /&gt;
|Sweets House  || 1  || 2535.83  || -1674.32  || 1015.50  || House of your brother Sweet, some floors/walls &amp;amp; objects not solid  || Cutscenes&lt;br /&gt;
|-&lt;br /&gt;
|Welcome Pump, The  || 1  || 681.66  || -453.32  || -25.61  || Truck Stop Dinner where you meet Catalina. Entrance Area not solid  || Cutscene in &amp;quot;First Date&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
|Woozies Apartment  || 1  || -2158.72  || 641.29  || 1052.38  || Appartment where you meet Woozie few times during Missions in San Fierro. Does also include Woozie's betting shop  || Cutscenes&lt;br /&gt;
|-&lt;br /&gt;
|8 Track Stadium  || 7  || -1395.958  || -208.197  || 1051.170  || Figure-8 race track  || Stadium&lt;br /&gt;
|-&lt;br /&gt;
|Dirt Bike Stadium  || 4  || -1424.9319  || -664.5869  || 1059.8585  || Dirt Bike Stadium  || Stadium &lt;br /&gt;
|-&lt;br /&gt;
|Golden Bed Motel Room  || 9  || 2251.85  || -1138.16  || 1050.63  || Safe House Group 3  ||  ?&lt;br /&gt;
|-&lt;br /&gt;
|Hashbury House  || 10  || 2260.76  || -1210.45  || 1049.02  || Safe House Group 4  || Hashburry, San Fierro&lt;br /&gt;
|-&lt;br /&gt;
|Johnsons House, The  || 3  || 2496.65  || -1696.55  || 1014.74  || House of CJ's family where his mum has been murdered  || Ganton, Los Santos&lt;br /&gt;
|-&lt;br /&gt;
|Madd Doggs Mansion  || 5  || 1299.14  || -794.77  || 1084.00  || The large mansion you get at the end of Las Venturas Storyline Section. Also part of mission &amp;quot;Madd Doggs Rhymes&amp;quot;  || Mulholland, Los Santos&lt;br /&gt;
|-&lt;br /&gt;
|Red Bed Motel Room  || 10  || 2262.83  || -1137.71  || 1050.63  || Safe House Group 4  ||  ?&lt;br /&gt;
|-&lt;br /&gt;
|Verdant Bluffs Safehouse  || 9  || 2365.42  || -1131.85  || 1050.88  ||  || Verdant Bluffs, Las Venturas&lt;br /&gt;
|-&lt;br /&gt;
|Zeros RC Shop  || 6  || -2240.00  || 131.00  || 1035.40  || The Shop you can buy and start missions from  || Garcia, San Fierro &lt;br /&gt;
|-&lt;br /&gt;
|SF Police Department  || 10  || 246.40  || 110.84  || 1003.22  ||  || Not used&lt;br /&gt;
|-&lt;br /&gt;
|Unused Safe House  || 12  || 2324.33  || -1144.79  || 1050.71  || Large modern unused Safehouse  || Not used &lt;br /&gt;
|-&lt;br /&gt;
|Tattoos  || 16  || -203.0764  || -24.1658  || 1002.2734  || Tattoo shop  || Idlewood,LS&lt;br /&gt;
|-&lt;br /&gt;
|Burger Shot  || 10  || 363.4129  || -74.5786  || 1001.5078  || Burger king  || Vinewood, LS&lt;br /&gt;
|-&lt;br /&gt;
|Well Stacked Pizza  || 5  || 372.3520  || -131.6510  || 1001.4922  || Well Stacked Pizza  || Los Santos?&lt;br /&gt;
|-&lt;br /&gt;
|Cluckin' Bell  || 9  || 365.7158  || -9.8873  || 1001.8516  || Cluckin' Bell  || San Fierro, Downtown&lt;br /&gt;
|-&lt;br /&gt;
|Caligulas  || 1  || 2233.8032  || 1712.2303  || 1011.7632  || Casino  || Las Venturas&lt;br /&gt;
|-&lt;br /&gt;
|4 Dragons  || 10  || 2016.2699  || 1017.7790  || 996.8750  || Casino  || Las Venturas &lt;br /&gt;
|-&lt;br /&gt;
|Loco Low  || 2  || 616.7820  || -74.8151  || 997.6350  || Modding shop  || Los Santos&lt;br /&gt;
|-&lt;br /&gt;
|Wheel Arch Angels  || 3  || 615.2851  || -124.2390  || 997.6350  || Modding shop  || San Fierro&lt;br /&gt;
|-&lt;br /&gt;
|Transfender  || 1  || 617.5380  || -1.9900  || 1000.6829  || Modding shop  || Los Santos, San Fierro, Las Venturas &lt;br /&gt;
|}&lt;/div&gt;</summary>
		<author><name>Twig</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=GetFPSLimit&amp;diff=17756</id>
		<title>GetFPSLimit</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=GetFPSLimit&amp;diff=17756"/>
		<updated>2008-10-15T12:48:08Z</updated>

		<summary type="html">&lt;p&gt;Twig: removed example needed tag&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Server function}}&lt;br /&gt;
__NOTOC__&lt;br /&gt;
This function retrieves the maximum [http://en.wikipedia.org/wiki/Frame_rate FPS (Frames per second)] that players on the server can run their game at.  &lt;br /&gt;
&lt;br /&gt;
==Syntax== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
int getFPSLimit ()         &lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns an integer between '''25''' and '''100''' of the maximum FPS that players can run their game at.&lt;br /&gt;
&lt;br /&gt;
==Example== &lt;br /&gt;
This example displays a message in the chatbox showing the current fps limit.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function fpsLim()&lt;br /&gt;
        outputChatBox ( &amp;quot;The FPS limit is: &amp;quot; .. tostring( getFPSLimit () ) ) --function returns an int so we must convert it to a string&lt;br /&gt;
end                                                  &lt;br /&gt;
&lt;br /&gt;
-- Add console command &amp;quot;fpslimit&amp;quot; which calls the function fpsLim&lt;br /&gt;
addCommandHandler ( &amp;quot;fpslimit&amp;quot;, fpsLim )&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>Twig</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=GetFPSLimit&amp;diff=17755</id>
		<title>GetFPSLimit</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=GetFPSLimit&amp;diff=17755"/>
		<updated>2008-10-15T12:47:18Z</updated>

		<summary type="html">&lt;p&gt;Twig: Example added&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Server function}}&lt;br /&gt;
__NOTOC__&lt;br /&gt;
This function retrieves the maximum [http://en.wikipedia.org/wiki/Frame_rate FPS (Frames per second)] that players on the server can run their game at.  &lt;br /&gt;
&lt;br /&gt;
==Syntax== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
int getFPSLimit ()         &lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns an integer between '''25''' and '''100''' of the maximum FPS that players can run their game at.&lt;br /&gt;
&lt;br /&gt;
==Example== &lt;br /&gt;
This example displays a message in the chatbox showing the current fps limit.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function fpsLim()&lt;br /&gt;
        outputChatBox ( &amp;quot;The FPS limit is: &amp;quot; .. tostring( getFPSLimit () ) ) --function returns an int so we must convert it to a string&lt;br /&gt;
end                                                  &lt;br /&gt;
&lt;br /&gt;
-- Add console command &amp;quot;fpslimit&amp;quot; which calls the function fpsLim&lt;br /&gt;
addCommandHandler ( &amp;quot;fpslimit&amp;quot;, fpsLim )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{Server functions}}&lt;br /&gt;
[[Category:Needs_Example]]&lt;/div&gt;</summary>
		<author><name>Twig</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Get&amp;diff=17754</id>
		<title>Get</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Get&amp;diff=17754"/>
		<updated>2008-10-15T09:26:26Z</updated>

		<summary type="html">&lt;p&gt;Twig: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Server function}}&lt;br /&gt;
__NOTOC__&lt;br /&gt;
This function gets a setting's value, or a group of settings' values, from the [[settings system|settings registry]].&lt;br /&gt;
&lt;br /&gt;
==Syntax== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
var get ( string settingName )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
&lt;br /&gt;
==Optional Arguments==&lt;br /&gt;
'''settingName:''' The name of the setting you want to set. See [[settings system#Setting names|setting names]] for information on settings names.&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns the value of the setting if a single setting was specified and found, or a ''table'' (in associative-array form) containing:&lt;br /&gt;
*the list of global setting name/value pairs if &amp;quot;.&amp;quot; is passed as a setting name,&lt;br /&gt;
*the list of resource settings if a resource name followed by a &amp;quot;.&amp;quot; is passed,&lt;br /&gt;
*the list of the script's resource settings if an empty string is passed.&lt;br /&gt;
It returns ''false'' if the specified setting or settings group doesn't exist, or if the settings group you are trying to retrieve doesn't have any public or protected settings.&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
Example returns a value from the settings registry with the name &amp;quot;respawnTime&amp;quot;.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function getMySetting()&lt;br /&gt;
    if get ( &amp;quot;respawnTime&amp;quot; ) then&lt;br /&gt;
        return get ( &amp;quot;respawnTime&amp;quot; )&lt;br /&gt;
    end&lt;br /&gt;
    return false&lt;br /&gt;
end&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{Settings registry functions}}&lt;/div&gt;</summary>
		<author><name>Twig</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Get&amp;diff=17753</id>
		<title>Get</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Get&amp;diff=17753"/>
		<updated>2008-10-14T23:32:06Z</updated>

		<summary type="html">&lt;p&gt;Twig: /* Example */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Server function}}&lt;br /&gt;
__NOTOC__&lt;br /&gt;
This function gets a setting's value, or a group of settings' values, from the [[settings system|settings registry]].&lt;br /&gt;
&lt;br /&gt;
==Syntax== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
var get ( string settingName )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
&lt;br /&gt;
==Optional Arguments==&lt;br /&gt;
'''settingName:''' The name of the setting you want to set. See [[settings system#Setting names|setting names]] for information on settings names.&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns the value of the setting if a single setting was specified and found, or a ''table'' (in associative-array form) containing:&lt;br /&gt;
*the list of global setting name/value pairs if &amp;quot;.&amp;quot; is passed as a setting name,&lt;br /&gt;
*the list of resource settings if a resource name followed by a &amp;quot;.&amp;quot; is passed,&lt;br /&gt;
*the list of the script's resource settings if an empty string is passed.&lt;br /&gt;
It returns ''false'' if the specified setting or settings group doesn't exist, or if the settings group you are trying to retrieve doesn't have any public or protected settings.&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
Example returns a value from the settings registry with the name &amp;quot;respawnTime&amp;quot;.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function getMySetting()&lt;br /&gt;
    if get ( &amp;quot;respawnTime&amp;quot; ) then&lt;br /&gt;
        return get ( &amp;quot;respawnTime&amp;quot; )&lt;br /&gt;
    end&lt;br /&gt;
    return false&lt;br /&gt;
end&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{Settings registry functions}}&lt;br /&gt;
&lt;br /&gt;
[[Category:Needs Example]]&lt;/div&gt;</summary>
		<author><name>Twig</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Get&amp;diff=17752</id>
		<title>Get</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Get&amp;diff=17752"/>
		<updated>2008-10-14T23:31:27Z</updated>

		<summary type="html">&lt;p&gt;Twig: /* Example */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Server function}}&lt;br /&gt;
__NOTOC__&lt;br /&gt;
This function gets a setting's value, or a group of settings' values, from the [[settings system|settings registry]].&lt;br /&gt;
&lt;br /&gt;
==Syntax== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
var get ( string settingName )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
&lt;br /&gt;
==Optional Arguments==&lt;br /&gt;
'''settingName:''' The name of the setting you want to set. See [[settings system#Setting names|setting names]] for information on settings names.&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns the value of the setting if a single setting was specified and found, or a ''table'' (in associative-array form) containing:&lt;br /&gt;
*the list of global setting name/value pairs if &amp;quot;.&amp;quot; is passed as a setting name,&lt;br /&gt;
*the list of resource settings if a resource name followed by a &amp;quot;.&amp;quot; is passed,&lt;br /&gt;
*the list of the script's resource settings if an empty string is passed.&lt;br /&gt;
It returns ''false'' if the specified setting or settings group doesn't exist, or if the settings group you are trying to retrieve doesn't have any public or protected settings.&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
Example re&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function getMySetting()&lt;br /&gt;
    if get ( &amp;quot;respawnTime&amp;quot; ) then&lt;br /&gt;
        return get ( &amp;quot;respawnTime&amp;quot; )&lt;br /&gt;
    end&lt;br /&gt;
    return false&lt;br /&gt;
end&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{Settings registry functions}}&lt;br /&gt;
&lt;br /&gt;
[[Category:Needs Example]]&lt;/div&gt;</summary>
		<author><name>Twig</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=GetAccount&amp;diff=17751</id>
		<title>GetAccount</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=GetAccount&amp;diff=17751"/>
		<updated>2008-10-14T23:25:29Z</updated>

		<summary type="html">&lt;p&gt;Twig: /* Example */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__&lt;br /&gt;
{{Server function}}&lt;br /&gt;
This function returns an account for a specific user. &lt;br /&gt;
==Syntax==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
account getAccount ( string username, [ string password ] )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Required Arguments===&lt;br /&gt;
*'''username:''' The username of the account you want to retrieve&lt;br /&gt;
&lt;br /&gt;
===Optional Arguments===&lt;br /&gt;
{{OptionalArg}}&lt;br /&gt;
*'''password:''' The password for the account. If this argument is not specified, you can get the account whatever password it is, otherwise the password must match the account's.&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
An ''account'' value or ''false'' if an account matching the username specified (and password, if specified) could not be found.&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 retAccount ( username, password ) --both arguements are strings&lt;br /&gt;
    if getAccount( username, password ) then&lt;br /&gt;
        return getAccount( username, password )&lt;br /&gt;
    end&lt;br /&gt;
        return false&lt;br /&gt;
end&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{Account functions}}&lt;br /&gt;
&lt;br /&gt;
[[pl:GetAccount]]&lt;/div&gt;</summary>
		<author><name>Twig</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=XmlNodeGetValue&amp;diff=17750</id>
		<title>XmlNodeGetValue</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=XmlNodeGetValue&amp;diff=17750"/>
		<updated>2008-10-12T10:21:16Z</updated>

		<summary type="html">&lt;p&gt;Twig: /* Example */  Fixed example using incorrect function&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:Incomplete]]&lt;br /&gt;
&lt;br /&gt;
__NOTOC__ &lt;br /&gt;
This function is made to be able to read values in XML files. (for example &amp;lt;something&amp;gt;anything&amp;lt;/something&amp;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;
string xmlNodeGetValue ( xmlnode xmlnode )             &lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
&lt;br /&gt;
===Required Arguments=== &lt;br /&gt;
*'''xmlnode:''' The node of which you need to know the value.&lt;br /&gt;
&lt;br /&gt;
===Optional Arguments=== &lt;br /&gt;
{{OptionalArg}} &lt;br /&gt;
*'''none:'''&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns the value of the node if successful, ''false'' otherwise.&lt;br /&gt;
&lt;br /&gt;
==Example== &lt;br /&gt;
In this example is shown what xmlNodeGetValue does and how it works: &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
local xmlFile=xmlLoadFile(&amp;quot;xmlfile.xml&amp;quot;) --Open a file that we have already created&lt;br /&gt;
if xmlFile then --If it's indeed opened:&lt;br /&gt;
        local node=xmlFindSubNode(xmlFile,&amp;quot;somesubnode&amp;quot;,0) --Find our first subnode&lt;br /&gt;
        local success=xmlNodeGetValue(node) --Get the value of it&lt;br /&gt;
                if success then --Check if it was successful&lt;br /&gt;
                    outputChatBox(tostring(success))--Output to the chatbox&lt;br /&gt;
                end --End what still needs to be ended&lt;br /&gt;
        end&lt;br /&gt;
end&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
The xml file will need to look like: &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;somenode&amp;gt;&lt;br /&gt;
        &amp;lt;somesubnode&amp;gt;somevalue&amp;lt;/somesubnode&amp;gt;&lt;br /&gt;
&amp;lt;/somenode&amp;gt;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{FunctionArea_Functions}}&lt;br /&gt;
{{XML_functions}}&lt;/div&gt;</summary>
		<author><name>Twig</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=User:Twig&amp;diff=17574</id>
		<title>User:Twig</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=User:Twig&amp;diff=17574"/>
		<updated>2008-07-27T23:02:46Z</updated>

		<summary type="html">&lt;p&gt;Twig: /* Twig */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Twig ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
test&lt;/div&gt;</summary>
		<author><name>Twig</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Talk:ExecuteSQLQuery&amp;diff=15988</id>
		<title>Talk:ExecuteSQLQuery</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Talk:ExecuteSQLQuery&amp;diff=15988"/>
		<updated>2008-02-29T10:45:55Z</updated>

		<summary type="html">&lt;p&gt;Twig: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;--[[User:Twig|Twig]] 06:27, 28 January 2008 (CST)&lt;br /&gt;
&lt;br /&gt;
This function seems not to work in any way as it should. Things that should work in SQLite such as &amp;quot;SELECT * FROM sqlite_master&amp;quot; which should return all table names from a database return nothing at all. Could a developer please check up on this as it restricts the flexibility of SQLite.&lt;/div&gt;</summary>
		<author><name>Twig</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=GetVehicleRotation&amp;diff=15756</id>
		<title>GetVehicleRotation</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=GetVehicleRotation&amp;diff=15756"/>
		<updated>2008-02-10T10:31:44Z</updated>

		<summary type="html">&lt;p&gt;Twig: simplified rotation fix&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__&lt;br /&gt;
{{Server client function}}&lt;br /&gt;
==Description==&lt;br /&gt;
This function gets the rotation of a vehicle along the X, Y, and Z axes in degrees.&lt;br /&gt;
&lt;br /&gt;
''Note: rotation Z returns value in CCW (counter-clock wise). So 3 o'clock is not 90 degrees, it's actually 270 degrees and 9 o'clock is not 270 degrees, it's 90 degrees. '''To fix this use: rotZ = (360-rotZ)'''''&lt;br /&gt;
&lt;br /&gt;
==Syntax==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;float float float getVehicleRotation ( vehicle theVehicle )&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Required Arguments===&lt;br /&gt;
*'''theVehicle''': The [[vehicle]] whose rotation you want to retrieve.&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns three ''floats'' indicating the X, Y, and Z rotations of the vehicle in degrees, or ''false'' if the specified vehicle does not exist.&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
This example creates a vehicle and gets its rotation:&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;local newHydra = createVehicle ( 520, 1024, 1024, 1024 ) -- create a Hydra&lt;br /&gt;
local rx, ry, rz = getVehicleRotation ( newHydra ) -- get the vehicle's x, y and z rotations and store them in rx, ry, and rz&lt;br /&gt;
outputChatBox ( &amp;quot;Current rotation: &amp;quot; .. rx .. &amp;quot; &amp;quot; .. ry .. &amp;quot; &amp;quot; .. rz ) -- output the rotations&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{Vehicle functions}}&lt;/div&gt;</summary>
		<author><name>Twig</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=BanPlayer&amp;diff=15722</id>
		<title>BanPlayer</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=BanPlayer&amp;diff=15722"/>
		<updated>2008-02-09T19:37:04Z</updated>

		<summary type="html">&lt;p&gt;Twig: fixed example syntax error&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.&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 , [ player responsiblePlayer , 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;
*'''responsiblePlayer:''' The player that is responsible for banning the player&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>Twig</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=SetPlayerMoney&amp;diff=15709</id>
		<title>SetPlayerMoney</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=SetPlayerMoney&amp;diff=15709"/>
		<updated>2008-02-07T01:06:34Z</updated>

		<summary type="html">&lt;p&gt;Twig: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__&lt;br /&gt;
{{Server function}}&lt;br /&gt;
{{Needs_Checking|The first time you set the money for a player it doesn't set the correct amount of money, for example setting it to $100000 gives $98755, this applies to givePlayerMoney as well --[[User:Norby89|Norby89]] 09:10, 5 August 2007 (CDT) }}&lt;br /&gt;
Sets a player's money to a certain value, regardless of current player money. It should be noted that setting negative values does not work and in fact gives the player large amounts of money.&lt;br /&gt;
&lt;br /&gt;
==Syntax== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt; bool setPlayerMoney ( player thePlayer, int amount ) &amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
&lt;br /&gt;
===Required Arguments=== &lt;br /&gt;
*'''thePlayer:''' Which player to set the money of&lt;br /&gt;
*'''amount:''' A whole integer specifying the new amount of money the player will have&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns ''true'' if the money was added, or ''false'' if invalid parameters were passed.&lt;br /&gt;
&lt;br /&gt;
==Example==  &lt;br /&gt;
This example sets the player's money to the desired amount when he types &amp;quot;setcash&amp;quot; in console.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function setCash ( thePlayer, command, amount )       -- when the setcash function is called&lt;br /&gt;
    setPlayerMoney ( thePlayer, tonumber(amount) )    -- change player's money to the desired amount&lt;br /&gt;
end&lt;br /&gt;
addCommandHandler ( &amp;quot;setcash&amp;quot;, setCash )           -- add a command handler for setcash&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>Twig</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=SetPlayerMoney&amp;diff=15707</id>
		<title>SetPlayerMoney</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=SetPlayerMoney&amp;diff=15707"/>
		<updated>2008-02-06T16:18:12Z</updated>

		<summary type="html">&lt;p&gt;Twig: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__&lt;br /&gt;
{{Server function}}&lt;br /&gt;
{{Needs_Checking|The first time you set the money for a player it doesn't set the correct amount of money, for example setting it to $100000 gives $98755, this applies to givePlayerMoney as well --[[User:Norby89|Norby89]] 09:10, 5 August 2007 (CDT) }}&lt;br /&gt;
Sets a player's money to a certain value, regardless of current player money. It should be noted that setting negative values dose not work and in fact gives the player large amounts of money.&lt;br /&gt;
&lt;br /&gt;
==Syntax== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt; bool setPlayerMoney ( player thePlayer, int amount ) &amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
&lt;br /&gt;
===Required Arguments=== &lt;br /&gt;
*'''thePlayer:''' Which player to set the money of&lt;br /&gt;
*'''amount:''' A whole integer specifying the new amount of money the player will have&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns ''true'' if the money was added, or ''false'' if invalid parameters were passed.&lt;br /&gt;
&lt;br /&gt;
==Example==  &lt;br /&gt;
This example sets the player's money to the desired amount when he types &amp;quot;setcash&amp;quot; in console.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function setCash ( thePlayer, command, amount )       -- when the setcash function is called&lt;br /&gt;
    setPlayerMoney ( thePlayer, tonumber(amount) )    -- change player's money to the desired amount&lt;br /&gt;
end&lt;br /&gt;
addCommandHandler ( &amp;quot;setcash&amp;quot;, setCash )           -- add a command handler for setcash&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>Twig</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Template:Client_player_functions&amp;diff=15705</id>
		<title>Template:Client player functions</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Template:Client_player_functions&amp;diff=15705"/>
		<updated>2008-02-05T23:57:44Z</updated>

		<summary type="html">&lt;p&gt;Twig: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;* [[doesPlayerHaveJetPack]]&lt;br /&gt;
* [[isPlayerChoking]]&lt;br /&gt;
* [[isPlayerDead]]&lt;br /&gt;
* [[isPlayerDoingTask]]&lt;br /&gt;
* [[isPlayerDucked]]&lt;br /&gt;
* [[isPlayerInVehicle]]&lt;br /&gt;
* [[isPlayerMapForced]]&lt;br /&gt;
* [[isPlayerMapVisible]]&lt;br /&gt;
* [[isPlayerMuted]]&lt;br /&gt;
* [[isPlayerOnGround]]&lt;br /&gt;
* [[isPlayerUnderWater]]&lt;br /&gt;
* [[getLocalPlayer]]&lt;br /&gt;
* [[getPlayerAmmoInClip]]&lt;br /&gt;
* [[getPlayerArmor]]&lt;br /&gt;
* [[getPlayerName]]&lt;br /&gt;
* [[getPlayerOccupiedVehicle]]&lt;br /&gt;
* [[getPlayerPing]]&lt;br /&gt;
* [[getPlayerRotation]]&lt;br /&gt;
* [[getPlayerTarget]]&lt;br /&gt;
* [[getPlayerTargetStart]]&lt;br /&gt;
* [[getPlayerTargetEnd]]&lt;br /&gt;
* [[getPlayerTargetRange]]&lt;br /&gt;
* [[getPlayerTargetCollision]]&lt;br /&gt;
* [[getPlayerTeam]]&lt;br /&gt;
* [[getPlayerTotalAmmo]]&lt;br /&gt;
* [[getPlayerTask]]&lt;br /&gt;
* [[getPlayerSimplestTask]]&lt;br /&gt;
* [[getPlayerStat]]&lt;br /&gt;
* [[getPlayerUserName]]&lt;br /&gt;
* [[getPlayerWeaponSlot]]&lt;br /&gt;
* [[getPlayerWeapon]]&lt;br /&gt;
* [[getPlayerContactElement]]&lt;br /&gt;
* [[getPlayerNametagText]]&lt;br /&gt;
* [[getPlayerNametagColor]]&lt;br /&gt;
* [[canPlayerBeKnockedOffBike]]&lt;br /&gt;
* [[setPlayerWeaponSlot]]&lt;br /&gt;
* [[setPlayerSkin]]&lt;br /&gt;
* [[showPlayerHudComponent]]&lt;br /&gt;
* [[setPlayerRotation]]&lt;br /&gt;
* [[setPlayerCanBeKnockedOffBike]]&lt;/div&gt;</summary>
		<author><name>Twig</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Template:Player_functions&amp;diff=15704</id>
		<title>Template:Player functions</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Template:Player_functions&amp;diff=15704"/>
		<updated>2008-02-05T23:55:49Z</updated>

		<summary type="html">&lt;p&gt;Twig: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;* [[addPlayerClothes]]&lt;br /&gt;
&lt;br /&gt;
* [[canPlayerUseFunction]]&lt;br /&gt;
&lt;br /&gt;
* [[doesPlayerHaveJetPack]]&lt;br /&gt;
&lt;br /&gt;
* [[forcePlayerMap]]&lt;br /&gt;
&lt;br /&gt;
* [[getAlivePlayers]]&lt;br /&gt;
* [[getDeadPlayers]]&lt;br /&gt;
&lt;br /&gt;
* [[getPlayerAccount]]&lt;br /&gt;
* [[getPlayerAmmoInClip]]&lt;br /&gt;
* [[getPlayerArmor]]&lt;br /&gt;
* [[getPlayerClothes]]&lt;br /&gt;
* [[getPlayerCount]]&lt;br /&gt;
* [[getPlayerFromNick]]&lt;br /&gt;
* [[getPlayerMoney]]&lt;br /&gt;
* [[getPlayerNametagText]]&lt;br /&gt;
* [[getPlayerNametagColor]]&lt;br /&gt;
* [[getPlayerOccupiedVehicle]]&lt;br /&gt;
* [[getPlayerOccupiedVehicleSeat]]&lt;br /&gt;
* [[getPlayerPing]]&lt;br /&gt;
* [[getPlayerRotation]]&lt;br /&gt;
* [[getPlayerSkin]]&lt;br /&gt;
* [[getPlayerStat]]&lt;br /&gt;
* [[getPlayerTarget]]&lt;br /&gt;
* [[getPlayerTeam]]&lt;br /&gt;
* [[getPlayerTotalAmmo]]&lt;br /&gt;
* [[getPlayerUserName]]&lt;br /&gt;
* [[getPlayerWantedLevel]]&lt;br /&gt;
* [[getPlayerWeapon]]&lt;br /&gt;
* [[getPlayerWeaponSlot]]&lt;br /&gt;
* [[getRandomPlayer]]&lt;br /&gt;
&lt;br /&gt;
* [[givePlayerJetPack]]&lt;br /&gt;
* [[givePlayerMoney]]&lt;br /&gt;
&lt;br /&gt;
* [[isPlayerChoking]]&lt;br /&gt;
* [[isPlayerDead]]&lt;br /&gt;
* [[isPlayerDucked]]&lt;br /&gt;
* [[isPlayerInVehicle]]&lt;br /&gt;
* [[isPlayerInWater]]&lt;br /&gt;
* [[isPlayerMapForced]]&lt;br /&gt;
* [[isPlayerMuted]]&lt;br /&gt;
* [[isPlayerOnGround]]&lt;br /&gt;
* [[isPlayerNametagShowing]]&lt;br /&gt;
&lt;br /&gt;
* [[getPlayerFightingStyle]]&lt;br /&gt;
* [[getPlayerGravity]]&lt;br /&gt;
* [[getPlayerBlurLevel]]&lt;br /&gt;
* [[getPlayerContactElement]]&lt;br /&gt;
&lt;br /&gt;
* [[killPlayer]]&lt;br /&gt;
&lt;br /&gt;
* [[removePlayerClothes]]&lt;br /&gt;
* [[removePlayerFromVehicle]]&lt;br /&gt;
* [[removePlayerJetPack]]&lt;br /&gt;
&lt;br /&gt;
* [[setPlayerArmor]]&lt;br /&gt;
* [[setPlayerBlurLevel]]&lt;br /&gt;
* [[setPlayerChoking]]&lt;br /&gt;
* [[setPlayerFightingStyle]]&lt;br /&gt;
* [[setPlayerGravity]]&lt;br /&gt;
* [[setPlayerMoney]]&lt;br /&gt;
* [[setPlayerMuted]]&lt;br /&gt;
* [[setPlayerNametagText]]&lt;br /&gt;
* [[setPlayerNametagColor]]&lt;br /&gt;
* [[setPlayerNametagShowing]]&lt;br /&gt;
* [[setPlayerRotation]]&lt;br /&gt;
* [[setPlayerSkin]]&lt;br /&gt;
* [[setPlayerStat]]&lt;br /&gt;
* [[setPlayerWantedLevel]]&lt;br /&gt;
* [[setPlayerWeaponSlot]]&lt;br /&gt;
* [[setPlayerTeam]]&lt;br /&gt;
&lt;br /&gt;
* [[showPlayerHudComponent]]&lt;br /&gt;
* [[spawnPlayer]]&lt;br /&gt;
* [[takePlayerMoney]]&lt;br /&gt;
* [[warpPlayerIntoVehicle]]&lt;/div&gt;</summary>
		<author><name>Twig</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=GetPlayerUserName&amp;diff=15702</id>
		<title>GetPlayerUserName</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=GetPlayerUserName&amp;diff=15702"/>
		<updated>2008-02-05T21:13:41Z</updated>

		<summary type="html">&lt;p&gt;Twig: /* Example */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__&lt;br /&gt;
{{Server function}}&lt;br /&gt;
This function returns the community.mtasa.com (or mtabeta.com)-Account of the specified user.&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;&lt;br /&gt;
string getPlayerUserName ( player thePlayer )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
===Required Arguments=== &lt;br /&gt;
*'''thePlayer:''' The Player whose MTA account username you want to retrieve&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
A ''string'' value containing the MTA account username or ''false'' if no account exists for the player.&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 getPlayerUserName ()&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
===Returns===&lt;br /&gt;
A ''string'' value containing the local MTA accounts username or ''false'' if no account exists for the local player.&lt;br /&gt;
&amp;lt;/section&amp;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;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function outputMTAAccount ( sourcePlayer )&lt;br /&gt;
        -- if the command was triggered by an ingame player&lt;br /&gt;
        if ( sourcePlayer ) then&lt;br /&gt;
                local mtaaccount = getPlayerUserName( sourcePlayer )&lt;br /&gt;
                if( mtaaccount ) then&lt;br /&gt;
                        outputChatBox(&amp;quot;Your community.mtasa.com-Account is &amp;quot; .. mtaaccount, sourcePlayer )&lt;br /&gt;
                else&lt;br /&gt;
                        outputChatBox(&amp;quot;Can't find an account for you.&amp;quot;, sourcePlayer )&lt;br /&gt;
                end&lt;br /&gt;
        end&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
-- register outputMTAAccount as a handler for the mta-account command&lt;br /&gt;
addCommandHandler ( &amp;quot;mta-account&amp;quot;, outputMTAAccount )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
&amp;lt;/section&amp;gt;&lt;/div&gt;</summary>
		<author><name>Twig</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=GetPlayerUserName&amp;diff=15701</id>
		<title>GetPlayerUserName</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=GetPlayerUserName&amp;diff=15701"/>
		<updated>2008-02-05T21:12:44Z</updated>

		<summary type="html">&lt;p&gt;Twig: /* Syntax */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__&lt;br /&gt;
{{Server function}}&lt;br /&gt;
This function returns the community.mtasa.com (or mtabeta.com)-Account of the specified user.&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;&lt;br /&gt;
string getPlayerUserName ( player thePlayer )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
===Required Arguments=== &lt;br /&gt;
*'''thePlayer:''' The Player whose MTA account username you want to retrieve&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
A ''string'' value containing the MTA account username or ''false'' if no account exists for the player.&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 getPlayerUserName ()&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
===Returns===&lt;br /&gt;
A ''string'' value containing the local MTA accounts username or ''false'' if no account exists for the local player.&lt;br /&gt;
&amp;lt;/section&amp;gt;&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 outputMTAAccount ( sourcePlayer )&lt;br /&gt;
        -- if the command was triggered by an ingame player&lt;br /&gt;
        if ( sourcePlayer ) then&lt;br /&gt;
                local mtaaccount = getPlayerUserName( sourcePlayer )&lt;br /&gt;
                if( mtaaccount ) then&lt;br /&gt;
                        outputChatBox(&amp;quot;Your community.mtasa.com-Account is &amp;quot; .. mtaaccount, sourcePlayer )&lt;br /&gt;
                else&lt;br /&gt;
                        outputChatBox(&amp;quot;Can't find an account for you.&amp;quot;, sourcePlayer )&lt;br /&gt;
                end&lt;br /&gt;
        end&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
-- register outputMTAAccount as a handler for the mta-account command&lt;br /&gt;
addCommandHandler ( &amp;quot;mta-account&amp;quot;, outputMTAAccount )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;/div&gt;</summary>
		<author><name>Twig</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=GuiCreateStaticImage&amp;diff=15690</id>
		<title>GuiCreateStaticImage</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=GuiCreateStaticImage&amp;diff=15690"/>
		<updated>2008-02-03T16:57:27Z</updated>

		<summary type="html">&lt;p&gt;Twig: Undo revision 15689 by Twig (Talk)&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__ &lt;br /&gt;
{{Client function}}&lt;br /&gt;
This function creates a static image.&lt;br /&gt;
&lt;br /&gt;
==Syntax== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
element guiCreateStaticImage ( float x, float y, float width, float height, string filename, bool relative, element parent, [resource sourceResource = getThisResource()] )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
&lt;br /&gt;
===Required Arguments=== &lt;br /&gt;
*'''x:''' A float of the 2D x position of the image on a player's screen. This is affected by the ''relative'' argument.&lt;br /&gt;
*'''y:''' A float of the 2D y position of the image on a player's screen. This is affected by the ''relative'' argument.&lt;br /&gt;
*'''width:''' A float of the width of the image. This is affected by the ''relative'' argument.&lt;br /&gt;
*'''height:''' A float of the height of the image. This is affected by the ''relative'' argument.&lt;br /&gt;
*'''filename:''' The location of the image file that is being loaded. This should be the same as an image file specified in meta.xml file.&lt;br /&gt;
*'''relative:''' This is whether sizes and positioning are relative. If this is ''true'', then all x,y,width,height floats must be between 0 and 1, representing measures relative to the parent.&lt;br /&gt;
*'''parent:''' This is the parent that the image is attached to. The ''relative'' argument must be true to use this. Sizes and positioning will be made relative to this parent. If ''nil'' parent is passed, the parent will become the screen - causing positioning and sizing according to screen positioning.&lt;br /&gt;
&lt;br /&gt;
===Optional Arguments=== &lt;br /&gt;
{{OptionalArg}} &lt;br /&gt;
*'''sourceResource:''' The resource to load the image from. Defaults to the resource that the script is running from.&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns [[element]] if image was created successfully, ''false'' otherwise.&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
This example will display an image (imagename.png) on the client's (player's) screen.&lt;br /&gt;
&amp;lt;section name=&amp;quot;Client-side script (example.lua)&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;
[lua]&lt;br /&gt;
function showClientImage()&lt;br /&gt;
   guiCreateStaticImage( 20, 200, 100, 100, &amp;quot;imagename.png&amp;quot;, false )&lt;br /&gt;
end&lt;br /&gt;
addEventHandler( &amp;quot;onClientResourceStart&amp;quot;, getResourceRootElement( getThisResource() ), showClientImage )&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;meta.xml&amp;quot; class=&amp;quot;server&amp;quot; show=&amp;quot;true&amp;quot;&amp;gt;&lt;br /&gt;
In this example meta.xml is used to tell the server which files it will be using.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
   &amp;lt;info author=&amp;quot;Yourname&amp;quot; version=&amp;quot;1.0&amp;quot; /&amp;gt;&lt;br /&gt;
   &amp;lt;script src=&amp;quot;example.lua&amp;quot; type=&amp;quot;client&amp;quot; /&amp;gt;&lt;br /&gt;
   &amp;lt;file src=&amp;quot;imagename.png&amp;quot; /&amp;gt;&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;
{{GUI_functions}}&lt;br /&gt;
[[Category:Incomplete]]&lt;/div&gt;</summary>
		<author><name>Twig</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=GuiCreateStaticImage&amp;diff=15689</id>
		<title>GuiCreateStaticImage</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=GuiCreateStaticImage&amp;diff=15689"/>
		<updated>2008-02-03T16:54:22Z</updated>

		<summary type="html">&lt;p&gt;Twig: /* Required Arguments */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__ &lt;br /&gt;
{{Client function}}&lt;br /&gt;
This function creates a static image.&lt;br /&gt;
&lt;br /&gt;
==Syntax== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
element guiCreateStaticImage ( float x, float y, float width, float height, string filename, bool relative, element parent, [resource sourceResource = getThisResource()] )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
&lt;br /&gt;
===Required Arguments=== &lt;br /&gt;
*'''x:''' X position of the image on the player's screen. This is affected by the ''relative'' argument.&lt;br /&gt;
*'''y:''' Y position of the image on the player's screen. This is affected by the ''relative'' argument.&lt;br /&gt;
*'''width:''' Width of the image. This is affected by the ''relative'' argument.&lt;br /&gt;
*'''height:''' Height of the image. This is affected by the ''relative'' argument.&lt;br /&gt;
*'''filename:''' The location of the image file that is being loaded. This should be the same as an image file specified in meta.xml file.&lt;br /&gt;
*'''relative:''' This is whether sizes and positioning are relative. If this is ''true'', then all x,y,width,height values must be between 0 and 1, representing measures relative to the parent.&lt;br /&gt;
*'''parent:''' This is the parent that the image is attached to and therefore the child of. The ''relative'' argument must be true to use this. Sizes and positioning will be made relative to the parent. If ''nil'' parent is passed, the parent will become the screen - causing positioning and sizing according to screen positioning.&lt;br /&gt;
&lt;br /&gt;
===Optional Arguments=== &lt;br /&gt;
{{OptionalArg}} &lt;br /&gt;
*'''sourceResource:''' The resource to load the image from. Defaults to the resource that the script is running from.&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns [[element]] if image was created successfully, ''false'' otherwise.&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
This example will display an image (imagename.png) on the client's (player's) screen.&lt;br /&gt;
&amp;lt;section name=&amp;quot;Client-side script (example.lua)&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;
[lua]&lt;br /&gt;
function showClientImage()&lt;br /&gt;
   guiCreateStaticImage( 20, 200, 100, 100, &amp;quot;imagename.png&amp;quot;, false )&lt;br /&gt;
end&lt;br /&gt;
addEventHandler( &amp;quot;onClientResourceStart&amp;quot;, getResourceRootElement( getThisResource() ), showClientImage )&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;meta.xml&amp;quot; class=&amp;quot;server&amp;quot; show=&amp;quot;true&amp;quot;&amp;gt;&lt;br /&gt;
In this example meta.xml is used to tell the server which files it will be using.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
   &amp;lt;info author=&amp;quot;Yourname&amp;quot; version=&amp;quot;1.0&amp;quot; /&amp;gt;&lt;br /&gt;
   &amp;lt;script src=&amp;quot;example.lua&amp;quot; type=&amp;quot;client&amp;quot; /&amp;gt;&lt;br /&gt;
   &amp;lt;file src=&amp;quot;imagename.png&amp;quot; /&amp;gt;&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;
{{GUI_functions}}&lt;br /&gt;
[[Category:Incomplete]]&lt;/div&gt;</summary>
		<author><name>Twig</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=GuiCreateStaticImage&amp;diff=15688</id>
		<title>GuiCreateStaticImage</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=GuiCreateStaticImage&amp;diff=15688"/>
		<updated>2008-02-03T16:51:47Z</updated>

		<summary type="html">&lt;p&gt;Twig: /* Required Arguments */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__ &lt;br /&gt;
{{Client function}}&lt;br /&gt;
This function creates a static image.&lt;br /&gt;
&lt;br /&gt;
==Syntax== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
element guiCreateStaticImage ( float x, float y, float width, float height, string filename, bool relative, element parent, [resource sourceResource = getThisResource()] )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
&lt;br /&gt;
===Required Arguments=== &lt;br /&gt;
*'''x:''' A float of the 2D x position of the image on a player's screen. This is affected by the ''relative'' argument.&lt;br /&gt;
*'''y:''' A float of the 2D y position of the image on a player's screen. This is affected by the ''relative'' argument.&lt;br /&gt;
*'''width:''' A float of the width of the image. This is affected by the ''relative'' argument.&lt;br /&gt;
*'''height:''' A float of the height of the image. This is affected by the ''relative'' argument.&lt;br /&gt;
*'''filename:''' The location of the image file that is being loaded. This should be the same as an image file specified in meta.xml file.&lt;br /&gt;
*'''relative:''' This is whether sizes and positioning are relative. If this is ''true'', then all x,y,width,height floats must be between 0 and 1, representing measures relative to the parent.&lt;br /&gt;
*'''parent:''' This is the parent that the image is attached to. The ''relative'' argument must be true to use this. Sizes and positioning will be made relative to this parent. If ''nil'' parent is passed, the parent will become the screen - causing positioning and sizing according to screen positioning.&lt;br /&gt;
&lt;br /&gt;
===Optional Arguments=== &lt;br /&gt;
{{OptionalArg}} &lt;br /&gt;
*'''sourceResource:''' The resource to load the image from. Defaults to the resource that the script is running from.&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns [[element]] if image was created successfully, ''false'' otherwise.&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
This example will display an image (imagename.png) on the client's (player's) screen.&lt;br /&gt;
&amp;lt;section name=&amp;quot;Client-side script (example.lua)&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;
[lua]&lt;br /&gt;
function showClientImage()&lt;br /&gt;
   guiCreateStaticImage( 20, 200, 100, 100, &amp;quot;imagename.png&amp;quot;, false )&lt;br /&gt;
end&lt;br /&gt;
addEventHandler( &amp;quot;onClientResourceStart&amp;quot;, getResourceRootElement( getThisResource() ), showClientImage )&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;meta.xml&amp;quot; class=&amp;quot;server&amp;quot; show=&amp;quot;true&amp;quot;&amp;gt;&lt;br /&gt;
In this example meta.xml is used to tell the server which files it will be using.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
   &amp;lt;info author=&amp;quot;Yourname&amp;quot; version=&amp;quot;1.0&amp;quot; /&amp;gt;&lt;br /&gt;
   &amp;lt;script src=&amp;quot;example.lua&amp;quot; type=&amp;quot;client&amp;quot; /&amp;gt;&lt;br /&gt;
   &amp;lt;file src=&amp;quot;imagename.png&amp;quot; /&amp;gt;&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;
{{GUI_functions}}&lt;br /&gt;
[[Category:Incomplete]]&lt;/div&gt;</summary>
		<author><name>Twig</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Talk:ExecuteSQLQuery&amp;diff=15606</id>
		<title>Talk:ExecuteSQLQuery</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Talk:ExecuteSQLQuery&amp;diff=15606"/>
		<updated>2008-01-28T12:27:24Z</updated>

		<summary type="html">&lt;p&gt;Twig: New page: --~~~~  This function seems not to work in any way as it should. Things that should work in SQLite such as &amp;quot;SELECT name FROM sqlite_master&amp;quot; which should return all table names from a datab...&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;--[[User:Twig|Twig]] 06:27, 28 January 2008 (CST)&lt;br /&gt;
&lt;br /&gt;
This function seems not to work in any way as it should. Things that should work in SQLite such as &amp;quot;SELECT name FROM sqlite_master&amp;quot; which should return all table names from a database return nothing at all. Could a developer please check up on this as it restricts the flexibility of SQLite.&lt;/div&gt;</summary>
		<author><name>Twig</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=SetVehiclePanelState&amp;diff=15438</id>
		<title>SetVehiclePanelState</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=SetVehiclePanelState&amp;diff=15438"/>
		<updated>2008-01-26T17:25:12Z</updated>

		<summary type="html">&lt;p&gt;Twig: /* Example */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__&lt;br /&gt;
{{Server client function}}&lt;br /&gt;
&lt;br /&gt;
This function allows you to change the state of one of the six panels vehicle's can have. When executed on the server-side resources, the damage will be synched for all players, whereas the change is only client-side if the function is used in a client resource. &lt;br /&gt;
&lt;br /&gt;
==Syntax==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;bool setVehiclePanelState ( vehicle theVehicle, int panelID, int state )&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Required Arguments==&lt;br /&gt;
*'''theVehicle:''' The [[vehicle]] you would like to modify the panel of.&lt;br /&gt;
*'''panelID:''' 0-6&lt;br /&gt;
&lt;br /&gt;
*'''Cars (0-3):'''&lt;br /&gt;
**'''6:''' Rear Bumper&lt;br /&gt;
**'''5:''' Front Bumper&lt;br /&gt;
**'''4:''' Windscreen&lt;br /&gt;
**'''3:''' Unknown&lt;br /&gt;
**'''2:''' Unknown&lt;br /&gt;
**'''1:''' Unknown&lt;br /&gt;
**'''0:''' Unknown&lt;br /&gt;
&lt;br /&gt;
*'''Planes (0-3):'''&lt;br /&gt;
**'''6:''' Unknown&lt;br /&gt;
**'''5:''' Unknown&lt;br /&gt;
**'''4:''' Ailerons&lt;br /&gt;
**'''3:''' Elevators&lt;br /&gt;
**'''2:''' Rudder&lt;br /&gt;
**'''1:''' Unknown&lt;br /&gt;
**'''0:''' Engine Smoke&lt;br /&gt;
&lt;br /&gt;
''NOTE:'' Settings are not applicable for all vehicles of these types, for instance panel 0 effects a Dodo, but does nothing to a hydra.&lt;br /&gt;
&lt;br /&gt;
*'''state:''' 0-3 (seems ineffective out of this range, check though)&lt;br /&gt;
&lt;br /&gt;
==Returns==&lt;br /&gt;
Returns ''true'' if the panel state has been updated, ''false'' otherwise&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
&amp;lt;section name=&amp;quot;Example 1: 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;
-- create a new vehicle&lt;br /&gt;
local newcar = createVehicle ( 520, 1024, 1024, 1024 )&lt;br /&gt;
-- break the front bumper off&lt;br /&gt;
setVehiclePanelState ( newcar, 5, 3 )&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;
{{Vehicle functions}}&lt;/div&gt;</summary>
		<author><name>Twig</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=User:Twig&amp;diff=15301</id>
		<title>User:Twig</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=User:Twig&amp;diff=15301"/>
		<updated>2008-01-25T23:29:13Z</updated>

		<summary type="html">&lt;p&gt;Twig: New page: == Twig ==   Member and leader of VCES and SAES currently working on an RPG style script for our server. Previous member of QA with experience in C++, PHP, Javascript, xHTML, VB, MySQL and...&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Twig ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Member and leader of VCES and SAES currently working on an RPG style script for our server. Previous member of QA with experience in C++, PHP, Javascript, xHTML, VB, MySQL and lots of other stuff that comes in useful.&lt;br /&gt;
&lt;br /&gt;
Currently studying in my final year for a BSc degree in Acoustics in the UK.&lt;/div&gt;</summary>
		<author><name>Twig</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=User_talk:Twig&amp;diff=15300</id>
		<title>User talk:Twig</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=User_talk:Twig&amp;diff=15300"/>
		<updated>2008-01-25T23:29:04Z</updated>

		<summary type="html">&lt;p&gt;Twig: /* Twig */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Twig</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=SetVehiclePanelState&amp;diff=15299</id>
		<title>SetVehiclePanelState</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=SetVehiclePanelState&amp;diff=15299"/>
		<updated>2008-01-25T22:56:39Z</updated>

		<summary type="html">&lt;p&gt;Twig: /* Required Arguments */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__&lt;br /&gt;
{{Server client function}}&lt;br /&gt;
&lt;br /&gt;
This function allows you to change the state of one of the six panels vehicle's can have. When executed on the server-side resources, the damage will be synched for all players, whereas the change is only client-side if the function is used in a client resource. &lt;br /&gt;
&lt;br /&gt;
==Syntax==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;bool setVehiclePanelState ( vehicle theVehicle, int panelID, int state )&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Required Arguments==&lt;br /&gt;
*'''theVehicle:''' The [[vehicle]] you would like to modify the panel of.&lt;br /&gt;
*'''panelID:''' 0-6&lt;br /&gt;
&lt;br /&gt;
*'''Cars (0-3):'''&lt;br /&gt;
**'''6:''' Rear Bumper&lt;br /&gt;
**'''5:''' Front Bumper&lt;br /&gt;
**'''4:''' Windscreen&lt;br /&gt;
**'''3:''' Unknown&lt;br /&gt;
**'''2:''' Unknown&lt;br /&gt;
**'''1:''' Unknown&lt;br /&gt;
**'''0:''' Unknown&lt;br /&gt;
&lt;br /&gt;
*'''Planes (0-3):'''&lt;br /&gt;
**'''6:''' Unknown&lt;br /&gt;
**'''5:''' Unknown&lt;br /&gt;
**'''4:''' Ailerons&lt;br /&gt;
**'''3:''' Elevators&lt;br /&gt;
**'''2:''' Rudder&lt;br /&gt;
**'''1:''' Unknown&lt;br /&gt;
**'''0:''' Engine Smoke&lt;br /&gt;
&lt;br /&gt;
''NOTE:'' Settings are not applicable for all vehicles of these types, for instance panel 0 effects a Dodo, but does nothing to a hydra.&lt;br /&gt;
&lt;br /&gt;
*'''state:''' 0-3 (seems ineffective out of this range, check though)&lt;br /&gt;
&lt;br /&gt;
==Returns==&lt;br /&gt;
Returns ''true'' if the panel state has been updated, ''false'' otherwise&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
&amp;lt;section name=&amp;quot;Example 1: 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;
-- create a new vehicle&lt;br /&gt;
local newcar = createVehicle ( 520, 1024, 1024, 1024 )&lt;br /&gt;
-- break the front bumper off&lt;br /&gt;
setVehiclePanelState ( newcar, 5, 4 )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;/section&amp;gt;&lt;br /&gt;
==See Also==&lt;br /&gt;
{{Vehicle functions}}&lt;/div&gt;</summary>
		<author><name>Twig</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=SetVehiclePanelState&amp;diff=15298</id>
		<title>SetVehiclePanelState</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=SetVehiclePanelState&amp;diff=15298"/>
		<updated>2008-01-25T22:51:45Z</updated>

		<summary type="html">&lt;p&gt;Twig: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__&lt;br /&gt;
{{Server client function}}&lt;br /&gt;
&lt;br /&gt;
This function allows you to change the state of one of the six panels vehicle's can have. When executed on the server-side resources, the damage will be synched for all players, whereas the change is only client-side if the function is used in a client resource. &lt;br /&gt;
&lt;br /&gt;
==Syntax==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;bool setVehiclePanelState ( vehicle theVehicle, int panelID, int state )&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Required Arguments==&lt;br /&gt;
*'''theVehicle:''' The [[vehicle]] you would like to modify the panel of.&lt;br /&gt;
*'''panelID:''' 0-6&lt;br /&gt;
&lt;br /&gt;
*'''Cars (0-3):'''&lt;br /&gt;
**'''6:''' Rear Bumper&lt;br /&gt;
**'''5:''' Front Bumper&lt;br /&gt;
**'''4:''' Windscreen&lt;br /&gt;
**'''3:''' Unknown&lt;br /&gt;
**'''2:''' Unknown&lt;br /&gt;
**'''1:''' Unknown&lt;br /&gt;
**'''0:''' Unknown&lt;br /&gt;
&lt;br /&gt;
*'''Planes (0-3):'''&lt;br /&gt;
**'''6:''' Unknown&lt;br /&gt;
**'''5:''' Unknown&lt;br /&gt;
**'''4:''' Ailerons&lt;br /&gt;
**'''3:''' Elevators&lt;br /&gt;
**'''2:''' Rudder&lt;br /&gt;
**'''1:''' Unknown&lt;br /&gt;
**'''0:''' Engine Smoke&lt;br /&gt;
&lt;br /&gt;
''NOTE:'' Settings are not applicable for all vehicles of these types, for instance panel 0 effects a Dodo, but does nothing to a hydra.&lt;br /&gt;
&lt;br /&gt;
*'''state:''' 0-255 (check what range is effective, it may be much smaller e.g. 0-3)&lt;br /&gt;
&lt;br /&gt;
==Returns==&lt;br /&gt;
Returns ''true'' if the panel state has been updated, ''false'' otherwise&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
&amp;lt;section name=&amp;quot;Example 1: 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;
-- create a new vehicle&lt;br /&gt;
local newcar = createVehicle ( 520, 1024, 1024, 1024 )&lt;br /&gt;
-- break the front bumper off&lt;br /&gt;
setVehiclePanelState ( newcar, 5, 4 )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;/section&amp;gt;&lt;br /&gt;
==See Also==&lt;br /&gt;
{{Vehicle functions}}&lt;/div&gt;</summary>
		<author><name>Twig</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=SetVehiclePanelState&amp;diff=15297</id>
		<title>SetVehiclePanelState</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=SetVehiclePanelState&amp;diff=15297"/>
		<updated>2008-01-25T22:47:23Z</updated>

		<summary type="html">&lt;p&gt;Twig: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__&lt;br /&gt;
{{Server client function}}&lt;br /&gt;
&lt;br /&gt;
This function allows you to change the state of one of the six panels vehicle's can have. When executed on the server-side resources, the damage will be synched for all players, whereas the change is only client-side if the function is used in a client resource. &lt;br /&gt;
&lt;br /&gt;
==Syntax==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;bool setVehiclePanelState ( vehicle theVehicle, int panelID, int state )&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Required Arguments==&lt;br /&gt;
*'''theVehicle:''' The [[vehicle]] you would like to modify the panel of.&lt;br /&gt;
*'''panelID:''' 0-6&lt;br /&gt;
&lt;br /&gt;
*'''Cars (0-3):'''&lt;br /&gt;
**'''6:''' Rear Bumper&lt;br /&gt;
**'''5:''' Front Bumper&lt;br /&gt;
**'''4:''' Windscreen&lt;br /&gt;
**'''3:''' Unknown&lt;br /&gt;
**'''2:''' Unknown&lt;br /&gt;
**'''1:''' Unknown&lt;br /&gt;
**'''0:''' Unknown&lt;br /&gt;
&lt;br /&gt;
*'''Planes (0-3):'''&lt;br /&gt;
**'''6:''' Unknown&lt;br /&gt;
**'''5:''' Unknown&lt;br /&gt;
**'''4:''' Ailerons&lt;br /&gt;
**'''3:''' Elevators&lt;br /&gt;
**'''2:''' Rudder&lt;br /&gt;
**'''1:''' Unknown&lt;br /&gt;
**'''0:''' Engine Smoke&lt;br /&gt;
&lt;br /&gt;
*'''state:''' 0-255 (check what range is effective, it may be much smaller e.g. 0-3)&lt;br /&gt;
&lt;br /&gt;
==Returns==&lt;br /&gt;
Returns ''true'' if the panel state has been updated, ''false'' otherwise&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
&amp;lt;section name=&amp;quot;Example 1: 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;
-- create a new vehicle&lt;br /&gt;
local newcar = createVehicle ( 520, 1024, 1024, 1024 )&lt;br /&gt;
-- break the front bumper off&lt;br /&gt;
setVehiclePanelState ( newcar, 5, 4 )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;/section&amp;gt;&lt;br /&gt;
==See Also==&lt;br /&gt;
{{Vehicle functions}}&lt;/div&gt;</summary>
		<author><name>Twig</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=User_talk:Twig&amp;diff=15296</id>
		<title>User talk:Twig</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=User_talk:Twig&amp;diff=15296"/>
		<updated>2008-01-25T22:34:53Z</updated>

		<summary type="html">&lt;p&gt;Twig: New page:  == Twig ==   Member and leader of VCES and SAES currently working on an RPG style script for our server. Previous member of QA with experience in C++, PHP, Javascript, xHTML, VB, MySQL an...&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
== Twig ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Member and leader of VCES and SAES currently working on an RPG style script for our server. Previous member of QA with experience in C++, PHP, Javascript, xHTML, VB, MySQL and lots of other stuff that comes in useful.&lt;br /&gt;
&lt;br /&gt;
Currently studying in my final year for a BSc degree in Acoustics in the UK.&lt;/div&gt;</summary>
		<author><name>Twig</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=SetVehiclePanelState&amp;diff=15295</id>
		<title>SetVehiclePanelState</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=SetVehiclePanelState&amp;diff=15295"/>
		<updated>2008-01-25T22:28:46Z</updated>

		<summary type="html">&lt;p&gt;Twig: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__&lt;br /&gt;
{{Server client function}}&lt;br /&gt;
&lt;br /&gt;
This function allows you to change the state of one of the six panels vehicle's can have. When executed on the server-side resources, the damage will be synched for all players, whereas the change is only client-side if the function is used in a client resource. &lt;br /&gt;
&lt;br /&gt;
==Syntax==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;bool setVehiclePanelState ( vehicle theVehicle, int panelID, int state )&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Required Arguments==&lt;br /&gt;
*'''theVehicle:''' The [[vehicle]] you would like to modify the panel of.&lt;br /&gt;
*'''panelID:''' 0-6&lt;br /&gt;
**'''6:''' Rear Bumper (0-3)&lt;br /&gt;
**'''5:''' Front Bumper (0-3)&lt;br /&gt;
**'''4:''' Windscreen (0-3)&lt;br /&gt;
**'''3:''' Unknown&lt;br /&gt;
**'''2:''' Unknown&lt;br /&gt;
**'''1:''' Unknown&lt;br /&gt;
**'''0:''' Unknown&lt;br /&gt;
*'''state:''' 0-255 (check what range is effective, it may be much smaller e.g. 0-3)&lt;br /&gt;
&lt;br /&gt;
==Returns==&lt;br /&gt;
Returns ''true'' if the panel state has been updated, ''false'' otherwise&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
&amp;lt;section name=&amp;quot;Example 1: 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;
-- create a new vehicle&lt;br /&gt;
local newcar = createVehicle ( 520, 1024, 1024, 1024 )&lt;br /&gt;
-- break the front bumper off&lt;br /&gt;
setVehiclePanelState ( newcar, 5, 4 )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;/section&amp;gt;&lt;br /&gt;
==See Also==&lt;br /&gt;
{{Vehicle functions}}&lt;/div&gt;</summary>
		<author><name>Twig</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=SetVehiclePanelState&amp;diff=15294</id>
		<title>SetVehiclePanelState</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=SetVehiclePanelState&amp;diff=15294"/>
		<updated>2008-01-25T22:27:34Z</updated>

		<summary type="html">&lt;p&gt;Twig: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__&lt;br /&gt;
{{Server client function}}&lt;br /&gt;
&lt;br /&gt;
This function allows you to change the state of one of the six panels vehicle's can have. When executed on the server-side resources, the damage will be synched for all players, whereas the change is only client-side if the function is used in a client resource. &lt;br /&gt;
&lt;br /&gt;
==Syntax==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;bool setVehiclePanelState ( vehicle theVehicle, int panelID, int state )&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Required Arguments==&lt;br /&gt;
*'''theVehicle:''' The [[vehicle]] you would like to modify the panel of.&lt;br /&gt;
*'''panelID:''' 0-6&lt;br /&gt;
**'''6:''' Rear Bumper (0-3)&lt;br /&gt;
**'''5:''' Front Bumper (0-3)&lt;br /&gt;
**'''4:''' Windscreen (0-3)&lt;br /&gt;
**'''3:''' Unknown&lt;br /&gt;
**'''2:''' Unknown&lt;br /&gt;
**'''1:''' Unknown&lt;br /&gt;
**'''0:''' Unknown&lt;br /&gt;
*'''state:''' 0-255 (check what range is effective, it may be much smaller e.g. 0-3)&lt;br /&gt;
&lt;br /&gt;
==Returns==&lt;br /&gt;
Returns ''true'' if the panel state has been updated, ''false'' otherwise&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
&amp;lt;section name=&amp;quot;Server and Client&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;
-- create a new vehicle&lt;br /&gt;
local newcar = createVehicle ( 520, 1024, 1024, 1024 )&lt;br /&gt;
-- break the front bumper off&lt;br /&gt;
setVehiclePanelState ( newcar, 5, 4 )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;/section&amp;gt;&lt;br /&gt;
==See Also==&lt;br /&gt;
{{Vehicle functions}}&lt;/div&gt;</summary>
		<author><name>Twig</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=SetVehiclePanelState&amp;diff=15293</id>
		<title>SetVehiclePanelState</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=SetVehiclePanelState&amp;diff=15293"/>
		<updated>2008-01-25T22:24:07Z</updated>

		<summary type="html">&lt;p&gt;Twig: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__&lt;br /&gt;
{{Server client function}}&lt;br /&gt;
&lt;br /&gt;
This function allows you to change the state of one of the six panels vehicle's can have. When executed on the server-side resources, the damage will be synched for all players, whereas the change is only client-side if the function is used in a client resource. &lt;br /&gt;
&lt;br /&gt;
==Syntax==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;bool setVehiclePanelState ( vehicle theVehicle, int panelID, int state )&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Required Arguments==&lt;br /&gt;
*'''theVehicle:''' The [[vehicle]] you would like to modify the panel of.&lt;br /&gt;
*'''panelID:''' 0-6&lt;br /&gt;
**'''6:''' Rear Bumper (0-3)&lt;br /&gt;
**'''5:''' Front Bumper (0-3)&lt;br /&gt;
**'''4:''' Windscreen (0-3)&lt;br /&gt;
**'''3:''' Unknown&lt;br /&gt;
**'''2:''' Unknown&lt;br /&gt;
**'''1:''' Unknown&lt;br /&gt;
**'''0:''' Unknown&lt;br /&gt;
*'''state:''' 0-255 (check what range is effective, it may be much smaller e.g. 0-3)&lt;br /&gt;
&lt;br /&gt;
==Returns==&lt;br /&gt;
Returns ''true'' if the panel state has been updated, ''false'' otherwise&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{Vehicle functions}}&lt;/div&gt;</summary>
		<author><name>Twig</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=SetVehiclePanelState&amp;diff=15292</id>
		<title>SetVehiclePanelState</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=SetVehiclePanelState&amp;diff=15292"/>
		<updated>2008-01-25T22:23:48Z</updated>

		<summary type="html">&lt;p&gt;Twig: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__&lt;br /&gt;
{{Server client function}}&lt;br /&gt;
&lt;br /&gt;
This function allows you to change the state of one of the six panels vehicle's can have. When executed on the server-side resources, the damage will be synched for all players, whereas the change is only client-side if the function is used in a client resource. &lt;br /&gt;
&lt;br /&gt;
==Syntax==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;bool setVehiclePanelState ( vehicle theVehicle, int panelID, int state )&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Required Arguments==&lt;br /&gt;
*'''theVehicle:''' The [[vehicle]] you would like to modify the panel of.&lt;br /&gt;
*'''panelID:''' 0-6&lt;br /&gt;
**'''6:''' Rear Bumper (0-3)&lt;br /&gt;
**'''5:''' Front Bumper (0-3)&lt;br /&gt;
**'''4:''' Windscreen (0-3)&lt;br /&gt;
**'''3:''' Unknown&lt;br /&gt;
**'''2:''' Unknown&lt;br /&gt;
**'''1:''' Unknown&lt;br /&gt;
**'''1:''' Unknown&lt;br /&gt;
*'''state:''' 0-255 (check what range is effective, it may be much smaller e.g. 0-3)&lt;br /&gt;
&lt;br /&gt;
==Returns==&lt;br /&gt;
Returns ''true'' if the panel state has been updated, ''false'' otherwise&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{Vehicle functions}}&lt;/div&gt;</summary>
		<author><name>Twig</name></author>
	</entry>
</feed>