<?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=Gamesnert</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=Gamesnert"/>
	<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/wiki/Special:Contributions/Gamesnert"/>
	<updated>2026-04-06T20:44:11Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.39.3</generator>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=OnClientDoubleClick&amp;diff=24324</id>
		<title>OnClientDoubleClick</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=OnClientDoubleClick&amp;diff=24324"/>
		<updated>2010-08-09T20:21:22Z</updated>

		<summary type="html">&lt;p&gt;Gamesnert: Created page with '{{Client event}} __NOTOC__  This event triggers whenever the user double-clicks his mouse.  This is linked to the GTA world, as appose to GUI for which onClientGUIDoubleClick…'&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Client event}}&lt;br /&gt;
__NOTOC__ &lt;br /&gt;
This event triggers whenever the user double-clicks his mouse.  This is linked to the GTA world, as appose to GUI for which [[onClientGUIDoubleClick]] is to be used.  This event allows detection of click positions of the 3D world.&lt;br /&gt;
&lt;br /&gt;
==Parameters==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;string button, int absoluteX, int absoluteY, float worldX, float worldY, float worldZ, element clickedWorld&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
* '''button''':  This refers the button used to click on the mouse, can be ''left'', ''right'', or ''middle'&lt;br /&gt;
* '''absoluteX''': This refers to the 2D ''x coordinate'' the user clicked on his screen, and is an ''absolute'' position in pixels.&lt;br /&gt;
* '''absoluteY''': This refers to the 2D ''y coordinate'' the user clicked on his screen, and is an ''absolute'' position in pixels.&lt;br /&gt;
* '''worldX''': This represents the 3D ''x coordinate'' the player clicked on the screen, and is relative to the GTA world.&lt;br /&gt;
* '''worldY''': This represents the 3D ''y coordinate'' the player clicked on the screen, and is relative to the GTA world.&lt;br /&gt;
* '''worldZ''': This represents the 3D ''z coordinate'' the player clicked on the screen, and is relative to the GTA world.&lt;br /&gt;
* '''clickedWorld''': This represents any physical [[entity]] elements that were clicked. If the player clicked on no MTA element, it's set to false.&lt;br /&gt;
&lt;br /&gt;
==Source==&lt;br /&gt;
The [[event system#Event source|source]] of this event is the client's [[root element]].&lt;br /&gt;
&lt;br /&gt;
==Example== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
--TODO&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
===GUI events===&lt;br /&gt;
{{GUI_events}}&lt;br /&gt;
===Client event functions===&lt;br /&gt;
{{Client_event_functions}}&lt;br /&gt;
&lt;br /&gt;
[[Category:Needs_Example]]&lt;/div&gt;</summary>
		<author><name>Gamesnert</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=GetValidPedModels&amp;diff=24321</id>
		<title>GetValidPedModels</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=GetValidPedModels&amp;diff=24321"/>
		<updated>2010-08-09T20:13:14Z</updated>

		<summary type="html">&lt;p&gt;Gamesnert: Created page with '{{Server client function}} __NOTOC__ This function returns all valid ped models.  ==Syntax== &amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt; table getValidPedModels ( ) &amp;lt;/syntaxhighlight&amp;gt;  ===Returns=== Returns a table …'&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Server client function}}&lt;br /&gt;
__NOTOC__&lt;br /&gt;
This function returns all valid ped models.&lt;br /&gt;
&lt;br /&gt;
==Syntax==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
table getValidPedModels ( )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns a [[table]] with all valid ped models.&lt;br /&gt;
&lt;br /&gt;
==Example==&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;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{Ped functions}}&lt;br /&gt;
[[Category:Needs_Example]]&lt;/div&gt;</summary>
		<author><name>Gamesnert</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=GetPedMoveState&amp;diff=24320</id>
		<title>GetPedMoveState</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=GetPedMoveState&amp;diff=24320"/>
		<updated>2010-08-09T20:09:51Z</updated>

		<summary type="html">&lt;p&gt;Gamesnert: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Client function}}&lt;br /&gt;
__NOTOC__&lt;br /&gt;
This function returns the current move state for the specified [[ped]].&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 getPedMoveState ( ped thePed )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Required Arguments===&lt;br /&gt;
*'''thePed:''' The [[ped]] whose move state you want to know&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns a [[string]] indicating the ped's move state, or ''false'' if the ped is not streamed in, the movement type is unknown, the ped is in a vehicle or the ped is invalid.&lt;br /&gt;
&lt;br /&gt;
{{Ped move states}}&lt;br /&gt;
&lt;br /&gt;
==Example==&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;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{Ped functions}}&lt;br /&gt;
[[Category:Needs_Example]]&lt;/div&gt;</summary>
		<author><name>Gamesnert</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=GetPedMoveState&amp;diff=24319</id>
		<title>GetPedMoveState</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=GetPedMoveState&amp;diff=24319"/>
		<updated>2010-08-09T20:09:39Z</updated>

		<summary type="html">&lt;p&gt;Gamesnert: Created page with '{{Server function}} __NOTOC__ This function returns the current move state for the specified ped.  ==Syntax== &amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt; string getPedMoveState ( ped thePed ) &amp;lt;/syntaxhighlight&amp;gt;  ===…'&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Server function}}&lt;br /&gt;
__NOTOC__&lt;br /&gt;
This function returns the current move state for the specified [[ped]].&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 getPedMoveState ( ped thePed )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Required Arguments===&lt;br /&gt;
*'''thePed:''' The [[ped]] whose move state you want to know&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns a [[string]] indicating the ped's move state, or ''false'' if the ped is not streamed in, the movement type is unknown, the ped is in a vehicle or the ped is invalid.&lt;br /&gt;
&lt;br /&gt;
{{Ped move states}}&lt;br /&gt;
&lt;br /&gt;
==Example==&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;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{Ped functions}}&lt;br /&gt;
[[Category:Needs_Example]]&lt;/div&gt;</summary>
		<author><name>Gamesnert</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Template:Ped_move_states&amp;diff=24318</id>
		<title>Template:Ped move states</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Template:Ped_move_states&amp;diff=24318"/>
		<updated>2010-08-09T20:09:22Z</updated>

		<summary type="html">&lt;p&gt;Gamesnert: Created page with '&amp;lt;div style=&amp;quot;border:3px solid red;margin-bottom:3px;padding-left:5px;&amp;quot;&amp;gt;&amp;lt;div style=&amp;quot;float:right;padding-right:5px;font-weight:bold;&amp;quot;&amp;gt;&amp;lt;/div&amp;gt; * '''stand''': The ped is standing still…'&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;div style=&amp;quot;border:3px solid red;margin-bottom:3px;padding-left:5px;&amp;quot;&amp;gt;&amp;lt;div style=&amp;quot;float:right;padding-right:5px;font-weight:bold;&amp;quot;&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
* '''stand''': The ped is standing still&lt;br /&gt;
* '''walk''': The ped is walking&lt;br /&gt;
* '''powerwalk''': The ped is walking quickly&lt;br /&gt;
* '''jog''': The ped is jogging&lt;br /&gt;
* '''sprint''': The ped is sprinting&lt;br /&gt;
* '''crouch''': The ped is crouching still&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;/div&gt;</summary>
		<author><name>Gamesnert</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=GetCameraViewMode&amp;diff=24316</id>
		<title>GetCameraViewMode</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=GetCameraViewMode&amp;diff=24316"/>
		<updated>2010-08-09T19:59:38Z</updated>

		<summary type="html">&lt;p&gt;Gamesnert: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__&lt;br /&gt;
{{Client function}}&lt;br /&gt;
This function allows you to get the camera's view mode. This indicates at what distance the camera will follow the player.&lt;br /&gt;
*'''Note:''' It currently only returns vehicle view modes&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 getCameraView (  )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns an [[int]] indicating the current camera view mode. Their meanings can be seen below.&lt;br /&gt;
&lt;br /&gt;
{{Camera view modes}}&lt;br /&gt;
&lt;br /&gt;
==Example==&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;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{Camera functions}}&lt;br /&gt;
[[Category:Needs_Example]]&lt;/div&gt;</summary>
		<author><name>Gamesnert</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=SetCameraViewMode&amp;diff=24315</id>
		<title>SetCameraViewMode</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=SetCameraViewMode&amp;diff=24315"/>
		<updated>2010-08-09T19:59:22Z</updated>

		<summary type="html">&lt;p&gt;Gamesnert: Created page with '__NOTOC__ {{Client function}} This function allows you to set the camera's view mode. This indicates at what distance the camera will follow the player. *'''Note:''' It can curre…'&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__&lt;br /&gt;
{{Client function}}&lt;br /&gt;
This function allows you to set the camera's view mode. This indicates at what distance the camera will follow the player.&lt;br /&gt;
*'''Note:''' It can currently only set vehicle view modes&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 setCameraView ( int viewMode )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Required Arguments===&lt;br /&gt;
*'''viewMode''': The view mode you wish to use&lt;br /&gt;
{{Camera view modes}}&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns ''true'' if the view was set correctly, ''false'' otherwise.&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
-- TODO&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{Camera functions}}&lt;br /&gt;
[[Category:Needs_Example]]&lt;/div&gt;</summary>
		<author><name>Gamesnert</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=GetCameraViewMode&amp;diff=24314</id>
		<title>GetCameraViewMode</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=GetCameraViewMode&amp;diff=24314"/>
		<updated>2010-08-09T19:57:30Z</updated>

		<summary type="html">&lt;p&gt;Gamesnert: Created page with '__NOTOC__ {{Client function}} This function allows you to set the camera's view mode. This indicates at what distance the camera will follow the player. *'''Note:''' It currently…'&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__&lt;br /&gt;
{{Client function}}&lt;br /&gt;
This function allows you to set the camera's view mode. This indicates at what distance the camera will follow the player.&lt;br /&gt;
*'''Note:''' It currently only returns vehicle view modes&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 getCameraView (  )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns an [[int]] indicating the current camera view mode. Their meanings can be seen below.&lt;br /&gt;
&lt;br /&gt;
{{Camera view modes}}&lt;br /&gt;
&lt;br /&gt;
==Example==&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;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{Camera functions}}&lt;br /&gt;
[[Category:Needs_Example]]&lt;/div&gt;</summary>
		<author><name>Gamesnert</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Template:Camera_view_modes&amp;diff=24313</id>
		<title>Template:Camera view modes</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Template:Camera_view_modes&amp;diff=24313"/>
		<updated>2010-08-09T19:55:38Z</updated>

		<summary type="html">&lt;p&gt;Gamesnert: Created page with '&amp;lt;div style=&amp;quot;border:3px solid red;margin-bottom:3px;padding-left:5px;&amp;quot;&amp;gt;&amp;lt;div style=&amp;quot;float:right;padding-right:5px;font-weight:bold;&amp;quot;&amp;gt;&amp;lt;/div&amp;gt; * '''0''': Bumper * '''1''': Close exter…'&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;div style=&amp;quot;border:3px solid red;margin-bottom:3px;padding-left:5px;&amp;quot;&amp;gt;&amp;lt;div style=&amp;quot;float:right;padding-right:5px;font-weight:bold;&amp;quot;&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
* '''0''': Bumper&lt;br /&gt;
* '''1''': Close external&lt;br /&gt;
* '''2''': Middle external&lt;br /&gt;
* '''3''': Far external&lt;br /&gt;
* '''4''': Low external&lt;br /&gt;
* '''5''': Cinematic&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;/div&gt;</summary>
		<author><name>Gamesnert</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=ShowPlayerHudComponent&amp;diff=24311</id>
		<title>ShowPlayerHudComponent</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=ShowPlayerHudComponent&amp;diff=24311"/>
		<updated>2010-08-09T19:39:00Z</updated>

		<summary type="html">&lt;p&gt;Gamesnert: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__&lt;br /&gt;
{{Server client function}}&lt;br /&gt;
This function will show or hide a part of the player's HUD. &lt;br /&gt;
{{Deprecated_feature|3|1.0|&lt;br /&gt;
Component 'clock' does not hide the clock&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
==Syntax== &lt;br /&gt;
&lt;br /&gt;
&amp;lt;section name=&amp;quot;Server&amp;quot; class=&amp;quot;server&amp;quot; show=&amp;quot;true&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
bool showPlayerHudComponent ( player thePlayer, string component, bool show )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
&lt;br /&gt;
===Required Arguments=== &lt;br /&gt;
*'''thePlayer:''' description&lt;br /&gt;
*'''component:''' The component you wish to show or hide. Valid values are:&lt;br /&gt;
:*'''ammo:''' The display showing how much ammo the player has in their weapon&lt;br /&gt;
:*'''area_name:''' The text that appears containing the name of the area a player has entered&lt;br /&gt;
:*'''armour:''' The display showing the player's armor&lt;br /&gt;
:*'''breath:''' The display showing the player's breath&lt;br /&gt;
:*'''clock:''' The display showing the in-game time&lt;br /&gt;
:*'''health:''' The display showing the player's health&lt;br /&gt;
:*'''money:''' The display showing how much money the player has&lt;br /&gt;
:*'''radar:''' The bottom-left corner miniradar&lt;br /&gt;
:*'''vehicle_name:''' The text that appears containing the player's vehicle name when the player enters a vehicle&lt;br /&gt;
:*'''weapon:''' The display showing the player's weapon&lt;br /&gt;
{{New feature|3.0110|1.1|&lt;br /&gt;
:*'''all:''' All of the above at the same time&lt;br /&gt;
}}&lt;br /&gt;
*'''show:''' Specify if the component should be shown (''true'') or hidden (''false'')&lt;br /&gt;
&amp;lt;/section&amp;gt;&lt;br /&gt;
&amp;lt;section name=&amp;quot;Client&amp;quot; class=&amp;quot;client&amp;quot; show=&amp;quot;true&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
bool showPlayerHudComponent ( string component, bool show )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
&lt;br /&gt;
===Required Arguments=== &lt;br /&gt;
*'''component:''' The component you wish to show or hide. Valid values are:&lt;br /&gt;
:*'''ammo:''' The display showing how much ammo the player has in their weapon&lt;br /&gt;
:*'''area_name:''' The text that appears containing the name of the area a player has entered&lt;br /&gt;
:*'''armour:''' The display showing the player's armor&lt;br /&gt;
:*'''breath:''' The display showing the player's breath&lt;br /&gt;
:*'''clock:''' The display showing the in-game time&lt;br /&gt;
:*'''health:''' The display showing the player's health&lt;br /&gt;
:*'''money:''' The display showing how much money the player has&lt;br /&gt;
:*'''radar:''' The bottom-left corner miniradar&lt;br /&gt;
:*'''vehicle_name:''' The text that appears containing the player's vehicle name when the player enters a vehicle&lt;br /&gt;
:*'''weapon:''' The display showing the player's weapon&lt;br /&gt;
{{New feature|3.0110|1.1|&lt;br /&gt;
:*'''all:''' All of the above at the same time&lt;br /&gt;
}}&lt;br /&gt;
*'''show:''' Specify if the component should be shown (''true'') or hidden (''false'')&lt;br /&gt;
&amp;lt;/section&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns ''true'' if the component was shown or hidden succesfully, ''false'' if an invalid argument was specified.&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;
This example hides the ammo and weapon displays for players when they join.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function hudChanger ()&lt;br /&gt;
    showPlayerHudComponent ( source, &amp;quot;ammo&amp;quot;, false )    -- Hide the ammo displays for the newly joined player&lt;br /&gt;
    showPlayerHudComponent ( source, &amp;quot;weapon&amp;quot;, false )  -- Hide the weapon displays for the newly joined player&lt;br /&gt;
end&lt;br /&gt;
-- Make our hudChanger function called when the player joins&lt;br /&gt;
addEventHandler ( &amp;quot;onPlayerJoin&amp;quot;, getRootElement(), hudChanger )&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;
{{Player_functions}}&lt;/div&gt;</summary>
		<author><name>Gamesnert</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=EngineLoadTXD&amp;diff=24308</id>
		<title>EngineLoadTXD</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=EngineLoadTXD&amp;diff=24308"/>
		<updated>2010-08-09T18:31:00Z</updated>

		<summary type="html">&lt;p&gt;Gamesnert: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Client function}}&lt;br /&gt;
__NOTOC__&lt;br /&gt;
This function loads a RenderWare Texture Dictionary (TXD) file into GTA. The texture dictionary can then be used to provide textures.&lt;br /&gt;
&lt;br /&gt;
This is a client side function. Be sure to transfer your TXD file by including it in the meta file.&lt;br /&gt;
&lt;br /&gt;
==Syntax== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
txd engineLoadTXD ( string txd_file [, bool filteringEnabled = true ] ) &lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
&lt;br /&gt;
===Required Arguments=== &lt;br /&gt;
*'''txd_file:''' The [[filepath]] to the txd file you want to load&lt;br /&gt;
&lt;br /&gt;
===Optional Arguments===&lt;br /&gt;
*'''filteringEnabled:''' Texture filtering&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns a [[TXD]] if the file was loaded, ''false'' otherwise.&lt;br /&gt;
&lt;br /&gt;
==Example== &lt;br /&gt;
'''Example 1:''' This example loads a combination of a custom DFF and TXD file to replace the Euros vehicle in-game. The collisions are embedded inside the DFF file.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
outputChatBox ( &amp;quot;&amp;gt; replacing the euros vehicle&amp;quot; )&lt;br /&gt;
&lt;br /&gt;
txd = engineLoadTXD ( &amp;quot;data/euros.txd&amp;quot; )&lt;br /&gt;
engineImportTXD ( txd, 587 )&lt;br /&gt;
dff = engineLoadDFF ( &amp;quot;data/euros.dff&amp;quot;, 587 )&lt;br /&gt;
engineReplaceModel ( dff, 587 )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Example 2:''' This example loads a combination of custom DFF, TXD and COL files to replace an in-game model of a set of floors.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
outputChatBox ( &amp;quot;&amp;gt; loading floor objects&amp;quot; )&lt;br /&gt;
txd_floors = engineLoadTXD ( &amp;quot;models/office_floors.txd&amp;quot; )&lt;br /&gt;
engineImportTXD ( txd_floors, 3781 )&lt;br /&gt;
col_floors = engineLoadCOL ( &amp;quot;models/office_floors.col&amp;quot; )&lt;br /&gt;
dff_floors = engineLoadDFF ( &amp;quot;models/office_floors.dff&amp;quot;, 0 )&lt;br /&gt;
engineReplaceCOL ( col_floors, 3781 )&lt;br /&gt;
engineReplaceModel ( dff_floors, 3781 )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{Engine_functions}}&lt;/div&gt;</summary>
		<author><name>Gamesnert</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Template:Ped_functions&amp;diff=24307</id>
		<title>Template:Ped functions</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Template:Ped_functions&amp;diff=24307"/>
		<updated>2010-08-09T18:29:22Z</updated>

		<summary type="html">&lt;p&gt;Gamesnert: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;*[[addPedClothes]]&lt;br /&gt;
*[[createPed]]&lt;br /&gt;
*[[doesPedHaveJetPack]]&lt;br /&gt;
*[[getPedAnimation]]&lt;br /&gt;
*[[getPedAmmoInClip]]&lt;br /&gt;
*[[getPedArmor]]&lt;br /&gt;
*[[getPedClothes]]&lt;br /&gt;
*[[getPedContactElement]]&lt;br /&gt;
*[[getPedFightingStyle]]&lt;br /&gt;
*[[getPedGravity]]&lt;br /&gt;
{{New feature|3.0110|1.1|&lt;br /&gt;
*[[getPedMoveState]]&lt;br /&gt;
}}&lt;br /&gt;
*[[getPedOccupiedVehicle]]&lt;br /&gt;
*[[getPedOccupiedVehicleSeat]]&lt;br /&gt;
*[[getPedRotation]]&lt;br /&gt;
*[[getPedSkin]]&lt;br /&gt;
*[[getPedStat]]&lt;br /&gt;
*[[getPedTarget]]&lt;br /&gt;
*[[getPedTotalAmmo]]&lt;br /&gt;
*[[getPedWeapon]]&lt;br /&gt;
*[[getPedWeaponSlot]]&lt;br /&gt;
*[[getValidPedModels]]&lt;br /&gt;
*[[givePedJetPack]]&lt;br /&gt;
*[[isPedChoking]]&lt;br /&gt;
*[[isPedDead]]&lt;br /&gt;
*[[isPedDoingGangDriveby]]&lt;br /&gt;
*[[isPedDucked]]&lt;br /&gt;
*[[isPedFrozen]]&lt;br /&gt;
*[[isPedHeadless]]&lt;br /&gt;
*[[isPedInVehicle]]&lt;br /&gt;
*[[isPedInWater]]&lt;br /&gt;
*[[isPedOnFire]]&lt;br /&gt;
*[[isPedOnGround]]&lt;br /&gt;
*[[killPed]]&lt;br /&gt;
*[[reloadPedWeapon]]&lt;br /&gt;
*[[removePedClothes]]&lt;br /&gt;
*[[removePedFromVehicle]]&lt;br /&gt;
*[[removePedJetPack]]&lt;br /&gt;
*[[setPedAnimation]]&lt;br /&gt;
*[[setPedArmor]]&lt;br /&gt;
*[[setPedChoking]]&lt;br /&gt;
*[[setPedDoingGangDriveby]]&lt;br /&gt;
*[[setPedFightingStyle]]&lt;br /&gt;
*[[setPedFrozen]]&lt;br /&gt;
*[[setPedGravity]]&lt;br /&gt;
*[[setPedHeadless]]&lt;br /&gt;
*[[setPedOnFire]]&lt;br /&gt;
*[[setPedRotation]]&lt;br /&gt;
*[[setPedSkin]]&lt;br /&gt;
*[[setPedStat]]&lt;br /&gt;
*[[setPedWeaponSlot]]&lt;br /&gt;
*[[warpPedIntoVehicle]]&lt;/div&gt;</summary>
		<author><name>Gamesnert</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Template:Ped_functions&amp;diff=24306</id>
		<title>Template:Ped functions</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Template:Ped_functions&amp;diff=24306"/>
		<updated>2010-08-09T18:23:42Z</updated>

		<summary type="html">&lt;p&gt;Gamesnert: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;*[[addPedClothes]]&lt;br /&gt;
*[[createPed]]&lt;br /&gt;
*[[doesPedHaveJetPack]]&lt;br /&gt;
*[[getPedAnimation]]&lt;br /&gt;
*[[getPedAmmoInClip]]&lt;br /&gt;
*[[getPedArmor]]&lt;br /&gt;
*[[getPedClothes]]&lt;br /&gt;
*[[getPedContactElement]]&lt;br /&gt;
*[[getPedFightingStyle]]&lt;br /&gt;
*[[getPedGravity]]&lt;br /&gt;
{{New feature|3.0110|1.1|&lt;br /&gt;
*[[getPedMoveState]]&lt;br /&gt;
}}&lt;br /&gt;
*[[getPedOccupiedVehicle]]&lt;br /&gt;
*[[getPedOccupiedVehicleSeat]]&lt;br /&gt;
*[[getPedRotation]]&lt;br /&gt;
*[[getPedSkin]]&lt;br /&gt;
*[[getPedStat]]&lt;br /&gt;
*[[getPedTarget]]&lt;br /&gt;
*[[getPedTotalAmmo]]&lt;br /&gt;
*[[getPedWeapon]]&lt;br /&gt;
*[[getPedWeaponSlot]]&lt;br /&gt;
{{New feature|3.0110|1.1|&lt;br /&gt;
*[[getValidPedModels]]&lt;br /&gt;
}}&lt;br /&gt;
*[[givePedJetPack]]&lt;br /&gt;
*[[isPedChoking]]&lt;br /&gt;
*[[isPedDead]]&lt;br /&gt;
*[[isPedDoingGangDriveby]]&lt;br /&gt;
*[[isPedDucked]]&lt;br /&gt;
*[[isPedFrozen]]&lt;br /&gt;
*[[isPedHeadless]]&lt;br /&gt;
*[[isPedInVehicle]]&lt;br /&gt;
*[[isPedInWater]]&lt;br /&gt;
*[[isPedOnFire]]&lt;br /&gt;
*[[isPedOnGround]]&lt;br /&gt;
*[[killPed]]&lt;br /&gt;
*[[reloadPedWeapon]]&lt;br /&gt;
*[[removePedClothes]]&lt;br /&gt;
*[[removePedFromVehicle]]&lt;br /&gt;
*[[removePedJetPack]]&lt;br /&gt;
*[[setPedAnimation]]&lt;br /&gt;
*[[setPedArmor]]&lt;br /&gt;
*[[setPedChoking]]&lt;br /&gt;
*[[setPedDoingGangDriveby]]&lt;br /&gt;
*[[setPedFightingStyle]]&lt;br /&gt;
*[[setPedFrozen]]&lt;br /&gt;
*[[setPedGravity]]&lt;br /&gt;
*[[setPedHeadless]]&lt;br /&gt;
*[[setPedOnFire]]&lt;br /&gt;
*[[setPedRotation]]&lt;br /&gt;
*[[setPedSkin]]&lt;br /&gt;
*[[setPedStat]]&lt;br /&gt;
*[[setPedWeaponSlot]]&lt;br /&gt;
*[[warpPedIntoVehicle]]&lt;/div&gt;</summary>
		<author><name>Gamesnert</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Template:Server_functions&amp;diff=24305</id>
		<title>Template:Server functions</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Template:Server_functions&amp;diff=24305"/>
		<updated>2010-08-09T18:19:59Z</updated>

		<summary type="html">&lt;p&gt;Gamesnert: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;*[[addCommandHandler]]&lt;br /&gt;
*[[executeCommandHandler]]&lt;br /&gt;
*[[fromJSON]]&lt;br /&gt;
*[[getFPSLimit]]&lt;br /&gt;
*[[getMaxPlayers]]&lt;br /&gt;
*[[getServerHttpPort]]&lt;br /&gt;
*[[getServerName]]&lt;br /&gt;
*[[getServerPassword]]&lt;br /&gt;
*[[getServerPort]]&lt;br /&gt;
*[[getVersion]]&lt;br /&gt;
*[[isGlitchEnabled]]&lt;br /&gt;
*[[outputChatBox]]&lt;br /&gt;
*[[outputConsole]]&lt;br /&gt;
*[[outputDebugString]]&lt;br /&gt;
*[[outputServerLog]]&lt;br /&gt;
*[[removeCommandHandler]]&lt;br /&gt;
*[[setFPSLimit]]&lt;br /&gt;
*[[setGlitchEnabled]]&lt;br /&gt;
{{New feature|3.0110|1.1|&lt;br /&gt;
*[[setServerName]]&lt;br /&gt;
}}&lt;br /&gt;
*[[setServerPassword]]&lt;br /&gt;
*[[showChat]]&lt;br /&gt;
*[[shutdown]]&lt;br /&gt;
*[[toJSON]]&lt;/div&gt;</summary>
		<author><name>Gamesnert</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Template:GUI_events&amp;diff=24304</id>
		<title>Template:GUI events</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Template:GUI_events&amp;diff=24304"/>
		<updated>2010-08-09T18:16:46Z</updated>

		<summary type="html">&lt;p&gt;Gamesnert: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;*[[onClientGUIClick]]&lt;br /&gt;
*[[onClientGUIDoubleClick]]&lt;br /&gt;
*[[onClientGUIChanged]]&lt;br /&gt;
*[[onClientGUIAccepted]]&lt;br /&gt;
*[[onClientGUIScroll]]&lt;br /&gt;
*[[onClientClick]]&lt;br /&gt;
{{New feature|3.0110|1.1|&lt;br /&gt;
*[[onClientDoubleClick]]&lt;br /&gt;
}}&lt;br /&gt;
*[[onClientMouseEnter]]&lt;br /&gt;
*[[onClientMouseLeave]]&lt;br /&gt;
*[[onClientMouseMove]]&lt;br /&gt;
*[[onClientMouseWheel]]&lt;br /&gt;
*[[onClientCursorMove]]&lt;br /&gt;
*[[onClientGUIMouseDown]]&lt;br /&gt;
*[[onClientGUIMouseUp]]&lt;br /&gt;
*[[onClientGUIMove]]&lt;br /&gt;
*[[onClientGUISize]]&lt;br /&gt;
*[[onClientGUITabSwitched]]&lt;/div&gt;</summary>
		<author><name>Gamesnert</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Template:Ped_functions&amp;diff=24303</id>
		<title>Template:Ped functions</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Template:Ped_functions&amp;diff=24303"/>
		<updated>2010-08-09T18:13:26Z</updated>

		<summary type="html">&lt;p&gt;Gamesnert: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;*[[addPedClothes]]&lt;br /&gt;
*[[createPed]]&lt;br /&gt;
*[[doesPedHaveJetPack]]&lt;br /&gt;
*[[getPedAnimation]]&lt;br /&gt;
*[[getPedAmmoInClip]]&lt;br /&gt;
*[[getPedArmor]]&lt;br /&gt;
*[[getPedClothes]]&lt;br /&gt;
*[[getPedContactElement]]&lt;br /&gt;
*[[getPedFightingStyle]]&lt;br /&gt;
*[[getPedGravity]]&lt;br /&gt;
{{New feature|3.0110|1.1|&lt;br /&gt;
*[[getPedMoveState]]&lt;br /&gt;
}}&lt;br /&gt;
*[[getPedOccupiedVehicle]]&lt;br /&gt;
*[[getPedOccupiedVehicleSeat]]&lt;br /&gt;
*[[getPedRotation]]&lt;br /&gt;
*[[getPedSkin]]&lt;br /&gt;
*[[getPedStat]]&lt;br /&gt;
*[[getPedTarget]]&lt;br /&gt;
*[[getPedTotalAmmo]]&lt;br /&gt;
*[[getPedWeapon]]&lt;br /&gt;
*[[getPedWeaponSlot]]&lt;br /&gt;
*[[givePedJetPack]]&lt;br /&gt;
*[[isPedChoking]]&lt;br /&gt;
*[[isPedDead]]&lt;br /&gt;
*[[isPedDoingGangDriveby]]&lt;br /&gt;
*[[isPedDucked]]&lt;br /&gt;
*[[isPedFrozen]]&lt;br /&gt;
*[[isPedHeadless]]&lt;br /&gt;
*[[isPedInVehicle]]&lt;br /&gt;
*[[isPedInWater]]&lt;br /&gt;
*[[isPedOnFire]]&lt;br /&gt;
*[[isPedOnGround]]&lt;br /&gt;
*[[killPed]]&lt;br /&gt;
*[[reloadPedWeapon]]&lt;br /&gt;
*[[removePedClothes]]&lt;br /&gt;
*[[removePedFromVehicle]]&lt;br /&gt;
*[[removePedJetPack]]&lt;br /&gt;
*[[setPedAnimation]]&lt;br /&gt;
*[[setPedArmor]]&lt;br /&gt;
*[[setPedChoking]]&lt;br /&gt;
*[[setPedDoingGangDriveby]]&lt;br /&gt;
*[[setPedFightingStyle]]&lt;br /&gt;
*[[setPedFrozen]]&lt;br /&gt;
*[[setPedGravity]]&lt;br /&gt;
*[[setPedHeadless]]&lt;br /&gt;
*[[setPedOnFire]]&lt;br /&gt;
*[[setPedRotation]]&lt;br /&gt;
*[[setPedSkin]]&lt;br /&gt;
*[[setPedStat]]&lt;br /&gt;
*[[setPedWeaponSlot]]&lt;br /&gt;
*[[warpPedIntoVehicle]]&lt;/div&gt;</summary>
		<author><name>Gamesnert</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Template:Camera_functions&amp;diff=24302</id>
		<title>Template:Camera functions</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Template:Camera_functions&amp;diff=24302"/>
		<updated>2010-08-09T18:09:31Z</updated>

		<summary type="html">&lt;p&gt;Gamesnert: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;* [[fadeCamera]]&lt;br /&gt;
* [[getCameraInterior]]&lt;br /&gt;
* [[getCameraMatrix]]&lt;br /&gt;
* [[getCameraTarget]]&lt;br /&gt;
{{New feature|3.0110|1.1|&lt;br /&gt;
* [[getCameraView]]&lt;br /&gt;
}}&lt;br /&gt;
* [[setCameraInterior]]&lt;br /&gt;
* [[setCameraMatrix]]&lt;br /&gt;
* [[setCameraTarget]]&lt;br /&gt;
{{New feature|3.0110|1.1|&lt;br /&gt;
* [[setCameraView]]&lt;br /&gt;
}}&lt;/div&gt;</summary>
		<author><name>Gamesnert</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Template:Utility_functions&amp;diff=24301</id>
		<title>Template:Utility functions</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Template:Utility_functions&amp;diff=24301"/>
		<updated>2010-08-09T18:03:21Z</updated>

		<summary type="html">&lt;p&gt;Gamesnert: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;*[[getColorFromString]]&lt;br /&gt;
*[[getDistanceBetweenPoints2D]]&lt;br /&gt;
*[[getDistanceBetweenPoints3D]]&lt;br /&gt;
&amp;lt;!--&lt;br /&gt;
*[[getPacketInfo]]&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
{{New feature|3.0110|1.1|&lt;br /&gt;
*[[getPerformanceStats]]&lt;br /&gt;
}}&lt;br /&gt;
*[[getRealTime]]&lt;br /&gt;
*[[getTickCount]]&lt;br /&gt;
*[[getTimerDetails]]&lt;br /&gt;
*[[getTimers]]&lt;br /&gt;
*[[gettok]]&lt;br /&gt;
*[[killTimer]]&lt;br /&gt;
*[[resetTimer]]&lt;br /&gt;
*[[setTimer]]&lt;br /&gt;
*[[split]]&lt;br /&gt;
*[[isTimer]]&lt;br /&gt;
*[[md5]]&lt;/div&gt;</summary>
		<author><name>Gamesnert</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=OnClientVehicleExplode&amp;diff=24300</id>
		<title>OnClientVehicleExplode</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=OnClientVehicleExplode&amp;diff=24300"/>
		<updated>2010-08-09T17:51:12Z</updated>

		<summary type="html">&lt;p&gt;Gamesnert: Created page with '{{Client event}} __NOTOC__  This event is triggered when a vehicle explodes.  ==Parameters==  This event has no parameters.  ==Source== The source of this event is the vehicle th…'&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Client event}}&lt;br /&gt;
__NOTOC__ &lt;br /&gt;
This event is triggered when a vehicle explodes.&lt;br /&gt;
&lt;br /&gt;
==Parameters== &lt;br /&gt;
This event has no parameters.&lt;br /&gt;
&lt;br /&gt;
==Source==&lt;br /&gt;
The source of this event is the vehicle that exploded.&lt;br /&gt;
&lt;br /&gt;
==Example== &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;
&lt;br /&gt;
==See Also==&lt;br /&gt;
===Client vehicle events===&lt;br /&gt;
{{Client_vehicle_events}}&lt;br /&gt;
===Client event functions===&lt;br /&gt;
{{Client_event_functions}}&lt;br /&gt;
&lt;br /&gt;
[[Category:Needs_Example]]&lt;/div&gt;</summary>
		<author><name>Gamesnert</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=SetSoundEffectEnabled&amp;diff=24298</id>
		<title>SetSoundEffectEnabled</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=SetSoundEffectEnabled&amp;diff=24298"/>
		<updated>2010-08-09T16:53:40Z</updated>

		<summary type="html">&lt;p&gt;Gamesnert: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__ &lt;br /&gt;
{{Client function}}&lt;br /&gt;
Used to enable or disable specific sound effects.&lt;br /&gt;
&lt;br /&gt;
==Syntax== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;bool setSoundEffectEnabled ( element sound, string effectName, bool toggle )&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
&lt;br /&gt;
===Required Arguments=== &lt;br /&gt;
*'''sound:''' a [[sound]] element.&lt;br /&gt;
*'''effectName:''' the effect you want to enable or disable&lt;br /&gt;
{{Sound_Effects}}&lt;br /&gt;
*'''toggle:''' ''true'' if you want to enable the effect, ''false'' if you want to disable it.&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns ''true'' if the effect was set successfully, ''false'' otherwise.&lt;br /&gt;
&lt;br /&gt;
==Example== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
-- TODO&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{Client_audio_functions}}&lt;br /&gt;
&lt;br /&gt;
[[Category:Needs_Example]]&lt;/div&gt;</summary>
		<author><name>Gamesnert</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=GetSoundEffects&amp;diff=24297</id>
		<title>GetSoundEffects</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=GetSoundEffects&amp;diff=24297"/>
		<updated>2010-08-09T16:53:28Z</updated>

		<summary type="html">&lt;p&gt;Gamesnert: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__ &lt;br /&gt;
{{Client function}}&lt;br /&gt;
Returns the states of all effects of a sound.&lt;br /&gt;
&lt;br /&gt;
==Syntax== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;table getSoundEffects ( element sound )&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
&lt;br /&gt;
===Required Arguments=== &lt;br /&gt;
*'''sound:''' a [[sound]] element.&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns a [[table]] with the effect names as the keys, and their states as the values if successful. Otherwise, it returns ''false''.&lt;br /&gt;
&lt;br /&gt;
'''Sound effect names:'''&lt;br /&gt;
{{Sound_Effects}}&lt;br /&gt;
&lt;br /&gt;
==Example== &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;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{Client_audio_functions}}&lt;br /&gt;
&lt;br /&gt;
[[Category:Needs_Example]]&lt;/div&gt;</summary>
		<author><name>Gamesnert</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=GetSoundMetaTags&amp;diff=24296</id>
		<title>GetSoundMetaTags</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=GetSoundMetaTags&amp;diff=24296"/>
		<updated>2010-08-09T16:53:05Z</updated>

		<summary type="html">&lt;p&gt;Gamesnert: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__ &lt;br /&gt;
{{Client function}}&lt;br /&gt;
Used to get the meta tags attached to a sound. These provide information about the sound, for instance the title or the artist.&lt;br /&gt;
&lt;br /&gt;
==Syntax== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;table getSoundMetaTags ( element sound )&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
&lt;br /&gt;
===Required Arguments=== &lt;br /&gt;
*'''sound:''' a [[sound]] element.&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns a [[table]] with all data available (keys are listed below) for the sound if successful, ''false'' otherwise.&lt;br /&gt;
&lt;br /&gt;
{{Sound_Meta_Tags}}&lt;br /&gt;
&lt;br /&gt;
==Example== &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;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{Client_audio_functions}}&lt;br /&gt;
&lt;br /&gt;
[[Category:Needs_Example]]&lt;/div&gt;</summary>
		<author><name>Gamesnert</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=GetSoundMetaTags&amp;diff=24295</id>
		<title>GetSoundMetaTags</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=GetSoundMetaTags&amp;diff=24295"/>
		<updated>2010-08-09T16:52:37Z</updated>

		<summary type="html">&lt;p&gt;Gamesnert: Created page with '__NOTOC__  {{Client function}} Used to get the meta tags attached to a sound. These provide information about the sound, for instance the title or the artist.  ==Syntax==  &amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;…'&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__ &lt;br /&gt;
{{Client function}}&lt;br /&gt;
Used to get the meta tags attached to a sound. These provide information about the sound, for instance the title or the artist.&lt;br /&gt;
&lt;br /&gt;
==Syntax== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;table getSoundMetaTags ( element sound )&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
&lt;br /&gt;
===Required Arguments=== &lt;br /&gt;
*'''sound:''' a [[sound]] element.&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns a [[table]] with all data available for the sound if successful, ''false'' otherwise.&lt;br /&gt;
&lt;br /&gt;
{{Sound_Meta_Tags}}&lt;br /&gt;
&lt;br /&gt;
==Example== &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;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{Client_audio_functions}}&lt;br /&gt;
&lt;br /&gt;
[[Category:Needs_Example]]&lt;/div&gt;</summary>
		<author><name>Gamesnert</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Template:Sound_Meta_Tags&amp;diff=24294</id>
		<title>Template:Sound Meta Tags</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Template:Sound_Meta_Tags&amp;diff=24294"/>
		<updated>2010-08-09T16:49:51Z</updated>

		<summary type="html">&lt;p&gt;Gamesnert: Created page with '&amp;lt;div style=&amp;quot;border:3px solid red;margin-bottom:3px;padding-left:5px;&amp;quot;&amp;gt;&amp;lt;div style=&amp;quot;float:right;padding-right:5px;font-weight:bold;&amp;quot;&amp;gt;&amp;lt;/div&amp;gt; * '''title''' * '''artist''' * '''album'…'&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;div style=&amp;quot;border:3px solid red;margin-bottom:3px;padding-left:5px;&amp;quot;&amp;gt;&amp;lt;div style=&amp;quot;float:right;padding-right:5px;font-weight:bold;&amp;quot;&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
* '''title'''&lt;br /&gt;
* '''artist'''&lt;br /&gt;
* '''album'''&lt;br /&gt;
* '''genre'''&lt;br /&gt;
* '''year'''&lt;br /&gt;
* '''comment'''&lt;br /&gt;
* '''track'''&lt;br /&gt;
* '''composer'''&lt;br /&gt;
* '''copyright'''&lt;br /&gt;
* '''subtitle'''&lt;br /&gt;
* '''album_artist'''&lt;br /&gt;
* '''stream_name'''&lt;br /&gt;
* '''stream_title'''&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;/div&gt;</summary>
		<author><name>Gamesnert</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=SetSoundEffectEnabled&amp;diff=24293</id>
		<title>SetSoundEffectEnabled</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=SetSoundEffectEnabled&amp;diff=24293"/>
		<updated>2010-08-09T16:43:43Z</updated>

		<summary type="html">&lt;p&gt;Gamesnert: Created page with '__NOTOC__  {{Client function}} Used to enable or disable specific sound effects.  ==Syntax==  &amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;int setSoundEffectEnabled ( element sound, string effectName, bool togg…'&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__ &lt;br /&gt;
{{Client function}}&lt;br /&gt;
Used to enable or disable specific sound effects.&lt;br /&gt;
&lt;br /&gt;
==Syntax== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;int setSoundEffectEnabled ( element sound, string effectName, bool toggle )&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
&lt;br /&gt;
===Required Arguments=== &lt;br /&gt;
*'''sound:''' a [[sound]] element.&lt;br /&gt;
*'''effectName:''' the effect you want to enable or disable&lt;br /&gt;
{{Sound_Effects}}&lt;br /&gt;
*'''toggle:''' ''true'' if you want to enable the effect, ''false'' if you want to disable it.&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns ''true'' if the effect was set successfully, ''false'' otherwise.&lt;br /&gt;
&lt;br /&gt;
==Example== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
-- TODO&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{Client_audio_functions}}&lt;br /&gt;
&lt;br /&gt;
[[Category:Needs_Example]]&lt;/div&gt;</summary>
		<author><name>Gamesnert</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=GetSoundEffects&amp;diff=24292</id>
		<title>GetSoundEffects</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=GetSoundEffects&amp;diff=24292"/>
		<updated>2010-08-09T16:40:30Z</updated>

		<summary type="html">&lt;p&gt;Gamesnert: Created page with '__NOTOC__  {{Client function}} Returns the states of all effects of a sound.  ==Syntax==  &amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;int getSoundEffects ( element sound )&amp;lt;/syntaxhighlight&amp;gt;   ===Required Arguments===  *'…'&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__ &lt;br /&gt;
{{Client function}}&lt;br /&gt;
Returns the states of all effects of a sound.&lt;br /&gt;
&lt;br /&gt;
==Syntax== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;int getSoundEffects ( element sound )&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
&lt;br /&gt;
===Required Arguments=== &lt;br /&gt;
*'''sound:''' a [[sound]] element.&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns a [[table]] with the effect names as the keys, and their states as the values if successful. Otherwise, it returns ''false''.&lt;br /&gt;
&lt;br /&gt;
'''Sound effect names:'''&lt;br /&gt;
{{Sound_Effects}}&lt;br /&gt;
&lt;br /&gt;
==Example== &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;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{Client_audio_functions}}&lt;br /&gt;
&lt;br /&gt;
[[Category:Needs_Example]]&lt;/div&gt;</summary>
		<author><name>Gamesnert</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Template:Sound_Effects&amp;diff=24291</id>
		<title>Template:Sound Effects</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Template:Sound_Effects&amp;diff=24291"/>
		<updated>2010-08-09T16:35:51Z</updated>

		<summary type="html">&lt;p&gt;Gamesnert: Created page with '&amp;lt;div style=&amp;quot;border:3px solid red;margin-bottom:3px;padding-left:5px;&amp;quot;&amp;gt;&amp;lt;div style=&amp;quot;float:right;padding-right:5px;font-weight:bold;&amp;quot;&amp;gt;&amp;lt;/div&amp;gt; * '''gargle''' * '''compressor''' * '''e…'&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;div style=&amp;quot;border:3px solid red;margin-bottom:3px;padding-left:5px;&amp;quot;&amp;gt;&amp;lt;div style=&amp;quot;float:right;padding-right:5px;font-weight:bold;&amp;quot;&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
* '''gargle'''&lt;br /&gt;
* '''compressor'''&lt;br /&gt;
* '''echo'''&lt;br /&gt;
* '''i3dl2reverb'''&lt;br /&gt;
* '''distortion'''&lt;br /&gt;
* '''chorus'''&lt;br /&gt;
* '''parameq'''&lt;br /&gt;
* '''reverb'''&lt;br /&gt;
* '''flanger'''&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;/div&gt;</summary>
		<author><name>Gamesnert</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=OnClientSoundChangedMeta&amp;diff=24290</id>
		<title>OnClientSoundChangedMeta</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=OnClientSoundChangedMeta&amp;diff=24290"/>
		<updated>2010-08-09T16:31:23Z</updated>

		<summary type="html">&lt;p&gt;Gamesnert: Created page with '__NOTOC__ {{Client event}} This event is triggered when a sound's meta tags have been modified.  ==Parameters== &amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt; string streamTitle &amp;lt;/syntaxhighlight&amp;gt;   *'''streamTitle''': The…'&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__&lt;br /&gt;
{{Client event}}&lt;br /&gt;
This event is triggered when a sound's meta tags have been modified.&lt;br /&gt;
&lt;br /&gt;
==Parameters==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
string streamTitle&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
&lt;br /&gt;
*'''streamTitle''': The title of a specific stream&lt;br /&gt;
&lt;br /&gt;
==Source==&lt;br /&gt;
The [[event system#Event source|source]] of this event is the [[sound]] of which the meta tags have just been modified.&lt;br /&gt;
&lt;br /&gt;
==Example== &lt;br /&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;
&lt;br /&gt;
==See Also==&lt;br /&gt;
===Client player events===&lt;br /&gt;
{{Sound_events}}&lt;br /&gt;
===Client event functions===&lt;br /&gt;
{{Client_event_functions}}&lt;br /&gt;
&lt;br /&gt;
[[Category:Needs_Example]]&lt;/div&gt;</summary>
		<author><name>Gamesnert</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=OnClientSoundFinishedDownload&amp;diff=24288</id>
		<title>OnClientSoundFinishedDownload</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=OnClientSoundFinishedDownload&amp;diff=24288"/>
		<updated>2010-08-09T16:27:32Z</updated>

		<summary type="html">&lt;p&gt;Gamesnert: Created page with '__NOTOC__ {{Client event}} This event is triggered when a sound has just finished downloading. This means the complete sound file is now loaded in the player's RAM, and can be pl…'&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__&lt;br /&gt;
{{Client event}}&lt;br /&gt;
This event is triggered when a sound has just finished downloading. This means the complete sound file is now loaded in the player's RAM, and can be played completely from start to end. Unlike [[onClientSoundStream]], this event only triggers for file streams, not for live ones since live streams never actually end.&lt;br /&gt;
&lt;br /&gt;
==Parameters==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
int length&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
&lt;br /&gt;
*'''length''': The length of the stream in milliseconds&lt;br /&gt;
&lt;br /&gt;
==Source==&lt;br /&gt;
The [[event system#Event source|source]] of this event is the [[sound]] which just finished downloading.&lt;br /&gt;
&lt;br /&gt;
==Example== &lt;br /&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;
&lt;br /&gt;
==See Also==&lt;br /&gt;
===Client player events===&lt;br /&gt;
{{Sound_events}}&lt;br /&gt;
===Client event functions===&lt;br /&gt;
{{Client_event_functions}}&lt;br /&gt;
&lt;br /&gt;
[[Category:Needs_Example]]&lt;/div&gt;</summary>
		<author><name>Gamesnert</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=OnClientSoundStream&amp;diff=24286</id>
		<title>OnClientSoundStream</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=OnClientSoundStream&amp;diff=24286"/>
		<updated>2010-08-09T16:21:11Z</updated>

		<summary type="html">&lt;p&gt;Gamesnert: Created page with '__NOTOC__ {{Client event}} This event is triggered when a sound has just finished initial streaming. For file streams, this means the sound will now start playing, but isn't done…'&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__&lt;br /&gt;
{{Client event}}&lt;br /&gt;
This event is triggered when a sound has just finished initial streaming. For file streams, this means the sound will now start playing, but isn't done downloading yet. For live streams, this just means the stream will start playing. This event will also trigger when, for some reason, the streaming failed.&lt;br /&gt;
&lt;br /&gt;
==Parameters==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
bool success, int length, string streamName&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
&lt;br /&gt;
*'''success''': A [[boolean]] indicating whether the stream was a success or not&lt;br /&gt;
*'''length''': The length of the stream in milliseconds. Always returns '''0''' for a live stream&lt;br /&gt;
*'''streamName''': The name of the stream. Note that this isn't the filename. Also note that this isn't always provided&lt;br /&gt;
&lt;br /&gt;
==Source==&lt;br /&gt;
The [[event system#Event source|source]] of this event is the [[sound]] which either successfully streamed or failed to stream.&lt;br /&gt;
&lt;br /&gt;
==Example== &lt;br /&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;
&lt;br /&gt;
==See Also==&lt;br /&gt;
===Client player events===&lt;br /&gt;
{{Sound_events}}&lt;br /&gt;
===Client event functions===&lt;br /&gt;
{{Client_event_functions}}&lt;br /&gt;
&lt;br /&gt;
[[Category:Needs_Example]]&lt;/div&gt;</summary>
		<author><name>Gamesnert</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=SetTrafficLightState&amp;diff=24285</id>
		<title>SetTrafficLightState</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=SetTrafficLightState&amp;diff=24285"/>
		<updated>2010-08-09T16:01:30Z</updated>

		<summary type="html">&lt;p&gt;Gamesnert: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__&lt;br /&gt;
{{Server client function}}&lt;br /&gt;
Sets the current traffic light state. This state controls the traffic light colors. For instance, state '''1''' will cause the north and south traffic lights to be amber, and the ones left and east will turn red.&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 setTrafficLightState ( int state )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Required Arguments===&lt;br /&gt;
*'''state''': The [[Traffic_light_states|state]] you wish to use (possible values: 0-9)&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns ''true'' if the state was successfully set, ''false'' otherwise.&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
This example causes all traffic lights to be out of order. (flashing amber)&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function handleTrafficLightsOutOfOrder()&lt;br /&gt;
    -- See if the lights are currently off&lt;br /&gt;
    local lightsOff = getTrafficLightState() == 9&lt;br /&gt;
    &lt;br /&gt;
    if lightsOff then&lt;br /&gt;
        -- If they're off, turn them on&lt;br /&gt;
        setTrafficLightState(6)&lt;br /&gt;
    else&lt;br /&gt;
        -- If they're on, turn them off&lt;br /&gt;
        setTrafficLightState(9)&lt;br /&gt;
    end&lt;br /&gt;
end&lt;br /&gt;
-- Repeat it every half a second&lt;br /&gt;
setTimer(handleTrafficLightsOutOfOrder,500,0)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{World_functions}}&lt;/div&gt;</summary>
		<author><name>Gamesnert</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=GetTrafficLightState&amp;diff=24284</id>
		<title>GetTrafficLightState</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=GetTrafficLightState&amp;diff=24284"/>
		<updated>2010-08-09T16:01:20Z</updated>

		<summary type="html">&lt;p&gt;Gamesnert: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__&lt;br /&gt;
{{Server client function}}&lt;br /&gt;
Gets the current traffic light state. This state controls the traffic light colors. For instance, state '''1''' will cause the north and south traffic lights to be amber, and the ones left and east will turn red.&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 getTrafficLightState ( )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns the current [[Traffic_light_states|state]] of the traffic lights.&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
This example causes all traffic lights to be out of order. (flashing amber)&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function handleTrafficLightsOutOfOrder()&lt;br /&gt;
    -- See if the lights are currently off&lt;br /&gt;
    local lightsOff = getTrafficLightState() == 9&lt;br /&gt;
    &lt;br /&gt;
    if lightsOff then&lt;br /&gt;
        -- If they're off, turn them on&lt;br /&gt;
        setTrafficLightState(6)&lt;br /&gt;
    else&lt;br /&gt;
        -- If they're on, turn them off&lt;br /&gt;
        setTrafficLightState(9)&lt;br /&gt;
    end&lt;br /&gt;
end&lt;br /&gt;
-- Repeat it every half a second&lt;br /&gt;
setTimer(handleTrafficLightsOutOfOrder,500,0)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{World_functions}}&lt;/div&gt;</summary>
		<author><name>Gamesnert</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=SetTrafficLightState&amp;diff=24283</id>
		<title>SetTrafficLightState</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=SetTrafficLightState&amp;diff=24283"/>
		<updated>2010-08-09T16:01:05Z</updated>

		<summary type="html">&lt;p&gt;Gamesnert: /* Example */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__&lt;br /&gt;
{{Server client function}}&lt;br /&gt;
Sets the current traffic light state. This state controls the traffic light colors. For instance, state '''1''' will cause the north and south traffic lights to be amber, and the ones left and east will turn red.&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 setTrafficLightState ( int state )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Required Arguments===&lt;br /&gt;
*'''state''': The [[Traffic_light_states|state]] you wish to use (possible values: 0-9)&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns ''true'' if the state was successfully set, ''false'' otherwise.&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
This example causes all traffic lights to be out of order. (flashing amber)&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function handleTrafficLightsOutOfOrder()&lt;br /&gt;
    -- See if the lights are currently off&lt;br /&gt;
    local lightsOff = getTrafficLightState() == 9&lt;br /&gt;
    &lt;br /&gt;
    if lightsOff then&lt;br /&gt;
        -- If they're off, turn them on&lt;br /&gt;
        setTrafficLightState(6)&lt;br /&gt;
    else&lt;br /&gt;
        -- If they're on, turn them off&lt;br /&gt;
        setTrafficLightState(9)&lt;br /&gt;
    end&lt;br /&gt;
end&lt;br /&gt;
-- Repeat it every half a second&lt;br /&gt;
setTimer(handleTrafficLightsOutOfOrder,500,0)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{World_functions}}&lt;br /&gt;
&lt;br /&gt;
[[Category:Needs_Example]]&lt;/div&gt;</summary>
		<author><name>Gamesnert</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=GetTimerDetails&amp;diff=24266</id>
		<title>GetTimerDetails</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=GetTimerDetails&amp;diff=24266"/>
		<updated>2010-08-08T21:46:57Z</updated>

		<summary type="html">&lt;p&gt;Gamesnert: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__ &lt;br /&gt;
{{Server client function}}&lt;br /&gt;
&lt;br /&gt;
This function is for getting the details of a running timer.&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, int, int getTimerDetails ( timer theTimer )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Required Arguments===&lt;br /&gt;
*'''theTimer:''' A timer element.&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
* Integer one represents the time left in miliseconds (1000th of a second) of the current time left in the loop.&lt;br /&gt;
* Integer two represents the ammount of times the timer has left to execute.&lt;br /&gt;
* Integer three represents the ammount of times the timer will execute.&lt;br /&gt;
&lt;br /&gt;
* Returns false if the timer doesn't exist or stopped running. Also, debugscript will say &amp;quot;Bad Argument @ 'getTimerDetails'&amp;quot;. To prevent this, you can check if the timer exists with [[isTimer]]().&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
This example creates a 1 second (1000 ms) timer that will run 1000 times, and you can see the timer details by using the command: timerdetails.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
theTimer = setTimer(function() end, 1000, 10) -- A timer that does nothing.&lt;br /&gt;
&lt;br /&gt;
function timerDetails()&lt;br /&gt;
	remaining, executesRemaining, totalExecutes = getTimerDetails(theTimer) -- Get the timers details&lt;br /&gt;
	if (remaining and executesRemaining and totalExecutes) then&lt;br /&gt;
		outputChatBox(&amp;quot;Time remaining this second: &amp;quot;..remaining..&amp;quot; Executes remaining: &amp;quot;..executesRemaining..&amp;quot; Total executes: &amp;quot;..totalExecutes)&lt;br /&gt;
	else&lt;br /&gt;
		outputChatBox(&amp;quot;Timer no longer exists&amp;quot;)&lt;br /&gt;
	end&lt;br /&gt;
end&lt;br /&gt;
addCommandHandler(&amp;quot;timerdetails&amp;quot;, timerDetails)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{Utility functions}}&lt;/div&gt;</summary>
		<author><name>Gamesnert</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=GetTimerDetails&amp;diff=24265</id>
		<title>GetTimerDetails</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=GetTimerDetails&amp;diff=24265"/>
		<updated>2010-08-08T21:46:09Z</updated>

		<summary type="html">&lt;p&gt;Gamesnert: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__ &lt;br /&gt;
{{Server client function}}&lt;br /&gt;
&lt;br /&gt;
This function is for getting the details of a running timer.&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, int, int getTimerDetails ( timer theTimer )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Required Arguments===&lt;br /&gt;
*'''theTimer:''' A timer element.&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
* Integer one represents the time left in miliseconds (1000th of a second) of the current time left in the loop.&lt;br /&gt;
* Integer two represents the ammount of times the timer has left to execute.&lt;br /&gt;
* Integer three represents the ammount of times the timer will execute.&lt;br /&gt;
&lt;br /&gt;
* Returns false if the timer doesn't exist or stopped running. Also, debugscript will say &amp;quot;Bad Argument @ 'getTimerDetails'&amp;quot;. To prevent this, you can check if the timer exists with [[isTimer]]().&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
This example creates a 1 second (1000 ms) timer that will run 1000 times, and you can see the timer details by using the command: timerdetails.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
theTimer = setTimer(function() end, 1000, 10) -- A timer that does nothing.&lt;br /&gt;
&lt;br /&gt;
function timerDetails()&lt;br /&gt;
	remaining, executesRemaining, totalExecutes = getTimerDetails(theTimer) -- Get the timers details&lt;br /&gt;
	if (remaining and executesRemaining and totalExecutes) then&lt;br /&gt;
		outputChatBox(&amp;quot;Time remaining this second: &amp;quot;..remaining..&amp;quot; Executes remaining: &amp;quot;..executesRemaining..&amp;quot; Total executes: &amp;quot;..totalExecutes)&lt;br /&gt;
	else&lt;br /&gt;
		outputChatBox(&amp;quot;Timer no longer exists&amp;quot;)&lt;br /&gt;
	end&lt;br /&gt;
end&lt;br /&gt;
addCommandHandler(&amp;quot;timerdetails&amp;quot;, timerDetails)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;/div&gt;</summary>
		<author><name>Gamesnert</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Traffic_light_states&amp;diff=24262</id>
		<title>Traffic light states</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Traffic_light_states&amp;diff=24262"/>
		<updated>2010-08-08T21:11:18Z</updated>

		<summary type="html">&lt;p&gt;Gamesnert: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Here you can see the traffic light states used by [[setTrafficLightState]] and [[getTrafficLightState]]. The upper light represents the traffic light on the north side, the lower represents the south side, etc etc. If there isn't any traffic light on one or more of the sides, it doesn't affect the others.&lt;br /&gt;
&lt;br /&gt;
{| cellspacing=&amp;quot;50&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
!&lt;br /&gt;
    {| border=&amp;quot;0&amp;quot; cellpadding=&amp;quot;2&amp;quot; cellspacing=&amp;quot;0&amp;quot; style=&amp;quot;border-collapse: collapse;&amp;quot;&lt;br /&gt;
    |+ '''State 0'''&lt;br /&gt;
    |-&lt;br /&gt;
    !  !! [[File:Traffic_green.png]] !! &lt;br /&gt;
    |-&lt;br /&gt;
    ! [[File:Traffic_red.png]] !!  !! [[File:Traffic_red.png]]&lt;br /&gt;
    |-&lt;br /&gt;
    !  !! [[File:Traffic_green.png]] !! &lt;br /&gt;
    |}&lt;br /&gt;
!&lt;br /&gt;
    {| border=&amp;quot;0&amp;quot; cellpadding=&amp;quot;2&amp;quot; cellspacing=&amp;quot;0&amp;quot; style=&amp;quot;border-collapse: collapse;&amp;quot;&lt;br /&gt;
    |+ '''State 1'''&lt;br /&gt;
    |-&lt;br /&gt;
    !  !! [[File:Traffic_amber.png]] !! &lt;br /&gt;
    |-&lt;br /&gt;
    ! [[File:Traffic_red.png]] !!  !! [[File:Traffic_red.png]]&lt;br /&gt;
    |-&lt;br /&gt;
    !  !! [[File:Traffic_amber.png]] !! &lt;br /&gt;
    |}&lt;br /&gt;
!&lt;br /&gt;
    {| border=&amp;quot;0&amp;quot; cellpadding=&amp;quot;2&amp;quot; cellspacing=&amp;quot;0&amp;quot; style=&amp;quot;border-collapse: collapse;&amp;quot;&lt;br /&gt;
    |+ '''State 2'''&lt;br /&gt;
    |-&lt;br /&gt;
    !  !! [[File:Traffic_red.png]] !! &lt;br /&gt;
    |-&lt;br /&gt;
    ! [[File:Traffic_red.png]] !!  !! [[File:Traffic_red.png]]&lt;br /&gt;
    |-&lt;br /&gt;
    !  !! [[File:Traffic_red.png]] !! &lt;br /&gt;
    |}&lt;br /&gt;
!&lt;br /&gt;
    {| border=&amp;quot;0&amp;quot; cellpadding=&amp;quot;2&amp;quot; cellspacing=&amp;quot;0&amp;quot; style=&amp;quot;border-collapse: collapse;&amp;quot;&lt;br /&gt;
    |+ '''State 3'''&lt;br /&gt;
    |-&lt;br /&gt;
    !  !! [[File:Traffic_red.png]] !! &lt;br /&gt;
    |-&lt;br /&gt;
    ! [[File:Traffic_green.png]] !!  !! [[File:Traffic_green.png]]&lt;br /&gt;
    |-&lt;br /&gt;
    !  !! [[File:Traffic_red.png]] !! &lt;br /&gt;
    |}&lt;br /&gt;
|-&lt;br /&gt;
!&lt;br /&gt;
    {| border=&amp;quot;0&amp;quot; cellpadding=&amp;quot;2&amp;quot; cellspacing=&amp;quot;0&amp;quot; style=&amp;quot;border-collapse: collapse;&amp;quot;&lt;br /&gt;
    |+ '''State 4'''&lt;br /&gt;
    |-&lt;br /&gt;
    !  !! [[File:Traffic_red.png]] !! &lt;br /&gt;
    |-&lt;br /&gt;
    ! [[File:Traffic_amber.png]] !!  !! [[File:Traffic_amber.png]]&lt;br /&gt;
    |-&lt;br /&gt;
    !  !! [[File:Traffic_red.png]] !! &lt;br /&gt;
    |}&lt;br /&gt;
!&lt;br /&gt;
    {| border=&amp;quot;0&amp;quot; cellpadding=&amp;quot;2&amp;quot; cellspacing=&amp;quot;0&amp;quot; style=&amp;quot;border-collapse: collapse;&amp;quot;&lt;br /&gt;
    |+ '''State 5'''&lt;br /&gt;
    |-&lt;br /&gt;
    !  !! [[File:Traffic_green.png]] !! &lt;br /&gt;
    |-&lt;br /&gt;
    ! [[File:Traffic_green.png]] !!  !! [[File:Traffic_green.png]]&lt;br /&gt;
    |-&lt;br /&gt;
    !  !! [[File:Traffic_green.png]] !! &lt;br /&gt;
    |}&lt;br /&gt;
!&lt;br /&gt;
    {| border=&amp;quot;0&amp;quot; cellpadding=&amp;quot;2&amp;quot; cellspacing=&amp;quot;0&amp;quot; style=&amp;quot;border-collapse: collapse;&amp;quot;&lt;br /&gt;
    |+ '''State 6'''&lt;br /&gt;
    |-&lt;br /&gt;
    !  !! [[File:Traffic_amber.png]] !! &lt;br /&gt;
    |-&lt;br /&gt;
    ! [[File:Traffic_amber.png]] !!  !! [[File:Traffic_amber.png]]&lt;br /&gt;
    |-&lt;br /&gt;
    !  !! [[File:Traffic_amber.png]] !! &lt;br /&gt;
    |}&lt;br /&gt;
!&lt;br /&gt;
    {| border=&amp;quot;0&amp;quot; cellpadding=&amp;quot;2&amp;quot; cellspacing=&amp;quot;0&amp;quot; style=&amp;quot;border-collapse: collapse;&amp;quot;&lt;br /&gt;
    |+ '''State 7'''&lt;br /&gt;
    |-&lt;br /&gt;
    !  !! [[File:Traffic_amber.png]] !! &lt;br /&gt;
    |-&lt;br /&gt;
    ! [[File:Traffic_green.png]] !!  !! [[File:Traffic_green.png]]&lt;br /&gt;
    |-&lt;br /&gt;
    !  !! [[File:Traffic_amber.png]] !! &lt;br /&gt;
    |}&lt;br /&gt;
|-&lt;br /&gt;
!&lt;br /&gt;
    {| border=&amp;quot;0&amp;quot; cellpadding=&amp;quot;2&amp;quot; cellspacing=&amp;quot;0&amp;quot; style=&amp;quot;border-collapse: collapse;&amp;quot;&lt;br /&gt;
    |+ '''State 8'''&lt;br /&gt;
    |-&lt;br /&gt;
    !  !! [[File:Traffic_green.png]] !! &lt;br /&gt;
    |-&lt;br /&gt;
    ! [[File:Traffic_amber.png]] !!  !! [[File:Traffic_amber.png]]&lt;br /&gt;
    |-&lt;br /&gt;
    !  !! [[File:Traffic_green.png]] !! &lt;br /&gt;
    |}&lt;br /&gt;
!&lt;br /&gt;
    {| border=&amp;quot;0&amp;quot; cellpadding=&amp;quot;2&amp;quot; cellspacing=&amp;quot;0&amp;quot; style=&amp;quot;border-collapse: collapse;&amp;quot;&lt;br /&gt;
    |+ '''State 9'''&lt;br /&gt;
    |-&lt;br /&gt;
    !  !! [[File:Traffic_off.png]] !! &lt;br /&gt;
    |-&lt;br /&gt;
    ! [[File:Traffic_off.png]] !!  !! [[File:Traffic_off.png]]&lt;br /&gt;
    |-&lt;br /&gt;
    !  !! [[File:Traffic_off.png]] !! &lt;br /&gt;
    |}&lt;br /&gt;
|}&lt;/div&gt;</summary>
		<author><name>Gamesnert</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=File:Traffic_off.png&amp;diff=24261</id>
		<title>File:Traffic off.png</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=File:Traffic_off.png&amp;diff=24261"/>
		<updated>2010-08-08T21:08:49Z</updated>

		<summary type="html">&lt;p&gt;Gamesnert: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Gamesnert</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Template:Client_audio_functions&amp;diff=24255</id>
		<title>Template:Client audio functions</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Template:Client_audio_functions&amp;diff=24255"/>
		<updated>2010-08-08T15:41:01Z</updated>

		<summary type="html">&lt;p&gt;Gamesnert: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;*[[playSoundFrontEnd]]&lt;br /&gt;
*[[getRadioChannel]]&lt;br /&gt;
*[[getRadioChannelName]]&lt;br /&gt;
{{New feature|3.0110|1.1|&lt;br /&gt;
*[[getSoundEffects]]&lt;br /&gt;
}}&lt;br /&gt;
*[[getSoundLength]]&lt;br /&gt;
*[[getSoundMaxDistance]]&lt;br /&gt;
{{New feature|3.0110|1.1|&lt;br /&gt;
*[[getSoundMetaTags]]&lt;br /&gt;
}}&lt;br /&gt;
*[[getSoundMinDistance]]&lt;br /&gt;
*[[getSoundPosition]]&lt;br /&gt;
*[[getSoundSpeed]]&lt;br /&gt;
*[[getSoundVolume]]&lt;br /&gt;
*[[isSoundPaused]]&lt;br /&gt;
*[[playSound]]&lt;br /&gt;
*[[playSound3D]]&lt;br /&gt;
*[[setRadioChannel]]&lt;br /&gt;
{{New feature|3.0110|1.1|&lt;br /&gt;
*[[setSoundEffectEnabled]]&lt;br /&gt;
}}&lt;br /&gt;
*[[setSoundMaxDistance]]&lt;br /&gt;
*[[setSoundMinDistance]]&lt;br /&gt;
*[[setSoundPaused]]&lt;br /&gt;
*[[setSoundPosition]]&lt;br /&gt;
*[[setSoundSpeed]]&lt;br /&gt;
*[[setSoundVolume]]&lt;br /&gt;
*[[stopSound]]&lt;/div&gt;</summary>
		<author><name>Gamesnert</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Client_Scripting_Events&amp;diff=24254</id>
		<title>Client Scripting Events</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Client_Scripting_Events&amp;diff=24254"/>
		<updated>2010-08-08T15:12:38Z</updated>

		<summary type="html">&lt;p&gt;Gamesnert: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;pageclass class=&amp;quot;client&amp;quot;&amp;gt;&amp;lt;/pageclass&amp;gt;&lt;br /&gt;
This page lists all '''client-side''' scripting [[event]]s that have been implemented and are available in the Deathmatch mod. To request a function or event, use [[Requested Functions and Events]].&lt;br /&gt;
&lt;br /&gt;
'''Server-side scripting events can be found here: [[Server Scripting Events]]&lt;br /&gt;
&lt;br /&gt;
==Colshape events==&lt;br /&gt;
{{Client_colshape_events}}&lt;br /&gt;
&lt;br /&gt;
==Element events==&lt;br /&gt;
{{Client_element_events}}&lt;br /&gt;
&lt;br /&gt;
==GUI events==&lt;br /&gt;
{{GUI_events}}&lt;br /&gt;
&lt;br /&gt;
==Marker events==&lt;br /&gt;
{{Client_marker_events}}&lt;br /&gt;
&lt;br /&gt;
==Ped events==&lt;br /&gt;
{{Client_ped_events}}&lt;br /&gt;
&lt;br /&gt;
==Player events==&lt;br /&gt;
{{Client_player_events}}&lt;br /&gt;
&lt;br /&gt;
==Projectile events==&lt;br /&gt;
{{Client_projectile_events}}&lt;br /&gt;
&lt;br /&gt;
==Resource events==&lt;br /&gt;
{{Client_resource_events}}&lt;br /&gt;
&lt;br /&gt;
==Sound events==&lt;br /&gt;
{{Sound_events}}&lt;br /&gt;
&lt;br /&gt;
==Vehicle events==&lt;br /&gt;
{{Client_vehicle_events}}&lt;br /&gt;
&lt;br /&gt;
==Other events==&lt;br /&gt;
{{Client_other_events}}&lt;br /&gt;
&lt;br /&gt;
[[pl:Zdarzenia_po_stronie_klienta]]&lt;br /&gt;
[[ru:Client Scripting Events]]&lt;/div&gt;</summary>
		<author><name>Gamesnert</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Sound_events&amp;diff=24253</id>
		<title>Sound events</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Sound_events&amp;diff=24253"/>
		<updated>2010-08-08T15:12:26Z</updated>

		<summary type="html">&lt;p&gt;Gamesnert: moved Sound events to Template:Sound events:&amp;amp;#32;Oops&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;#REDIRECT [[Template:Sound events]]&lt;/div&gt;</summary>
		<author><name>Gamesnert</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Template:Sound_events&amp;diff=24252</id>
		<title>Template:Sound events</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Template:Sound_events&amp;diff=24252"/>
		<updated>2010-08-08T15:12:26Z</updated>

		<summary type="html">&lt;p&gt;Gamesnert: moved Sound events to Template:Sound events:&amp;amp;#32;Oops&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{New feature|3.0110|1.1|&lt;br /&gt;
* [[onClientSoundChangedMeta]]&lt;br /&gt;
* [[onClientSoundFinishedDownload]]&lt;br /&gt;
* [[onClientSoundStream]]&lt;br /&gt;
}}&lt;/div&gt;</summary>
		<author><name>Gamesnert</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Template:Sound_events&amp;diff=24251</id>
		<title>Template:Sound events</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Template:Sound_events&amp;diff=24251"/>
		<updated>2010-08-08T15:11:35Z</updated>

		<summary type="html">&lt;p&gt;Gamesnert: Created page with '{{New feature|3.0110|1.1| * onClientSoundChangedMeta * onClientSoundFinishedDownload * onClientSoundStream }}'&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{New feature|3.0110|1.1|&lt;br /&gt;
* [[onClientSoundChangedMeta]]&lt;br /&gt;
* [[onClientSoundFinishedDownload]]&lt;br /&gt;
* [[onClientSoundStream]]&lt;br /&gt;
}}&lt;/div&gt;</summary>
		<author><name>Gamesnert</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Template:Element_functions&amp;diff=24250</id>
		<title>Template:Element functions</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Template:Element_functions&amp;diff=24250"/>
		<updated>2010-08-08T15:08:48Z</updated>

		<summary type="html">&lt;p&gt;Gamesnert: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;*[[clearElementVisibleTo]]&lt;br /&gt;
*[[cloneElement]]&lt;br /&gt;
*[[createElement]]&lt;br /&gt;
*[[destroyElement]]&lt;br /&gt;
*[[getAllElementData]]&lt;br /&gt;
*[[getAttachedElements]]&lt;br /&gt;
*[[getElementAlpha]]&lt;br /&gt;
{{New feature|3.0110|1.1|&lt;br /&gt;
* [[getElementAttachedOffsets]]&lt;br /&gt;
}}&lt;br /&gt;
*[[getElementAttachedTo]]&lt;br /&gt;
*[[getElementByID]]&lt;br /&gt;
*[[getElementByIndex]]&lt;br /&gt;
*[[getElementChild]]&lt;br /&gt;
*[[getElementChildren]]&lt;br /&gt;
*[[getElementChildrenCount]]&lt;br /&gt;
*[[getElementColShape]]&lt;br /&gt;
*[[getElementData]]&lt;br /&gt;
*[[getElementDimension]]&lt;br /&gt;
*[[getElementHealth]]&lt;br /&gt;
*[[getElementID]]&lt;br /&gt;
*[[getElementInterior]]&lt;br /&gt;
*[[getElementParent]]&lt;br /&gt;
*[[getElementPosition]]&lt;br /&gt;
{{New feature|3.0004|1.0.4|&lt;br /&gt;
*[[getElementRotation]]&lt;br /&gt;
}}&lt;br /&gt;
*[[getElementsByType]]&lt;br /&gt;
*[[getElementsWithinColShape]]&lt;br /&gt;
*[[getElementType]]&lt;br /&gt;
*[[getElementVelocity]]&lt;br /&gt;
*[[getElementZoneName]]&lt;br /&gt;
*[[getRootElement]]&lt;br /&gt;
*[[isElement]]&lt;br /&gt;
*[[isElementAttached]]&lt;br /&gt;
{{New feature|3.0004|1.0.4|&lt;br /&gt;
*[[isElementDoubleSided]]&lt;br /&gt;
}}&lt;br /&gt;
*[[isElementVisibleTo]]&lt;br /&gt;
*[[isElementWithinColShape]]&lt;br /&gt;
*[[removeElementData]]&lt;br /&gt;
*[[setElementAlpha]]&lt;br /&gt;
*[[setElementData]]&lt;br /&gt;
{{New feature|3.0004|1.0.4|&lt;br /&gt;
*[[setElementDoubleSided]]&lt;br /&gt;
}}&lt;br /&gt;
*[[setElementDimension]]&lt;br /&gt;
*[[setElementHealth]]&lt;br /&gt;
*[[setElementID]]&lt;br /&gt;
*[[setElementInterior]]&lt;br /&gt;
*[[setElementParent]]&lt;br /&gt;
*[[setElementPosition]]&lt;br /&gt;
{{New feature|3.0004|1.0.4|&lt;br /&gt;
*[[setElementSyncer]]&lt;br /&gt;
*[[setElementRotation]]&lt;br /&gt;
}}&lt;br /&gt;
*[[setElementVelocity]]&lt;br /&gt;
*[[setElementVisibleTo]]&lt;br /&gt;
{{New feature|3|1.0|&lt;br /&gt;
*[[attachElements]]&lt;br /&gt;
*[[detachElements]]&lt;br /&gt;
*[[getElementModel]]&lt;br /&gt;
*[[getElementSyncer]]&lt;br /&gt;
*[[isElementInWater]]&lt;br /&gt;
*[[setElementAttachedOffsets]]&lt;br /&gt;
*[[setElementModel]]&lt;br /&gt;
}}&lt;br /&gt;
{{Deprecated_feature|3|1.0|&lt;br /&gt;
*[[attachElementToElement]]&lt;br /&gt;
*[[detachElementFromElement]]&lt;br /&gt;
}}&lt;/div&gt;</summary>
		<author><name>Gamesnert</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Template:Client_element_functions&amp;diff=24249</id>
		<title>Template:Client element functions</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Template:Client_element_functions&amp;diff=24249"/>
		<updated>2010-08-08T15:07:50Z</updated>

		<summary type="html">&lt;p&gt;Gamesnert: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;*[[createElement]]&lt;br /&gt;
*[[destroyElement]]&lt;br /&gt;
*[[getAttachedElements]]&lt;br /&gt;
{{New feature|3.0110|1.1|&lt;br /&gt;
* [[getElementAttachedOffsets]]&lt;br /&gt;
}}&lt;br /&gt;
*[[getElementAttachedTo]]&lt;br /&gt;
*[[getElementBoundingBox]]&lt;br /&gt;
*[[getElementByID]]&lt;br /&gt;
*[[getElementChild]]&lt;br /&gt;
*[[getElementChildren]]&lt;br /&gt;
*[[getElementChildrenCount]]&lt;br /&gt;
*[[getElementData]]&lt;br /&gt;
*[[getElementDimension]]&lt;br /&gt;
*[[getElementDistanceFromCentreOfMassToBaseOfModel]]&lt;br /&gt;
*[[getElementHealth]]&lt;br /&gt;
*[[getElementID]]&lt;br /&gt;
*[[getElementInterior]]&lt;br /&gt;
*[[getElementParent]]&lt;br /&gt;
*[[getElementPosition]]&lt;br /&gt;
*[[getElementRadius]]&lt;br /&gt;
*[[getElementsByType]]&lt;br /&gt;
*[[getElementsWithinColShape]]&lt;br /&gt;
*[[getElementType]]&lt;br /&gt;
*[[getElementVelocity]]&lt;br /&gt;
*[[getRootElement]]&lt;br /&gt;
*[[isElement]]&lt;br /&gt;
*[[isElementAttached]]&lt;br /&gt;
*[[isElementLocal]]&lt;br /&gt;
*[[isElementOnScreen]]&lt;br /&gt;
*[[isElementStreamable]]&lt;br /&gt;
*[[isElementStreamedIn]]&lt;br /&gt;
*[[isElementWithinColShape]]&lt;br /&gt;
*[[setElementAlpha]]&lt;br /&gt;
*[[setElementCollisionsEnabled]]&lt;br /&gt;
*[[setElementData]]&lt;br /&gt;
*[[setElementDimension]]&lt;br /&gt;
{{New feature|3.0004|1.0.4|&lt;br /&gt;
*[[setElementDoubleSided]]&lt;br /&gt;
}}&lt;br /&gt;
*[[setElementHealth]]&lt;br /&gt;
*[[setElementInterior]]&lt;br /&gt;
*[[setElementParent]]&lt;br /&gt;
*[[setElementPosition]]&lt;br /&gt;
*[[setElementStreamable]]&lt;br /&gt;
*[[setElementVelocity]]&lt;br /&gt;
{{New feature|3|1.0|&lt;br /&gt;
*[[attachElements]]&lt;br /&gt;
*[[detachElements]]&lt;br /&gt;
*[[getElementColShape]]&lt;br /&gt;
*[[getElementMatrix]]&lt;br /&gt;
*[[getElementModel]]&lt;br /&gt;
*[[getElementRotation]]&lt;br /&gt;
*[[isElementInWater]]&lt;br /&gt;
*[[isElementSyncer]]&lt;br /&gt;
*[[setElementModel]]&lt;br /&gt;
*[[setElementRotation]]&lt;br /&gt;
}}&lt;br /&gt;
{{New feature|3.0001|1.0.1|&lt;br /&gt;
*[[isElementCollidableWith]]&lt;br /&gt;
*[[setElementCollidableWith]]&lt;br /&gt;
}}&lt;br /&gt;
{{New feature|3.0004|1.0.4|&lt;br /&gt;
*[[isElementDoubleSided]]&lt;br /&gt;
}}&lt;br /&gt;
{{Deprecated_feature|3|1.0|&lt;br /&gt;
*[[attachElementToElement]]&lt;br /&gt;
*[[detachElementFromElement]]&lt;br /&gt;
}}&lt;/div&gt;</summary>
		<author><name>Gamesnert</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Template:Client_world_functions&amp;diff=24248</id>
		<title>Template:Client world functions</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Template:Client_world_functions&amp;diff=24248"/>
		<updated>2010-08-08T15:03:46Z</updated>

		<summary type="html">&lt;p&gt;Gamesnert: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{New feature|3.0110|1.1|&lt;br /&gt;
* [[areTrafficLightsLocked]]&lt;br /&gt;
}}&lt;br /&gt;
*[[getGameSpeed|getGameSpeed]]&lt;br /&gt;
*[[getGravity|getGravity]]&lt;br /&gt;
*[[getGroundPosition|getGroundPosition]]&lt;br /&gt;
*[[getScreenFromWorldPosition|getScreenFromWorldPosition]]&lt;br /&gt;
*[[getTime|getTime]]&lt;br /&gt;
{{New feature|3.0110|1.1|&lt;br /&gt;
* [[getTrafficLightState]]&lt;br /&gt;
}}&lt;br /&gt;
*[[getWeather|getWeather]]&lt;br /&gt;
*[[getWorldFromScreenPosition|getWorldFromScreenPosition]]&lt;br /&gt;
*[[getZoneName|getZoneName]]&lt;br /&gt;
*[[isLineOfSightClear|isLineOfSightClear]]&lt;br /&gt;
*[[processLineOfSight|processLineOfSight]]&lt;br /&gt;
*[[resetSkyGradient|resetSkyGradient]]&lt;br /&gt;
*[[setGameSpeed|setGameSpeed]]&lt;br /&gt;
*[[setGravity|setGravity]]&lt;br /&gt;
*[[setSkyGradient|setSkyGradient]]&lt;br /&gt;
*[[setTime|setTime]]&lt;br /&gt;
{{New feature|3.0110|1.1|&lt;br /&gt;
* [[setTrafficLightState]]&lt;br /&gt;
* [[setTrafficLightsLocked]]&lt;br /&gt;
}}&lt;br /&gt;
*[[setWeather|setWeather]]&lt;br /&gt;
*[[setWeatherBlended|setWeatherBlended]]&lt;br /&gt;
*[[testLineAgainstWater|testLineAgainstWater]]&lt;br /&gt;
{{New feature|3|1.0|&lt;br /&gt;
*[[getCloudsEnabled|getCloudsEnabled]]&lt;br /&gt;
*[[getGarageBoundingBox|getGarageBoundingBox]]&lt;br /&gt;
*[[getGaragePosition|getGaragePosition]]&lt;br /&gt;
*[[getGarageSize|getGarageSize]]&lt;br /&gt;
*[[getMinuteDuration|getMinuteDuration]]&lt;br /&gt;
*[[getPlayerBlurLevel|getBlurLevel]]&lt;br /&gt;
*[[isGarageOpen|isGarageOpen]]&lt;br /&gt;
*[[isWorldSpecialPropertyEnabled|isWorldSpecialPropertyEnabled]]&lt;br /&gt;
*[[setCloudsEnabled|setCloudsEnabled]]&lt;br /&gt;
*[[setGarageOpen|setGarageOpen]]&lt;br /&gt;
*[[setJetpackMaxHeight|setJetpackMaxHeight]]&lt;br /&gt;
*[[setMinuteDuration|setMinuteDuration]]&lt;br /&gt;
*[[setPlayerBlurLevel|setBlurLevel]]&lt;br /&gt;
*[[setWorldSpecialPropertyEnabled|setWorldSpecialPropertyEnabled]]&lt;br /&gt;
}}&lt;/div&gt;</summary>
		<author><name>Gamesnert</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=AreTrafficLightsLocked&amp;diff=24247</id>
		<title>AreTrafficLightsLocked</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=AreTrafficLightsLocked&amp;diff=24247"/>
		<updated>2010-08-08T14:58:41Z</updated>

		<summary type="html">&lt;p&gt;Gamesnert: Created page with '__NOTOC__ {{Server client function}} Gets whether the traffic lights are currently locked or not. If the lights are locked, it means they won't change unless you do [[setTrafficL…'&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__&lt;br /&gt;
{{Server client function}}&lt;br /&gt;
Gets whether the traffic lights are currently locked or not. If the lights are locked, it means they won't change unless you do [[setTrafficLightState]].&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 areTrafficLightsLocked ( )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns ''true'' the traffic lights are currently locked, ''false'' otherwise.&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
This example doesn't exist&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{World_functions}}&lt;br /&gt;
&lt;br /&gt;
[[Category:Needs_Example]]&lt;/div&gt;</summary>
		<author><name>Gamesnert</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=SetTrafficLightsLocked&amp;diff=24246</id>
		<title>SetTrafficLightsLocked</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=SetTrafficLightsLocked&amp;diff=24246"/>
		<updated>2010-08-08T14:57:11Z</updated>

		<summary type="html">&lt;p&gt;Gamesnert: Created page with '__NOTOC__ {{Server client function}} Toggles whether you want the traffic lights to be locked. If the lights are locked, it means they won't change unless you do [[setTrafficLigh…'&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__&lt;br /&gt;
{{Server client function}}&lt;br /&gt;
Toggles whether you want the traffic lights to be locked. If the lights are locked, it means they won't change unless you do [[setTrafficLightState]].&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 setTrafficLightsLocked ( bool toggle )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Required Arguments===&lt;br /&gt;
*'''toggle''': A [[bool]] indicating whether you want the traffic lights to change automatically, or not&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns ''true'' if the successful, ''false'' otherwise.&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
This example doesn't exist&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{World_functions}}&lt;br /&gt;
&lt;br /&gt;
[[Category:Needs_Example]]&lt;/div&gt;</summary>
		<author><name>Gamesnert</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=GetTrafficLightState&amp;diff=24245</id>
		<title>GetTrafficLightState</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=GetTrafficLightState&amp;diff=24245"/>
		<updated>2010-08-08T14:54:50Z</updated>

		<summary type="html">&lt;p&gt;Gamesnert: Created page with '__NOTOC__ {{Server client function}} Gets the current traffic light state. This state controls the traffic light colors. For instance, state '''1''' will cause the north and sout…'&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__&lt;br /&gt;
{{Server client function}}&lt;br /&gt;
Gets the current traffic light state. This state controls the traffic light colors. For instance, state '''1''' will cause the north and south traffic lights to be amber, and the ones left and east will turn red.&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 setTrafficLightState ( )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns the current [[Traffic_light_states|state]] of the traffic lights.&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
This example doesn't exist&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{World_functions}}&lt;br /&gt;
&lt;br /&gt;
[[Category:Needs_Example]]&lt;/div&gt;</summary>
		<author><name>Gamesnert</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Template:World_functions&amp;diff=24244</id>
		<title>Template:World functions</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Template:World_functions&amp;diff=24244"/>
		<updated>2010-08-08T14:52:14Z</updated>

		<summary type="html">&lt;p&gt;Gamesnert: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{New feature|3.0110|1.1|&lt;br /&gt;
* [[areTrafficLightsLocked]]&lt;br /&gt;
}}&lt;br /&gt;
*[[getCloudsEnabled]]&lt;br /&gt;
*[[getGameSpeed]]&lt;br /&gt;
*[[getGravity]]&lt;br /&gt;
*[[getTime]]&lt;br /&gt;
{{New feature|3.0110|1.1|&lt;br /&gt;
* [[getTrafficLightState]]&lt;br /&gt;
}}&lt;br /&gt;
*[[getWeather]]&lt;br /&gt;
*[[getZoneName]]&lt;br /&gt;
*[[isGarageOpen]]&lt;br /&gt;
*[[resetSkyGradient]]&lt;br /&gt;
*[[setCloudsEnabled]]&lt;br /&gt;
*[[setGameSpeed]]&lt;br /&gt;
*[[setGarageOpen]]&lt;br /&gt;
*[[setGravity]]&lt;br /&gt;
*[[setMinuteDuration]]&lt;br /&gt;
*[[setSkyGradient]]&lt;br /&gt;
*[[setTime]]&lt;br /&gt;
{{New feature|3.0110|1.1|&lt;br /&gt;
* [[setTrafficLightState]]&lt;br /&gt;
* [[setTrafficLightsLocked]]&lt;br /&gt;
}}&lt;br /&gt;
*[[setWeather]]&lt;br /&gt;
*[[setWeatherBlended]]&lt;/div&gt;</summary>
		<author><name>Gamesnert</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=SetTrafficLightState&amp;diff=24243</id>
		<title>SetTrafficLightState</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=SetTrafficLightState&amp;diff=24243"/>
		<updated>2010-08-08T14:49:39Z</updated>

		<summary type="html">&lt;p&gt;Gamesnert: Created page with '__NOTOC__ {{Server client function}} Sets the current traffic light state. This state controls the traffic light colors. For instance, state '''1''' will cause the north and sout…'&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__&lt;br /&gt;
{{Server client function}}&lt;br /&gt;
Sets the current traffic light state. This state controls the traffic light colors. For instance, state '''1''' will cause the north and south traffic lights to be amber, and the ones left and east will turn red.&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 setTrafficLightState ( int state )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Required Arguments===&lt;br /&gt;
*'''state''': The [[Traffic_light_states|state]] you wish to use&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns ''true'' if the state was successfully set, ''false'' otherwise.&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
This example doesn't exist&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{World_functions}}&lt;br /&gt;
&lt;br /&gt;
[[Category:Needs_Example]]&lt;/div&gt;</summary>
		<author><name>Gamesnert</name></author>
	</entry>
</feed>