<?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=MX+Master</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=MX+Master"/>
	<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/wiki/Special:Contributions/MX_Master"/>
	<updated>2026-04-25T21:06:03Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.39.3</generator>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Template:Handling_Properties&amp;diff=29596</id>
		<title>Template:Handling Properties</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Template:Handling_Properties&amp;diff=29596"/>
		<updated>2012-03-07T16:03:48Z</updated>

		<summary type="html">&lt;p&gt;MX Master: Changed type of 'headLight' and 'tailLight' to 'String'. Added available values. Data based on testing of MTASA v1.3-release-3898&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;br&amp;gt; http://projectcerbera.com/gta/sa/tutorials/handling &amp;lt;br&amp;gt;&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellpadding=&amp;quot;1&amp;quot; cellspacing=&amp;quot;0&amp;quot; align=&amp;quot;center&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; style=&amp;quot;background:#afafaf;&amp;quot;|Property&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; style=&amp;quot;background:#afafaf;&amp;quot;|Value&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; style=&amp;quot;background:#afafaf;&amp;quot;|Minimum value&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; style=&amp;quot;background:#afafaf;&amp;quot;|Maximum value&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; style=&amp;quot;background:#afafaf;&amp;quot;|Notes&lt;br /&gt;
|-&lt;br /&gt;
| scope=&amp;quot;row&amp;quot; style=&amp;quot;background:#cfcfcf;&amp;quot;|'''mass'''&lt;br /&gt;
| style=&amp;quot;background:#efefef;&amp;quot;|Float&lt;br /&gt;
| style=&amp;quot;background:#efefef;&amp;quot;|1.0&lt;br /&gt;
| style=&amp;quot;background:#efefef;&amp;quot;|100000.0&lt;br /&gt;
| style=&amp;quot;background:#efefef;&amp;quot;|&lt;br /&gt;
|-&lt;br /&gt;
| scope=&amp;quot;row&amp;quot; style=&amp;quot;background:#cfcfcf;&amp;quot;|'''turnMass'''&lt;br /&gt;
| style=&amp;quot;background:#efefef;&amp;quot;|Float&lt;br /&gt;
| style=&amp;quot;background:#efefef;&amp;quot;|0.0&lt;br /&gt;
| style=&amp;quot;background:#efefef;&amp;quot;|1000000.0&lt;br /&gt;
| style=&amp;quot;background:#efefef;&amp;quot;|&lt;br /&gt;
|-&lt;br /&gt;
| scope=&amp;quot;row&amp;quot; style=&amp;quot;background:#cfcfcf;&amp;quot;|'''dragCoeff'''&lt;br /&gt;
| style=&amp;quot;background:#efefef;&amp;quot;|Float&lt;br /&gt;
| style=&amp;quot;background:#efefef;&amp;quot;|-200.0&lt;br /&gt;
| style=&amp;quot;background:#efefef;&amp;quot;|200.0&lt;br /&gt;
| style=&amp;quot;background:#efefef;&amp;quot;|&lt;br /&gt;
|-&lt;br /&gt;
| scope=&amp;quot;row&amp;quot; style=&amp;quot;background:#cfcfcf;&amp;quot;|'''centerOfMass'''&lt;br /&gt;
| style=&amp;quot;background:#efefef;&amp;quot;|Table = { [1]=posX, [2]=posY, [3]=posZ } (floats)&lt;br /&gt;
| style=&amp;quot;background:#efefef;&amp;quot;|-10.0&lt;br /&gt;
| style=&amp;quot;background:#efefef;&amp;quot;|10.0&lt;br /&gt;
| style=&amp;quot;background:#efefef;&amp;quot;|Get returns a table, set needs a table.&lt;br /&gt;
|-&lt;br /&gt;
| scope=&amp;quot;row&amp;quot; style=&amp;quot;background:#cfcfcf;&amp;quot;|'''percentSubmerged'''&lt;br /&gt;
| style=&amp;quot;background:#efefef;&amp;quot;|Integer&lt;br /&gt;
| style=&amp;quot;background:#efefef;&amp;quot;|1&lt;br /&gt;
| style=&amp;quot;background:#efefef;&amp;quot;|99999&lt;br /&gt;
| style=&amp;quot;background:#efefef;&amp;quot;|&lt;br /&gt;
|-&lt;br /&gt;
| scope=&amp;quot;row&amp;quot; style=&amp;quot;background:#cfcfcf;&amp;quot;|'''tractionMultiplier'''&lt;br /&gt;
| style=&amp;quot;background:#efefef;&amp;quot;|Float&lt;br /&gt;
| style=&amp;quot;background:#efefef;&amp;quot;|-100000.0&lt;br /&gt;
| style=&amp;quot;background:#efefef;&amp;quot;|100000.0&lt;br /&gt;
| style=&amp;quot;background:#efefef;&amp;quot;|&lt;br /&gt;
|-&lt;br /&gt;
| scope=&amp;quot;row&amp;quot; style=&amp;quot;background:#cfcfcf;&amp;quot;|'''tractionLoss'''&lt;br /&gt;
| style=&amp;quot;background:#efefef;&amp;quot;|Float&lt;br /&gt;
| style=&amp;quot;background:#efefef;&amp;quot;|0.0&lt;br /&gt;
| style=&amp;quot;background:#efefef;&amp;quot;|100.0&lt;br /&gt;
| style=&amp;quot;background:#efefef;&amp;quot;|&lt;br /&gt;
|-&lt;br /&gt;
| scope=&amp;quot;row&amp;quot; style=&amp;quot;background:#cfcfcf;&amp;quot;|'''tractionBias'''&lt;br /&gt;
| style=&amp;quot;background:#efefef;&amp;quot;|Float&lt;br /&gt;
| style=&amp;quot;background:#efefef;&amp;quot;|0.0&lt;br /&gt;
| style=&amp;quot;background:#efefef;&amp;quot;|1.0&lt;br /&gt;
| style=&amp;quot;background:#efefef;&amp;quot;|&lt;br /&gt;
|-&lt;br /&gt;
| scope=&amp;quot;row&amp;quot; style=&amp;quot;background:#cfcfcf;&amp;quot;|'''numberOfGears'''&lt;br /&gt;
| style=&amp;quot;background:#efefef;&amp;quot;|Integer&lt;br /&gt;
| style=&amp;quot;background:#efefef;&amp;quot;|1&lt;br /&gt;
| style=&amp;quot;background:#efefef;&amp;quot;|5&lt;br /&gt;
| style=&amp;quot;background:#efefef;&amp;quot;|&lt;br /&gt;
|-&lt;br /&gt;
| scope=&amp;quot;row&amp;quot; style=&amp;quot;background:#cfcfcf;&amp;quot;|'''maxVelocity'''&lt;br /&gt;
| style=&amp;quot;background:#efefef;&amp;quot;|Float&lt;br /&gt;
| style=&amp;quot;background:#efefef;&amp;quot;|0.1&lt;br /&gt;
| style=&amp;quot;background:#efefef;&amp;quot;|200000.0&lt;br /&gt;
| style=&amp;quot;background:#efefef;&amp;quot;|&lt;br /&gt;
|-&lt;br /&gt;
| scope=&amp;quot;row&amp;quot; style=&amp;quot;background:#cfcfcf;&amp;quot;|'''engineAcceleration'''&lt;br /&gt;
| style=&amp;quot;background:#efefef;&amp;quot;|Float&lt;br /&gt;
| style=&amp;quot;background:#efefef;&amp;quot;|0.0&lt;br /&gt;
| style=&amp;quot;background:#efefef;&amp;quot;|100000.0&lt;br /&gt;
| style=&amp;quot;background:#efefef;&amp;quot;|&lt;br /&gt;
|-&lt;br /&gt;
| scope=&amp;quot;row&amp;quot; style=&amp;quot;background:#cfcfcf;&amp;quot;|'''engineInertia'''&lt;br /&gt;
| style=&amp;quot;background:#efefef;&amp;quot;|Float&lt;br /&gt;
| style=&amp;quot;background:#efefef;&amp;quot;|-1000.0&lt;br /&gt;
| style=&amp;quot;background:#efefef;&amp;quot;|1000.0&lt;br /&gt;
| style=&amp;quot;background:#efefef;&amp;quot;|Inertia of 0 can cause a LSOD. (Unable to divide by zero)&lt;br /&gt;
|-&lt;br /&gt;
| scope=&amp;quot;row&amp;quot; style=&amp;quot;background:#cfcfcf;&amp;quot;|'''driveType'''&lt;br /&gt;
| style=&amp;quot;background:#efefef;&amp;quot;|String&lt;br /&gt;
| style=&amp;quot;background:#efefef;&amp;quot;|N/A&lt;br /&gt;
| style=&amp;quot;background:#efefef;&amp;quot;|N/A&lt;br /&gt;
| style=&amp;quot;background:#efefef;&amp;quot;|Use 'rwd', 'fwd' or 'awd'.&lt;br /&gt;
|-&lt;br /&gt;
| scope=&amp;quot;row&amp;quot; style=&amp;quot;background:#cfcfcf;&amp;quot;|'''engineType'''&lt;br /&gt;
| style=&amp;quot;background:#efefef;&amp;quot;|String&lt;br /&gt;
| style=&amp;quot;background:#efefef;&amp;quot;|N/A&lt;br /&gt;
| style=&amp;quot;background:#efefef;&amp;quot;|N/A&lt;br /&gt;
| style=&amp;quot;background:#efefef;&amp;quot;|Use 'petrol', 'diesel' or 'electric'.&lt;br /&gt;
|-&lt;br /&gt;
| scope=&amp;quot;row&amp;quot; style=&amp;quot;background:#cfcfcf;&amp;quot;|'''brakeDeceleration'''&lt;br /&gt;
| style=&amp;quot;background:#efefef;&amp;quot;|Float&lt;br /&gt;
| style=&amp;quot;background:#efefef;&amp;quot;|0.1&lt;br /&gt;
| style=&amp;quot;background:#efefef;&amp;quot;|100000.0&lt;br /&gt;
| style=&amp;quot;background:#efefef;&amp;quot;|&lt;br /&gt;
|-&lt;br /&gt;
| scope=&amp;quot;row&amp;quot; style=&amp;quot;background:#cfcfcf;&amp;quot;|'''brakeBias'''&lt;br /&gt;
| style=&amp;quot;background:#efefef;&amp;quot;|Float&lt;br /&gt;
| style=&amp;quot;background:#efefef;&amp;quot;|0.0&lt;br /&gt;
| style=&amp;quot;background:#efefef;&amp;quot;|1.0&lt;br /&gt;
| style=&amp;quot;background:#efefef;&amp;quot;|&lt;br /&gt;
|-&lt;br /&gt;
| scope=&amp;quot;row&amp;quot; style=&amp;quot;background:#cfcfcf;&amp;quot;|'''ABS'''&lt;br /&gt;
| style=&amp;quot;background:#efefef;&amp;quot;|Boolean&lt;br /&gt;
| style=&amp;quot;background:#efefef;&amp;quot;|true&lt;br /&gt;
| style=&amp;quot;background:#efefef;&amp;quot;|false&lt;br /&gt;
| style=&amp;quot;background:#efefef;&amp;quot;|Has no effect.&lt;br /&gt;
|-&lt;br /&gt;
| scope=&amp;quot;row&amp;quot; style=&amp;quot;background:#cfcfcf;&amp;quot;|'''steeringLock'''&lt;br /&gt;
| style=&amp;quot;background:#efefef;&amp;quot;|Float&lt;br /&gt;
| style=&amp;quot;background:#efefef;&amp;quot;|0.0&lt;br /&gt;
| style=&amp;quot;background:#efefef;&amp;quot;|360.0&lt;br /&gt;
| style=&amp;quot;background:#efefef;&amp;quot;|&lt;br /&gt;
|-&lt;br /&gt;
| scope=&amp;quot;row&amp;quot; style=&amp;quot;background:#cfcfcf;&amp;quot;|'''suspensionForceLevel'''&lt;br /&gt;
| style=&amp;quot;background:#efefef;&amp;quot;|Float&lt;br /&gt;
| style=&amp;quot;background:#efefef;&amp;quot;|0.0&lt;br /&gt;
| style=&amp;quot;background:#efefef;&amp;quot;|100.0&lt;br /&gt;
| style=&amp;quot;background:#efefef;&amp;quot;|&lt;br /&gt;
|-&lt;br /&gt;
| scope=&amp;quot;row&amp;quot; style=&amp;quot;background:#cfcfcf;&amp;quot;|'''suspensionDamping'''&lt;br /&gt;
| style=&amp;quot;background:#efefef;&amp;quot;|Float&lt;br /&gt;
| style=&amp;quot;background:#efefef;&amp;quot;|0.0&lt;br /&gt;
| style=&amp;quot;background:#efefef;&amp;quot;|100.0&lt;br /&gt;
| style=&amp;quot;background:#efefef;&amp;quot;|&lt;br /&gt;
|-&lt;br /&gt;
| scope=&amp;quot;row&amp;quot; style=&amp;quot;background:#cfcfcf;&amp;quot;|'''suspensionHighSpeedDamping'''&lt;br /&gt;
| style=&amp;quot;background:#efefef;&amp;quot;|Float&lt;br /&gt;
| style=&amp;quot;background:#efefef;&amp;quot;|0.0&lt;br /&gt;
| style=&amp;quot;background:#efefef;&amp;quot;|600.0&lt;br /&gt;
| style=&amp;quot;background:#efefef;&amp;quot;|&lt;br /&gt;
|-&lt;br /&gt;
| scope=&amp;quot;row&amp;quot; style=&amp;quot;background:#cfcfcf;&amp;quot;|'''suspensionUpperLimit'''&lt;br /&gt;
| style=&amp;quot;background:#efefef;&amp;quot;|Float&lt;br /&gt;
| style=&amp;quot;background:#efefef;&amp;quot;|-50.0&lt;br /&gt;
| style=&amp;quot;background:#efefef;&amp;quot;|50.0&lt;br /&gt;
| style=&amp;quot;background:#efefef;&amp;quot;|Can't be equal to suspensionLowerLimit.&lt;br /&gt;
|-&lt;br /&gt;
| scope=&amp;quot;row&amp;quot; style=&amp;quot;background:#cfcfcf;&amp;quot;|'''suspensionLowerLimit'''&lt;br /&gt;
| style=&amp;quot;background:#efefef;&amp;quot;|Float&lt;br /&gt;
| style=&amp;quot;background:#efefef;&amp;quot;|-50.0&lt;br /&gt;
| style=&amp;quot;background:#efefef;&amp;quot;|50.0&lt;br /&gt;
| style=&amp;quot;background:#efefef;&amp;quot;|Can't be equal to suspensionUpperLimit.&lt;br /&gt;
|-&lt;br /&gt;
| scope=&amp;quot;row&amp;quot; style=&amp;quot;background:#cfcfcf;&amp;quot;|'''suspensionFrontRearBias'''&lt;br /&gt;
| style=&amp;quot;background:#efefef;&amp;quot;|Float&lt;br /&gt;
| style=&amp;quot;background:#efefef;&amp;quot;|0.0&lt;br /&gt;
| style=&amp;quot;background:#efefef;&amp;quot;|1.0&lt;br /&gt;
| style=&amp;quot;background:#efefef;&amp;quot;|Hardcoded maximum is 3.0, but values above 1.0 have no effect.&lt;br /&gt;
|-&lt;br /&gt;
| scope=&amp;quot;row&amp;quot; style=&amp;quot;background:#cfcfcf;&amp;quot;|'''suspensionAntiDiveMultiplier'''&lt;br /&gt;
| style=&amp;quot;background:#efefef;&amp;quot;|Float&lt;br /&gt;
| style=&amp;quot;background:#efefef;&amp;quot;|0.0&lt;br /&gt;
| style=&amp;quot;background:#efefef;&amp;quot;|30.0&lt;br /&gt;
| style=&amp;quot;background:#efefef;&amp;quot;|&lt;br /&gt;
|-&lt;br /&gt;
| scope=&amp;quot;row&amp;quot; style=&amp;quot;background:#cfcfcf;&amp;quot;|'''seatOffsetDistance'''&lt;br /&gt;
| style=&amp;quot;background:#efefef;&amp;quot;|Float&lt;br /&gt;
| style=&amp;quot;background:#efefef;&amp;quot;|-20.0&lt;br /&gt;
| style=&amp;quot;background:#efefef;&amp;quot;|20.0&lt;br /&gt;
| style=&amp;quot;background:#efefef;&amp;quot;|&lt;br /&gt;
|-&lt;br /&gt;
| scope=&amp;quot;row&amp;quot; style=&amp;quot;background:#cfcfcf;&amp;quot;|'''collisionDamageMultiplier'''&lt;br /&gt;
| style=&amp;quot;background:#efefef;&amp;quot;|Float&lt;br /&gt;
| style=&amp;quot;background:#efefef;&amp;quot;|0.0&lt;br /&gt;
| style=&amp;quot;background:#efefef;&amp;quot;|10.0&lt;br /&gt;
| style=&amp;quot;background:#efefef;&amp;quot;|&lt;br /&gt;
|-&lt;br /&gt;
| scope=&amp;quot;row&amp;quot; style=&amp;quot;background:#cfcfcf;&amp;quot;|'''monetary'''&lt;br /&gt;
| style=&amp;quot;background:#efefef;&amp;quot;|Integer&lt;br /&gt;
| style=&amp;quot;background:#efefef;&amp;quot;|0&lt;br /&gt;
| style=&amp;quot;background:#efefef;&amp;quot;|230195200&lt;br /&gt;
| style=&amp;quot;background:#efefef;&amp;quot;|Get works, set is disabled.&lt;br /&gt;
|-&lt;br /&gt;
| scope=&amp;quot;row&amp;quot; style=&amp;quot;background:#cfcfcf;&amp;quot;|'''modelFlags'''&lt;br /&gt;
| style=&amp;quot;background:#efefef;&amp;quot;|Hexadecimal/Decimal&lt;br /&gt;
| style=&amp;quot;background:#efefef;&amp;quot;|N/A&lt;br /&gt;
| style=&amp;quot;background:#efefef;&amp;quot;|N/A&lt;br /&gt;
| style=&amp;quot;background:#efefef;&amp;quot;|Property uses a decimal value, generated by a hexadecimal value. Either use 0x12345678 or tonumber ( &amp;quot;0x12345678&amp;quot; ). See [http://projectcerbera.com/gta/sa/tutorials/handling projectcerbera] for possible values.&lt;br /&gt;
|-&lt;br /&gt;
| scope=&amp;quot;row&amp;quot; style=&amp;quot;background:#cfcfcf;&amp;quot;|'''handlingFlags'''&lt;br /&gt;
| style=&amp;quot;background:#efefef;&amp;quot;|Hexadecimal/Decimal&lt;br /&gt;
| style=&amp;quot;background:#efefef;&amp;quot;|N/A&lt;br /&gt;
| style=&amp;quot;background:#efefef;&amp;quot;|N/A&lt;br /&gt;
| style=&amp;quot;background:#efefef;&amp;quot;|Property uses a decimal value, generated by a hexadecimal value. Either use 0x12345678 or tonumber ( &amp;quot;0x12345678&amp;quot; ). See [http://projectcerbera.com/gta/sa/tutorials/handling projectcerbera] for possible values.&lt;br /&gt;
|-&lt;br /&gt;
| scope=&amp;quot;row&amp;quot; style=&amp;quot;background:#cfcfcf;&amp;quot;|'''headLight'''&lt;br /&gt;
| style=&amp;quot;background:#efefef;&amp;quot;|String&lt;br /&gt;
| style=&amp;quot;background:#efefef;&amp;quot;|N/A&lt;br /&gt;
| style=&amp;quot;background:#efefef;&amp;quot;|N/A&lt;br /&gt;
| style=&amp;quot;background:#efefef;&amp;quot;|Get works, set is disabled. Available values: 'long', 'small', 'big', 'tall'.&lt;br /&gt;
|-&lt;br /&gt;
| scope=&amp;quot;row&amp;quot; style=&amp;quot;background:#cfcfcf;&amp;quot;|'''tailLight'''&lt;br /&gt;
| style=&amp;quot;background:#efefef;&amp;quot;|String&lt;br /&gt;
| style=&amp;quot;background:#efefef;&amp;quot;|N/A&lt;br /&gt;
| style=&amp;quot;background:#efefef;&amp;quot;|N/A&lt;br /&gt;
| style=&amp;quot;background:#efefef;&amp;quot;|Get works, set is disabled. Available values: 'long', 'small', 'big', 'tall'.&lt;br /&gt;
|-&lt;br /&gt;
| scope=&amp;quot;row&amp;quot; style=&amp;quot;background:#cfcfcf;&amp;quot;|'''animGroup'''&lt;br /&gt;
| style=&amp;quot;background:#efefef;&amp;quot;|Integer&lt;br /&gt;
| style=&amp;quot;background:#efefef;&amp;quot;|??&lt;br /&gt;
| style=&amp;quot;background:#efefef;&amp;quot;|??&lt;br /&gt;
| style=&amp;quot;background:#efefef;&amp;quot;|Get works, set is disabled due to people not knowing this property was vehicle-based and caused crashes.&lt;br /&gt;
|}&lt;/div&gt;</summary>
		<author><name>MX Master</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=User:MX_Master&amp;diff=29494</id>
		<title>User:MX Master</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=User:MX_Master&amp;diff=29494"/>
		<updated>2012-02-27T05:45:20Z</updated>

		<summary type="html">&lt;p&gt;MX Master: updated&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Russian '''MTA:SA''' fan and scripter;&amp;lt;br /&amp;gt;&lt;br /&gt;
Web master;&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''MX_Master''''s contacts:&amp;lt;br /&amp;gt;&lt;br /&gt;
----&lt;br /&gt;
:'''ICQ''': 701920&amp;lt;br /&amp;gt;&lt;br /&gt;
:'''WEB''': [http://www.multi-theft-auto.ru/ MX_Master's MTA page]&lt;br /&gt;
:'''WEB''': [http://code.google.com/p/multi-theft-auto-ru/ MX_Master's MTA GoogleCode project]&lt;br /&gt;
:'''WEB''': [http://forum.mtasa.com/viewforum.php?f=123 Russian sub-forum of forum.mtasa.com]&lt;br /&gt;
:'''Google Name''': mx.master.kz&lt;br /&gt;
:&lt;br /&gt;
&lt;br /&gt;
Something useful:&amp;lt;br /&amp;gt;&lt;br /&gt;
----&lt;br /&gt;
:[http://forum.mtasa.com/viewtopic.php?f=13&amp;amp;t=29363 MTASA wiki site as single CHM file by MX_Master]&lt;/div&gt;</summary>
		<author><name>MX Master</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=SetOcclusionsEnabled&amp;diff=29493</id>
		<title>SetOcclusionsEnabled</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=SetOcclusionsEnabled&amp;diff=29493"/>
		<updated>2012-02-27T05:35:06Z</updated>

		<summary type="html">&lt;p&gt;MX Master: removed category &amp;quot;needs example&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__&lt;br /&gt;
{{Server client function}}&lt;br /&gt;
This function is used to enable or disable occlusions. Occlusions are used by GTA to enhance performance by hiding objects that are (normally) obscured by certain large buildings. However when [[removeWorldModel]] is used they may also have the undesired effect of making parts of the map disappear. Disabling occlusions will fix that.&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 setOcclusionsEnabled ( bool enabled )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Required Arguments=== &lt;br /&gt;
*'''enabled:''' A bool specifying if GTA occlusions should be enabled&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns ''true'' if the setting was set correctly, ''false'' if invalid arguments were passed.&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
This example shows occlusions being disabled after the whole map has been cleared:&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
-- Remove all world models&lt;br /&gt;
for i=700,20000 do&lt;br /&gt;
    removeWorldModel(i,10000,0,0,0)&lt;br /&gt;
end&lt;br /&gt;
-- Turn off occlusions&lt;br /&gt;
setOcclusionsEnabled( false )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Requirements==&lt;br /&gt;
{{Requirements|1.3|1.3|}}&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{World functions}}&lt;/div&gt;</summary>
		<author><name>MX Master</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=GetOcclusionsEnabled&amp;diff=29492</id>
		<title>GetOcclusionsEnabled</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=GetOcclusionsEnabled&amp;diff=29492"/>
		<updated>2012-02-27T05:33:01Z</updated>

		<summary type="html">&lt;p&gt;MX Master: new page&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__&lt;br /&gt;
{{Server client function}}&lt;br /&gt;
This function is used to get &amp;quot;occlusions enabled&amp;quot; state.&lt;br /&gt;
&lt;br /&gt;
'''Note:''' Occlusions are used by GTA to enhance performance by hiding objects that are (normally) obscured by certain large buildings. However when [[removeWorldModel]] is used they may also have the undesired effect of making parts of the map disappear. Disabling occlusions will fix that.&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 getOcclusionsEnabled ( )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns ''true'' if occlusions are enabled, or ''false'' otherwise.&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
This example shows how to disable occlusions after the whole map has been cleared:&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
-- Remove all world models&lt;br /&gt;
for i=700,20000 do&lt;br /&gt;
    removeWorldModel(i,10000,0,0,0)&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
-- Turn off occlusions with simple check&lt;br /&gt;
if getOcclusionsEnabled() then&lt;br /&gt;
    setOcclusionsEnabled( false )&lt;br /&gt;
end&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Requirements==&lt;br /&gt;
{{Requirements|1.3|1.3|}}&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{World functions}}&lt;/div&gt;</summary>
		<author><name>MX Master</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=GuiScrollPaneGetHorizontalScrollPosition&amp;diff=29491</id>
		<title>GuiScrollPaneGetHorizontalScrollPosition</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=GuiScrollPaneGetHorizontalScrollPosition&amp;diff=29491"/>
		<updated>2012-02-27T05:16:57Z</updated>

		<summary type="html">&lt;p&gt;MX Master: new page&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{client function}}&lt;br /&gt;
This function is used to get the position of a horizontal scroll pane as a percentage.&lt;br /&gt;
&lt;br /&gt;
==Syntax==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
float guiScrollPaneGetHorizontalScrollPosition ( element horizontalScrollPane )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Required Arguments===&lt;br /&gt;
*'''horizontalScrollPane''': The scroll pane you want to know the position of&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns a [[float]] ranging between 0 and 100, or '''false''' otherwise.&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
This example gets the position of a scroll pane called &amp;quot;myScrollPane&amp;quot; created with [[guiCreateScrollPane]], and outputs it to the chatbox.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
if ( myScrollPane ) then -- if the scroll pane exist then&lt;br /&gt;
        -- get the position&lt;br /&gt;
	local position = guiScrollPaneGetHorizontalScrollPosition( myScrollPane )&lt;br /&gt;
	-- output to the chatbox&lt;br /&gt;
	outputChatBox ( &amp;quot;Current position of scroll pane:&amp;quot; .. tostring(position) .. &amp;quot;%&amp;quot; )&lt;br /&gt;
else -- if the scroll pane was not found&lt;br /&gt;
       outputChatBox (&amp;quot;scroll pane not found!&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;
{{GUI_functions}}&lt;/div&gt;</summary>
		<author><name>MX Master</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=GuiScrollPaneGetVerticalScrollPosition&amp;diff=29490</id>
		<title>GuiScrollPaneGetVerticalScrollPosition</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=GuiScrollPaneGetVerticalScrollPosition&amp;diff=29490"/>
		<updated>2012-02-27T05:14:58Z</updated>

		<summary type="html">&lt;p&gt;MX Master: new page&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{client function}}&lt;br /&gt;
This function is used to get the position of a vertical scroll pane as a percentage.&lt;br /&gt;
&lt;br /&gt;
==Syntax==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
float guiScrollPaneGetVerticalScrollPosition ( element verticalScrollPane )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Required Arguments===&lt;br /&gt;
*'''verticalScrollPane''': The scroll pane you want to know the position of&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns a [[float]] ranging between 0 and 100, or '''false''' otherwise.&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
This example gets the position of a scroll pane called &amp;quot;myScrollPane&amp;quot; created with [[guiCreateScrollPane]], and outputs it to the chatbox.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
if ( myScrollPane ) then -- if the scroll pane exist then&lt;br /&gt;
        -- get the position&lt;br /&gt;
	local position = guiScrollPaneGetVerticalScrollPosition( myScrollPane )&lt;br /&gt;
	-- output to the chatbox&lt;br /&gt;
	outputChatBox ( &amp;quot;Current position of scroll pane:&amp;quot; .. tostring(position) .. &amp;quot;%&amp;quot; )&lt;br /&gt;
else -- if the scroll pane was not found&lt;br /&gt;
       outputChatBox (&amp;quot;scroll pane not found!&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;
{{GUI_functions}}&lt;/div&gt;</summary>
		<author><name>MX Master</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=GuiScrollPaneSetVerticalScrollPosition&amp;diff=29489</id>
		<title>GuiScrollPaneSetVerticalScrollPosition</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=GuiScrollPaneSetVerticalScrollPosition&amp;diff=29489"/>
		<updated>2012-02-27T05:03:42Z</updated>

		<summary type="html">&lt;p&gt;MX Master: new page&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{client function}}&lt;br /&gt;
This function is used to set the position of a vertical scroll pane as a percentage.&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 guiScrollPaneSetVerticalScrollPosition ( element verticalScrollPane, float position )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Required Arguments===&lt;br /&gt;
*'''verticalScrollPane''': The scroll pane you want to change the position of&lt;br /&gt;
*'''position''': a float ranging from 0 - 100&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns '''true''' if the position was set, '''false''' otherwise.&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
This example sets the position of a scroll pane called &amp;quot;myScrollPane&amp;quot; created with [[guiCreateScrollPane]], and outputs it to the chatbox.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
if ( myScrollPane ) then -- if the scroll pane exist then&lt;br /&gt;
	-- set the position&lt;br /&gt;
        guiScrollPaneSetVerticalScrollPosition( myScrollPane, 33.3 ) -- 1/3 from the upside&lt;br /&gt;
        -- get the position&lt;br /&gt;
	local position = guiScrollPaneGetVerticalScrollPosition( myScrollPane )&lt;br /&gt;
	-- output to the chatbox&lt;br /&gt;
	outputChatBox ( &amp;quot;Current position of scroll pane:&amp;quot; .. tostring(position) .. &amp;quot;%&amp;quot; )&lt;br /&gt;
else -- if the scroll pane was not found&lt;br /&gt;
       outputChatBox (&amp;quot;scroll pane not found!&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;
{{GUI_functions}}&lt;/div&gt;</summary>
		<author><name>MX Master</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=GuiScrollPaneSetHorizontalScrollPosition&amp;diff=29488</id>
		<title>GuiScrollPaneSetHorizontalScrollPosition</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=GuiScrollPaneSetHorizontalScrollPosition&amp;diff=29488"/>
		<updated>2012-02-27T05:03:29Z</updated>

		<summary type="html">&lt;p&gt;MX Master: new page&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{client function}}&lt;br /&gt;
This function is used to set the position of a horizontal scroll pane as a percentage.&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 guiScrollPaneSetHorizontalScrollPosition ( element horizontalScrollPane, float position )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Required Arguments===&lt;br /&gt;
*'''horizontalScrollPane''': The scroll pane you want to change the position of&lt;br /&gt;
*'''position''': a float ranging from 0 - 100&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns '''true''' if the position was set, '''false''' otherwise.&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
This example sets the position of a scroll pane called &amp;quot;myScrollPane&amp;quot; created with [[guiCreateScrollPane]], and outputs it to the chatbox.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
if ( myScrollPane ) then -- if the scroll pane exist then&lt;br /&gt;
	-- set the position&lt;br /&gt;
        guiScrollPaneSetHorizontalScrollPosition( myScrollPane, 100 ) -- right end&lt;br /&gt;
        -- get the position&lt;br /&gt;
	local position = guiScrollPaneGetHorizontalScrollPosition( myScrollPane )&lt;br /&gt;
	-- output to the chatbox&lt;br /&gt;
	outputChatBox ( &amp;quot;Current position of scroll pane:&amp;quot; .. tostring(position) .. &amp;quot;%&amp;quot; )&lt;br /&gt;
else -- if the scroll pane was not found&lt;br /&gt;
       outputChatBox (&amp;quot;scroll pane not found!&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;
{{GUI_functions}}&lt;/div&gt;</summary>
		<author><name>MX Master</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Template:Client_vehicle_functions&amp;diff=28998</id>
		<title>Template:Client vehicle functions</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Template:Client_vehicle_functions&amp;diff=28998"/>
		<updated>2012-01-15T06:02:35Z</updated>

		<summary type="html">&lt;p&gt;MX Master: removed &amp;quot;getModelHandling&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;*[[addVehicleUpgrade]]&lt;br /&gt;
*[[attachTrailerToVehicle]]&lt;br /&gt;
*[[blowVehicle]]&lt;br /&gt;
*[[createVehicle]]&lt;br /&gt;
*[[detachTrailerFromVehicle]]&lt;br /&gt;
*[[fixVehicle]]&lt;br /&gt;
*[[getVehicleAdjustableProperty]]&lt;br /&gt;
*[[getVehicleColor]]&lt;br /&gt;
*[[getVehicleCompatibleUpgrades]]&lt;br /&gt;
*[[getVehicleController]]&lt;br /&gt;
*[[getVehicleDoorState]]&lt;br /&gt;
*[[getVehicleEngineState]]&lt;br /&gt;
*[[getVehicleLandingGearDown]]&lt;br /&gt;
*[[getVehicleLightState]]&lt;br /&gt;
*[[getVehicleMaxPassengers]]&lt;br /&gt;
*[[getVehicleName]]&lt;br /&gt;
*[[getVehicleOccupant]]&lt;br /&gt;
*[[getVehicleOccupants]]&lt;br /&gt;
*[[getVehicleCurrentGear]]&lt;br /&gt;
*[[getVehicleOverrideLights]]&lt;br /&gt;
*[[getVehiclePaintjob]]&lt;br /&gt;
*[[getVehiclePanelState]]&lt;br /&gt;
*[[getVehiclePlateText]]&lt;br /&gt;
*[[getVehicleRotation]]&lt;br /&gt;
*[[getVehicleSirensOn]]&lt;br /&gt;
*[[getVehicleTowedByVehicle]]&lt;br /&gt;
*[[getVehicleTowingVehicle]]&lt;br /&gt;
*[[getVehicleTurnVelocity]]&lt;br /&gt;
*[[getVehicleTurretPosition]]&lt;br /&gt;
*[[getVehicleUpgradeOnSlot]]&lt;br /&gt;
*[[getVehicleUpgrades]]&lt;br /&gt;
*[[getVehicleUpgradeSlotName]]&lt;br /&gt;
*[[getVehicleWheelStates]]&lt;br /&gt;
*[[getVehicleDoorOpenRatio]]&lt;br /&gt;
*[[getVehicleHandling]]&lt;br /&gt;
*[[getOriginalHandling]]&lt;br /&gt;
*[[isVehicleDamageProof]]&lt;br /&gt;
*[[isVehicleFrozen]]&lt;br /&gt;
*[[isVehicleFuelTankExplodable]]&lt;br /&gt;
*[[isVehicleLocked]]&lt;br /&gt;
*[[isVehicleOnGround]]&lt;br /&gt;
*[[removeVehicleUpgrade]]&lt;br /&gt;
*[[setVehicleAdjustableProperty]]&lt;br /&gt;
*[[setVehicleColor]]&lt;br /&gt;
*[[setVehicleDamageProof]]&lt;br /&gt;
*[[setVehicleDirtLevel]]&lt;br /&gt;
*[[setVehicleDoorState]]&lt;br /&gt;
*[[setVehicleDoorsUndamageable]]&lt;br /&gt;
*[[setVehicleEngineState]]&lt;br /&gt;
*[[setVehicleFrozen]]&lt;br /&gt;
*[[setVehicleFuelTankExplodable]]&lt;br /&gt;
*[[setVehicleLandingGearDown]]&lt;br /&gt;
*[[setVehicleLightState]]&lt;br /&gt;
*[[setVehicleLocked]]&lt;br /&gt;
*[[setVehicleOverrideLights]]&lt;br /&gt;
*[[setVehiclePaintjob]]&lt;br /&gt;
*[[setVehiclePanelState]]&lt;br /&gt;
*[[setVehicleRotation]]&lt;br /&gt;
*[[setVehicleSirensOn]]&lt;br /&gt;
*[[setVehicleTurretPosition]]&lt;br /&gt;
*[[setVehicleDoorOpenRatio]]&lt;br /&gt;
*[[setVehicleTurnVelocity]]&lt;br /&gt;
*[[setVehicleWheelStates]]&lt;br /&gt;
*[[getHelicopterRotorSpeed]]&lt;br /&gt;
*[[getTrainDirection]]&lt;br /&gt;
*[[getTrainSpeed]]&lt;br /&gt;
*[[getVehicleGravity]]&lt;br /&gt;
*[[getVehicleHeadLightColor]]&lt;br /&gt;
*[[getVehicleModelFromName]]&lt;br /&gt;
*[[getVehicleNameFromModel]]&lt;br /&gt;
*[[getVehicleType]]&lt;br /&gt;
*[[isTrainDerailable]]&lt;br /&gt;
*[[isTrainDerailed]]&lt;br /&gt;
*[[isVehicleBlown]]&lt;br /&gt;
*[[isVehicleTaxiLightOn]]&lt;br /&gt;
*[[setHelicopterRotorSpeed]]&lt;br /&gt;
*[[setTrainDerailable]]&lt;br /&gt;
*[[setTrainDerailed]]&lt;br /&gt;
*[[setTrainDirection]]&lt;br /&gt;
*[[setTrainSpeed]]&lt;br /&gt;
*[[setVehicleGravity]]&lt;br /&gt;
*[[setVehicleHeadLightColor]]&lt;br /&gt;
*[[setVehicleTaxiLightOn]]&lt;br /&gt;
{{New items|3.0120|1.2|&lt;br /&gt;
*[[getVehicleVariant]]&lt;br /&gt;
}}&lt;br /&gt;
&amp;lt;noinclude&amp;gt;[[Category:Functions templates]]&amp;lt;/noinclude&amp;gt;&lt;/div&gt;</summary>
		<author><name>MX Master</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=GetModelHandling&amp;diff=28997</id>
		<title>GetModelHandling</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=GetModelHandling&amp;diff=28997"/>
		<updated>2012-01-15T06:01:16Z</updated>

		<summary type="html">&lt;p&gt;MX Master: type &amp;quot;shared&amp;quot; -&amp;gt; &amp;quot;only server-side&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Server function}} &lt;br /&gt;
__NOTOC__ &lt;br /&gt;
This function returns a table containing the handling data of the specified vehicle model.&lt;br /&gt;
&lt;br /&gt;
Note: the data returned may not reflect the actual handling of a particular vehicle, since this may be overriden by the [[setVehicleHandling]] function.&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 getModelHandling ( int modelId ) &lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
&lt;br /&gt;
===Required Arguments=== &lt;br /&gt;
*'''modelId:''' The vehicle model you wish to get the handling data of.&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns a ''table'' containing all the handling data, ''false'' if an invalid vehicle model is specified. Here is a list of valid table properties and what they return:&lt;br /&gt;
{{Handling Properties}}&lt;br /&gt;
&lt;br /&gt;
==See other vehicle functions==&lt;br /&gt;
{{Vehicle functions}}&lt;/div&gt;</summary>
		<author><name>MX Master</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=GetModelHandling&amp;diff=28993</id>
		<title>GetModelHandling</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=GetModelHandling&amp;diff=28993"/>
		<updated>2012-01-13T17:45:51Z</updated>

		<summary type="html">&lt;p&gt;MX Master: typo&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Needs_Checking|Actually this function exists only server-side.}}&lt;br /&gt;
{{Server client function}} &lt;br /&gt;
__NOTOC__ &lt;br /&gt;
This function returns a table containing the handling data of the specified vehicle model.&lt;br /&gt;
&lt;br /&gt;
Note: the data returned may not reflect the actual handling of a particular vehicle, since this may be overriden by the [[setVehicleHandling]] function.&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 getModelHandling ( int modelId ) &lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
&lt;br /&gt;
===Required Arguments=== &lt;br /&gt;
*'''modelId:''' The vehicle model you wish to get the handling data of.&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns a ''table'' containing all the handling data, ''false'' if an invalid vehicle model is specified. Here is a list of valid table properties and what they return:&lt;br /&gt;
{{Handling Properties}}&lt;br /&gt;
&lt;br /&gt;
==See other vehicle functions==&lt;br /&gt;
{{Vehicle functions}}&lt;/div&gt;</summary>
		<author><name>MX Master</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=GetModelHandling&amp;diff=28992</id>
		<title>GetModelHandling</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=GetModelHandling&amp;diff=28992"/>
		<updated>2012-01-13T17:45:07Z</updated>

		<summary type="html">&lt;p&gt;MX Master: added {{Needs_Checking|...}}&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Needs_Checking|Actually this function exist only server-side.}}&lt;br /&gt;
{{Server client function}} &lt;br /&gt;
__NOTOC__ &lt;br /&gt;
This function returns a table containing the handling data of the specified vehicle model.&lt;br /&gt;
&lt;br /&gt;
Note: the data returned may not reflect the actual handling of a particular vehicle, since this may be overriden by the [[setVehicleHandling]] function.&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 getModelHandling ( int modelId ) &lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
&lt;br /&gt;
===Required Arguments=== &lt;br /&gt;
*'''modelId:''' The vehicle model you wish to get the handling data of.&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns a ''table'' containing all the handling data, ''false'' if an invalid vehicle model is specified. Here is a list of valid table properties and what they return:&lt;br /&gt;
{{Handling Properties}}&lt;br /&gt;
&lt;br /&gt;
==See other vehicle functions==&lt;br /&gt;
{{Vehicle functions}}&lt;/div&gt;</summary>
		<author><name>MX Master</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=XmlNodeGetAttribute&amp;diff=28327</id>
		<title>XmlNodeGetAttribute</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=XmlNodeGetAttribute&amp;diff=28327"/>
		<updated>2011-11-21T17:10:39Z</updated>

		<summary type="html">&lt;p&gt;MX Master: fixed example&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__&lt;br /&gt;
{{Server client function}}&lt;br /&gt;
This function is used to return an attribute of a node in a configuration file.&lt;br /&gt;
&lt;br /&gt;
==Syntax== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
string xmlNodeGetAttribute ( xmlnode node, string name )             &lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
&lt;br /&gt;
===Required Arguments=== &lt;br /&gt;
*'''node:''' The node from which you wish to return the attribute&lt;br /&gt;
*'''name:''' The name of the attribute.&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns the attribute in string form or ''false'', if the attribute is not defined.&lt;br /&gt;
&lt;br /&gt;
==Example== &lt;br /&gt;
Suppose we have a gametype where only one type of car is used, and this type should not depend on the map but rather be set in an external configuration file and be used in all maps. Here's an example where the configuration file is an XML document:&lt;br /&gt;
&lt;br /&gt;
settings.xml&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;car model=&amp;quot;528&amp;quot; posX=&amp;quot;123.4&amp;quot; posY=&amp;quot;456.7&amp;quot; posZ=&amp;quot;12.3&amp;quot; rot=&amp;quot;90.0&amp;quot; /&amp;gt;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Lua code&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
local xml = getResourceConfig(&amp;quot;settings.xml&amp;quot;)      -- load XML file and get its root element&lt;br /&gt;
local carmodel = xmlNodeGetAttribute(xml, &amp;quot;model&amp;quot;)    -- get attribute of root element&lt;br /&gt;
local carX = xmlNodeGetAttribute(xml, &amp;quot;posX&amp;quot;)&lt;br /&gt;
local carY = xmlNodeGetAttribute(xml, &amp;quot;posY&amp;quot;)&lt;br /&gt;
local carZ = xmlNodeGetAttribute(xml, &amp;quot;posZ&amp;quot;)&lt;br /&gt;
local carA = xmlNodeGetAttribute(xml, &amp;quot;rot&amp;quot;)&lt;br /&gt;
createVehicle(carmodel, tonumber(carX), tonumber(carY), tonumber(carZ), 0.0, 0.0, tonumber(carA))&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{XML_functions}}&lt;/div&gt;</summary>
		<author><name>MX Master</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=OnPlayerVoiceStart&amp;diff=28177</id>
		<title>OnPlayerVoiceStart</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=OnPlayerVoiceStart&amp;diff=28177"/>
		<updated>2011-11-19T18:33:06Z</updated>

		<summary type="html">&lt;p&gt;MX Master: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Server event}}&lt;br /&gt;
__NOTOC__ &lt;br /&gt;
&amp;lt;div style=&amp;quot;border: 1px dotted blue; background: #00CC66;padding:4px;margin-bottom:2px;&amp;quot;&amp;gt;'''Note''':  This event should only be used as a low-level function for advanced users.  For typical Voice scripting, please see the [[Resource:Voice|Voice Resource]]&amp;lt;/div&amp;gt;&lt;br /&gt;
This event is triggered when a player starts talking through voice chat.&lt;br /&gt;
&lt;br /&gt;
==Parameters==&lt;br /&gt;
No parameters.&lt;br /&gt;
&lt;br /&gt;
==Source==&lt;br /&gt;
The [[event system#Event source|source]] of this event is the player [[element]] that just started talking through voice chat.&lt;br /&gt;
&lt;br /&gt;
==Cancel effect==&lt;br /&gt;
If this event is canceled the player will not broadcast his voice chat to anyone in the server.&lt;br /&gt;
&lt;br /&gt;
==Example== &lt;br /&gt;
This example shows how to forbid use voice for not logged in players&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
addEventHandler( 'onPlayerVoiceStart', root,&lt;br /&gt;
    function()&lt;br /&gt;
        -- if player is not logged in&lt;br /&gt;
        -- do not broadcast his voice to other players&lt;br /&gt;
        if isGuestAccount( getPlayerAccount(source) ) then&lt;br /&gt;
            cancelEvent()&lt;br /&gt;
        end&lt;br /&gt;
    end&lt;br /&gt;
)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{{See also/Server event|Player events}}&lt;/div&gt;</summary>
		<author><name>MX Master</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=OnPlayerVoiceStart&amp;diff=28176</id>
		<title>OnPlayerVoiceStart</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=OnPlayerVoiceStart&amp;diff=28176"/>
		<updated>2011-11-19T18:28:38Z</updated>

		<summary type="html">&lt;p&gt;MX Master: added example&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Server event}}&lt;br /&gt;
__NOTOC__ &lt;br /&gt;
&amp;lt;div style=&amp;quot;border: 1px dotted blue; background: #00CC66;padding:4px;margin-bottom:2px;&amp;quot;&amp;gt;'''Note''':  This event should only be used as a low-level function for advanced users.  For typical Voice scripting, please see the [[Resource:Voice|Voice Resource]]&amp;lt;/div&amp;gt;&lt;br /&gt;
This event is triggered when a player starts talking through voice chat.&lt;br /&gt;
&lt;br /&gt;
==Parameters==&lt;br /&gt;
No parameters.&lt;br /&gt;
&lt;br /&gt;
==Source==&lt;br /&gt;
The [[event system#Event source|source]] of this event is the player [[element]] that just started talking through voice chat.&lt;br /&gt;
&lt;br /&gt;
==Cancel effect==&lt;br /&gt;
If this event is canceled the player will not broadcast his voice chat to anyone in the server.&lt;br /&gt;
&lt;br /&gt;
==Example== &lt;br /&gt;
This example shows how to forbid use voice for not logged in players&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
addEventHandler( 'onPlayerVoiceStart', root,&lt;br /&gt;
    function()&lt;br /&gt;
        -- if player is not logged in&lt;br /&gt;
        -- do not broadcast his voice to other players&lt;br /&gt;
        if isGuestAccount( getPlayerAccount(source) ) then&lt;br /&gt;
            cancelEvent()&lt;br /&gt;
        end&lt;br /&gt;
    end&lt;br /&gt;
)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Category:Needs_Example]]&lt;br /&gt;
{{See also/Server event|Player events}}&lt;/div&gt;</summary>
		<author><name>MX Master</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=IsVoiceEnabled&amp;diff=28175</id>
		<title>IsVoiceEnabled</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=IsVoiceEnabled&amp;diff=28175"/>
		<updated>2011-11-19T18:24:10Z</updated>

		<summary type="html">&lt;p&gt;MX Master: removed `section` tag around example&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Server function}}&lt;br /&gt;
__NOTOC__ &lt;br /&gt;
This function allows you to make the server reveal whether or not voice is currently enabled.&lt;br /&gt;
&lt;br /&gt;
==Syntax== &lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
bool isVoiceEnabled ()&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns ''true'' if the voice is enabled on the server, ''false'' otherwise.&lt;br /&gt;
&lt;br /&gt;
==Example== &lt;br /&gt;
This example shows how to forbid use voice for muted (in chat) players&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
-- only if voice enabled&lt;br /&gt;
if isVoiceEnabled() then&lt;br /&gt;
    -- adding handler for voice start event&lt;br /&gt;
    addEventHandler( 'onPlayerVoiceStart', root,&lt;br /&gt;
        function()&lt;br /&gt;
            -- if player is muted in chat&lt;br /&gt;
            -- do not broadcast his voice to other players&lt;br /&gt;
            if isPlayerMuted(source) then cancelEvent() end&lt;br /&gt;
        end&lt;br /&gt;
    )&lt;br /&gt;
end&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>MX Master</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=IsVoiceEnabled&amp;diff=28174</id>
		<title>IsVoiceEnabled</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=IsVoiceEnabled&amp;diff=28174"/>
		<updated>2011-11-19T18:19:33Z</updated>

		<summary type="html">&lt;p&gt;MX Master: + description to example&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Server function}}&lt;br /&gt;
__NOTOC__ &lt;br /&gt;
This function allows you to make the server reveal whether or not voice is currently enabled.&lt;br /&gt;
&lt;br /&gt;
==Syntax== &lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
bool isVoiceEnabled ()&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns ''true'' if the voice is enabled on the server, ''false'' otherwise.&lt;br /&gt;
&lt;br /&gt;
==Example== &lt;br /&gt;
This example shows how to forbid use voice for muted (in chat) players&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;
-- only if voice enabled&lt;br /&gt;
if isVoiceEnabled() then&lt;br /&gt;
    -- adding handler for voice start event&lt;br /&gt;
    addEventHandler( 'onPlayerVoiceStart', root,&lt;br /&gt;
        function()&lt;br /&gt;
            -- if player is muted in chat&lt;br /&gt;
            -- do not broadcast his voice to other players&lt;br /&gt;
            if isPlayerMuted(source) then cancelEvent() end&lt;br /&gt;
        end&lt;br /&gt;
    )&lt;br /&gt;
end&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;/section&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{Player_functions}}&lt;/div&gt;</summary>
		<author><name>MX Master</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=IsVoiceEnabled&amp;diff=28173</id>
		<title>IsVoiceEnabled</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=IsVoiceEnabled&amp;diff=28173"/>
		<updated>2011-11-19T18:13:19Z</updated>

		<summary type="html">&lt;p&gt;MX Master: added example&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Server function}}&lt;br /&gt;
__NOTOC__ &lt;br /&gt;
This function allows you to make the server reveal whether or not voice is currently enabled.&lt;br /&gt;
&lt;br /&gt;
==Syntax== &lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
bool isVoiceEnabled ()&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns ''true'' if the voice is enabled on the server, ''false'' otherwise.&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;
-- only if voice enabled&lt;br /&gt;
if isVoiceEnabled() then&lt;br /&gt;
    -- adding handler for voice start event&lt;br /&gt;
    addEventHandler( 'onPlayerVoiceStart', root,&lt;br /&gt;
        function()&lt;br /&gt;
            -- if player is muted in chat&lt;br /&gt;
            -- do not broadcast his voice to other players&lt;br /&gt;
            if isPlayerMuted(source) then cancelEvent() end&lt;br /&gt;
        end&lt;br /&gt;
    )&lt;br /&gt;
end&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;/section&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{Player_functions}}&lt;/div&gt;</summary>
		<author><name>MX Master</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=GetResourceMapRootElement&amp;diff=27078</id>
		<title>GetResourceMapRootElement</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=GetResourceMapRootElement&amp;diff=27078"/>
		<updated>2011-09-05T11:16:10Z</updated>

		<summary type="html">&lt;p&gt;MX Master: example fix&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__ &lt;br /&gt;
{{Server function}}&lt;br /&gt;
This function retrieves the root element of a certain [[map]] in a specified [[resource]].&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 getResourceMapRootElement ( resource theResource, string mapName ) &lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
&lt;br /&gt;
===Required Arguments=== &lt;br /&gt;
*'''theResource:''' the resource where the map is located&lt;br /&gt;
*'''mapName:''' name of the maps which root element we want to retrieve, file extension is required&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns an the resource's map root [[element]] if the map exists and resource specified was valid and active (currently running), ''false'' otherwise.&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
This example shows how to get all elements of specific type only from one map.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
-- We have 2 map files in our meta.xml: island_1.map, island_2.map.&lt;br /&gt;
-- These maps contains objects, vehicles, pickups, etc.&lt;br /&gt;
-- After resource start we must found all vehicles only from island_1.map and lock them.&lt;br /&gt;
&lt;br /&gt;
-- `resourceRoot` is predefined script variable containing current resource root pointer&lt;br /&gt;
addEventHandler( 'onResourceStart', resourceRoot,&lt;br /&gt;
    function()&lt;br /&gt;
        -- `resource` is predefined script variable containing current resource pointer&lt;br /&gt;
        local island_1_mapRoot = getResourceMapRootElement( resource, 'island_1.map' )&lt;br /&gt;
        local island_1_vehicles = getElementsByType( 'vehicle', island_1_mapRoot )&lt;br /&gt;
        &lt;br /&gt;
        for vehicle in ipairs(island_1_vehicles) do&lt;br /&gt;
            setVehicleLocked( vehicle, true )&lt;br /&gt;
        end&lt;br /&gt;
    end&lt;br /&gt;
)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{Resource_functions}}&lt;br /&gt;
[[Category:Needs_Example]]&lt;/div&gt;</summary>
		<author><name>MX Master</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=GetResourceDynamicElementRoot&amp;diff=27077</id>
		<title>GetResourceDynamicElementRoot</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=GetResourceDynamicElementRoot&amp;diff=27077"/>
		<updated>2011-09-05T11:15:10Z</updated>

		<summary type="html">&lt;p&gt;MX Master: added example&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__ &lt;br /&gt;
{{Server client function}}&lt;br /&gt;
This function retrieves the ''dynamic element root'' of a specified [[resource]]. The ''dynamic element root'' is the parent of elements that are created by scripts (e.g. with [[createObject]]) unless they specify a different parent.&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 getResourceDynamicElementRoot ( resource theResource ) &lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
&lt;br /&gt;
===Required Arguments=== &lt;br /&gt;
*'''theResource:''' the resource of which dynamic element root we want.&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns an [[element]] of the resource's dynamic element root if the resource specified was valid and active (currently running), ''false'' otherwise.&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
&lt;br /&gt;
This example shows how to get all elements by specific type, created only by resource scripts (not maps).&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
-- We have some map files with many objects in our meta.xml.&lt;br /&gt;
-- And we have some objects, created by some resource scripts.&lt;br /&gt;
&lt;br /&gt;
--      createObject(...) -- 1&lt;br /&gt;
--      createObject(...) -- 2&lt;br /&gt;
--      ...&lt;br /&gt;
--      createObject(...) -- 20&lt;br /&gt;
&lt;br /&gt;
-- After resource start we must found all objects, created only&lt;br /&gt;
-- by current resource scripts (not maps) and make them invisible.&lt;br /&gt;
&lt;br /&gt;
-- `resourceRoot` is predefined script variable containing current resource root pointer&lt;br /&gt;
addEventHandler( 'onResourceStart', resourceRoot,&lt;br /&gt;
    function()&lt;br /&gt;
        -- `resource` is predefined script variable containing current resource pointer&lt;br /&gt;
        local thisResourceDynamicRoot = getResourceDynamicElementRoot(resource)&lt;br /&gt;
        local onlyScriptObjects = getElementsByType( 'object', thisResourceDynamicRoot )&lt;br /&gt;
        &lt;br /&gt;
        for scriptObject in ipairs(onlyScriptObjects) do&lt;br /&gt;
            setElementAlpha( scriptObject, 0 )&lt;br /&gt;
        end&lt;br /&gt;
    end&lt;br /&gt;
)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{Resource_functions}}&lt;br /&gt;
[[Category:Needs_Example]]&lt;/div&gt;</summary>
		<author><name>MX Master</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=GetResourceMapRootElement&amp;diff=27076</id>
		<title>GetResourceMapRootElement</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=GetResourceMapRootElement&amp;diff=27076"/>
		<updated>2011-09-05T10:50:27Z</updated>

		<summary type="html">&lt;p&gt;MX Master: added example&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__ &lt;br /&gt;
{{Server function}}&lt;br /&gt;
This function retrieves the root element of a certain [[map]] in a specified [[resource]].&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 getResourceMapRootElement ( resource theResource, string mapName ) &lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
&lt;br /&gt;
===Required Arguments=== &lt;br /&gt;
*'''theResource:''' the resource where the map is located&lt;br /&gt;
*'''mapName:''' name of the maps which root element we want to retrieve, file extension is required&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns an the resource's map root [[element]] if the map exists and resource specified was valid and active (currently running), ''false'' otherwise.&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
This example shows how to get all elements of specific type only from one map.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
-- We have 2 map files in our meta.xml: island_1.map, island_2.map.&lt;br /&gt;
-- These maps contains objects, vehicles, pickups, etc.&lt;br /&gt;
-- After resource start we must found all vehicles only from island_1.map and lock them.&lt;br /&gt;
&lt;br /&gt;
addEventHandler( 'onResourceStart', resourceRoot,&lt;br /&gt;
    function()&lt;br /&gt;
        local island_1_mapRoot = getResourceMapRootElement( resource, 'island_1.map' )&lt;br /&gt;
        local island_1_vehicles = getElementsByType( 'vehicle', island_1_mapRoot )&lt;br /&gt;
        &lt;br /&gt;
        for vehicle in ipairs(island_1_vehicles) do&lt;br /&gt;
            setVehicleLocked( vehicle, true )&lt;br /&gt;
        end&lt;br /&gt;
    end&lt;br /&gt;
)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{Resource_functions}}&lt;br /&gt;
[[Category:Needs_Example]]&lt;/div&gt;</summary>
		<author><name>MX Master</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Talk:GetPlayerCommunityID&amp;diff=27051</id>
		<title>Talk:GetPlayerCommunityID</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Talk:GetPlayerCommunityID&amp;diff=27051"/>
		<updated>2011-09-04T05:34:49Z</updated>

		<summary type="html">&lt;p&gt;MX Master: Created page with &amp;quot;'''Is deprecated function or we can add normal page for it?'''&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;'''Is deprecated function or we can add normal page for it?'''&lt;/div&gt;</summary>
		<author><name>MX Master</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=SetMaxPlayers&amp;diff=27050</id>
		<title>SetMaxPlayers</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=SetMaxPlayers&amp;diff=27050"/>
		<updated>2011-09-04T05:31:57Z</updated>

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

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

		<summary type="html">&lt;p&gt;MX Master: example fix 2&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__&lt;br /&gt;
{{Server function}}&lt;br /&gt;
This function set the maximum number of player slots on the server.&lt;br /&gt;
&lt;br /&gt;
==Syntax==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;bool setMaxPlayers ( int slots )&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Required Arguments=== &lt;br /&gt;
&amp;lt;!-- List each argument one per line. This should be the argument's name as in the argument list above, NOT the argument's data type --&amp;gt;&lt;br /&gt;
*'''slots:''' Maximum number of player slots on the server.&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
&amp;lt;!-- Make this descriptive. Explain what cases will return false. If you're unsure, add a tag to it so we can check --&amp;gt;&lt;br /&gt;
Returns ''true'' if number of player slots was successfully changed, ''false'' or ''nil'' otherwise.&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
This example increases server slots count if server is full.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
addEventHandler( &amp;quot;onPlayerJoin&amp;quot;, root,&lt;br /&gt;
    function()&lt;br /&gt;
        local nowPlayers = getPlayerCount()&lt;br /&gt;
        local maxPlayers = getMaxPlayers()&lt;br /&gt;
&lt;br /&gt;
        if nowPlayers and maxPlayers and nowPlayers &amp;gt;= maxPlayers then&lt;br /&gt;
            setMaxPlayers( maxPlayers + 1 )&lt;br /&gt;
        end&lt;br /&gt;
    end&lt;br /&gt;
)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{Server functions}}&lt;/div&gt;</summary>
		<author><name>MX Master</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=SetMaxPlayers&amp;diff=26997</id>
		<title>SetMaxPlayers</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=SetMaxPlayers&amp;diff=26997"/>
		<updated>2011-09-03T18:41:16Z</updated>

		<summary type="html">&lt;p&gt;MX Master: example fix&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__&lt;br /&gt;
{{Server function}}&lt;br /&gt;
This function set the maximum number of player slots on the server.&lt;br /&gt;
&lt;br /&gt;
==Syntax==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;bool setMaxPlayers ( int slots )&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Required Arguments=== &lt;br /&gt;
&amp;lt;!-- List each argument one per line. This should be the argument's name as in the argument list above, NOT the argument's data type --&amp;gt;&lt;br /&gt;
*'''slots:''' Maximum number of player slots on the server.&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
&amp;lt;!-- Make this descriptive. Explain what cases will return false. If you're unsure, add a tag to it so we can check --&amp;gt;&lt;br /&gt;
Returns ''true'' if number of player slots was successfully changed, ''false'' or ''nil'' otherwise.&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
This example increases server slots count if server is full.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
addEventHandler( &amp;quot;onPlayerConnect&amp;quot;, root,&lt;br /&gt;
    function()&lt;br /&gt;
        local nowPlayers = getPlayerCount()&lt;br /&gt;
        local maxPlayers = getMaxPlayers()&lt;br /&gt;
&lt;br /&gt;
        if nowPlayers and maxPlayers and nowPlayers &amp;gt;= maxPlayers then&lt;br /&gt;
            setMaxPlayers( maxPlayers + 1 )&lt;br /&gt;
        end&lt;br /&gt;
    end&lt;br /&gt;
)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{Server functions}}&lt;/div&gt;</summary>
		<author><name>MX Master</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=SetMaxPlayers&amp;diff=26996</id>
		<title>SetMaxPlayers</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=SetMaxPlayers&amp;diff=26996"/>
		<updated>2011-09-03T18:26:20Z</updated>

		<summary type="html">&lt;p&gt;MX Master: Created page with &amp;quot;__NOTOC__ {{Server function}} This function set the maximum number of player slots on the server.  ==Syntax== &amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;bool setMaxPlayers ( int slots )&amp;lt;/syntaxhighlight&amp;gt;  ===Required Argu...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__&lt;br /&gt;
{{Server function}}&lt;br /&gt;
This function set the maximum number of player slots on the server.&lt;br /&gt;
&lt;br /&gt;
==Syntax==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;bool setMaxPlayers ( int slots )&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Required Arguments=== &lt;br /&gt;
&amp;lt;!-- List each argument one per line. This should be the argument's name as in the argument list above, NOT the argument's data type --&amp;gt;&lt;br /&gt;
*'''slots:''' Maximum number of player slots on the server.&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
&amp;lt;!-- Make this descriptive. Explain what cases will return false. If you're unsure, add a tag to it so we can check --&amp;gt;&lt;br /&gt;
Returns ''true'' if number of player slots was successfully changed, ''false'' or ''nil'' otherwise.&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
This example increases server slots count if server is full.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
addEventHandler( &amp;quot;onPlayerConnect&amp;quot;, root,&lt;br /&gt;
    function()&lt;br /&gt;
        local nowPlayers = getElementsByType('player')&lt;br /&gt;
        local maxPlayers = getMaxPlayers()&lt;br /&gt;
&lt;br /&gt;
        if nowPlayers and maxPlayers and #nowPlayers &amp;gt;= maxPlayers then&lt;br /&gt;
            setMaxPlayers( maxPlayers + 1 )&lt;br /&gt;
        end&lt;br /&gt;
    end&lt;br /&gt;
)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{Server functions}}&lt;/div&gt;</summary>
		<author><name>MX Master</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=OnClientMinimize&amp;diff=26827</id>
		<title>OnClientMinimize</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=OnClientMinimize&amp;diff=26827"/>
		<updated>2011-08-24T02:08:28Z</updated>

		<summary type="html">&lt;p&gt;MX Master: example's typo fix&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:Incomplete Event]]&lt;br /&gt;
{{Client event}}&lt;br /&gt;
__NOTOC__ &lt;br /&gt;
This event is triggered when the local player minimizes the game screen.&lt;br /&gt;
&lt;br /&gt;
==Parameters==&lt;br /&gt;
''None''&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
This example kills any player who minimizes the game. &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function handleMinimize()&lt;br /&gt;
    setElementHealth( localPlayer, 0 )&lt;br /&gt;
end&lt;br /&gt;
addEventHandler( &amp;quot;onClientMinimize&amp;quot;, root, handleMinimize )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
===Other client events===&lt;br /&gt;
{{Client_other_events}}&lt;br /&gt;
===Client event functions===&lt;br /&gt;
{{Client_event_functions}}&lt;/div&gt;</summary>
		<author><name>MX Master</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=OnClientPlayerWeaponSwitch&amp;diff=26648</id>
		<title>OnClientPlayerWeaponSwitch</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=OnClientPlayerWeaponSwitch&amp;diff=26648"/>
		<updated>2011-08-08T18:22:00Z</updated>

		<summary type="html">&lt;p&gt;MX Master: getPlayerWeapon -&amp;gt; getPedWeapon&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__&lt;br /&gt;
{{Client event}}&lt;br /&gt;
This event is triggered whenever a player's equipped weapon '''slot''' changes. This means giveWeapon and takeWeapon will trigger this function if the equipped slot is forced to change.&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 previousWeaponSlot, int currentWeaponSlot&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
&lt;br /&gt;
*'''previousWeaponSlot''': An integer representing the previous weapon slot the player had before he switched.&lt;br /&gt;
*'''currentWeaponSlot''': An integer representing the new weapon slot the player has.&lt;br /&gt;
&lt;br /&gt;
==Source==&lt;br /&gt;
The [[event system#Event source|source]] of this event is the [[player]] who changed his weapon&lt;br /&gt;
&lt;br /&gt;
==Example== &lt;br /&gt;
This example disables the use of aiming for the minigun.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function disableMinigunOnSwitch ( prevSlot, newSlot )&lt;br /&gt;
	if getPedWeapon(getLocalPlayer(),newSlot) == 38 then --if the switched weapon is the minigun&lt;br /&gt;
		toggleControl ( &amp;quot;aim_weapon&amp;quot;, false ) --disable the aim button&lt;br /&gt;
	else --if it isnt the minigun&lt;br /&gt;
		toggleControl ( &amp;quot;aim_weapon&amp;quot;, true ) --renable the aim button&lt;br /&gt;
	end&lt;br /&gt;
end&lt;br /&gt;
addEventHandler ( &amp;quot;onClientPlayerWeaponSwitch&amp;quot;, getRootElement(), disableMinigunOnSwitch )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
===Client player events===&lt;br /&gt;
{{Client_player_events}}&lt;br /&gt;
===Client event functions===&lt;br /&gt;
{{Client_event_functions}}&lt;/div&gt;</summary>
		<author><name>MX Master</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=GetVehicleHandling&amp;diff=25887</id>
		<title>GetVehicleHandling</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=GetVehicleHandling&amp;diff=25887"/>
		<updated>2011-05-21T15:42:13Z</updated>

		<summary type="html">&lt;p&gt;MX Master: Removed `Note`. Now handling functions are part of nightly builds.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Server client function}} &lt;br /&gt;
__NOTOC__ &lt;br /&gt;
This function returns a table of the current vehicle handling data.&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 getVehicleHandling ( element theVehicle ) &lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
&lt;br /&gt;
===Required Arguments=== &lt;br /&gt;
*'''theVehicle:''' The vehicle you wish to get the handling data of.&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns a ''table'' containing all the handling data, ''false'' otherwise. Here a list of valid table properties and what they return:&lt;br /&gt;
{{Handling Properties}}&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
&amp;lt;section name=&amp;quot;Server &amp;amp; Client&amp;quot; class=&amp;quot;both&amp;quot; show=&amp;quot;true&amp;quot;&amp;gt;&lt;br /&gt;
This example creates a new function called getVehicleHandlingProperty, which simulates the previous syntax of this function.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function getVehicleHandlingProperty ( element, property )&lt;br /&gt;
    if isElement ( element ) and getElementType ( element ) == &amp;quot;vehicle&amp;quot; and type ( property ) == &amp;quot;string&amp;quot; then -- Make sure there's a valid vehicle and a property string&lt;br /&gt;
        local handlingTable = getVehicleHandling ( element ) -- Get the handling as table and save as handlingTable&lt;br /&gt;
        local value = handlingTable[property] -- Get the value from the table&lt;br /&gt;
        &lt;br /&gt;
        if value then -- If there's a value (valid property)&lt;br /&gt;
            return value -- Return it&lt;br /&gt;
        end&lt;br /&gt;
    end&lt;br /&gt;
    &lt;br /&gt;
    return false -- Not an element, not a vehicle or no valid property string. Return failure&lt;br /&gt;
end&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;/section&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See other vehicle functions==&lt;br /&gt;
{{Vehicle functions}}&lt;/div&gt;</summary>
		<author><name>MX Master</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=SetVehicleHandling&amp;diff=25886</id>
		<title>SetVehicleHandling</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=SetVehicleHandling&amp;diff=25886"/>
		<updated>2011-05-21T15:41:45Z</updated>

		<summary type="html">&lt;p&gt;MX Master: Removed `Note`. Now handling functions are part of nightly builds.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Server function}} &lt;br /&gt;
__NOTOC__ &lt;br /&gt;
This function is used to change the handling data of a vehicle.&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 setVehicleHandling ( element theVehicle, string property, var value ) &lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
&lt;br /&gt;
===Required Arguments=== &lt;br /&gt;
*'''theVehicle:''' The vehicle you wish to set the handling of.&lt;br /&gt;
*'''property:''' The property you wish to set the handling of the vehicle to.&lt;br /&gt;
{{Handling Properties}}&lt;br /&gt;
*'''value:''' The value of the property you wish to set the handling of the vehicle to.&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns ''true'' if the handling was set successfully, ''false'' otherwise. See below a list of valid propertys and their required values:&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 massChange ( me, command, mass )&lt;br /&gt;
    mass = tonumber ( mass ) -- Convert mass to a number&lt;br /&gt;
    local veh = getPedOccupiedVehicle ( me ) -- Get the player's vehicle&lt;br /&gt;
    &lt;br /&gt;
    if mass and veh then  -- If valid mass and in a vehicle&lt;br /&gt;
        local success = setVehicleHandling ( veh, &amp;quot;mass&amp;quot;, mass ) -- Set the vehicle's mass, and check if successful&lt;br /&gt;
        &lt;br /&gt;
        if success then -- If successful&lt;br /&gt;
            outputChatBox ( &amp;quot;Your vehicle's mass has been changed to: &amp;quot;..mass..&amp;quot; kg&amp;quot;, me, 0, 255, 0 ) -- Notify the player of success&lt;br /&gt;
        else -- Too bad failure is still an option&lt;br /&gt;
            outputChatBox ( &amp;quot;Setting mass failed. It's probably above or below allowed limits&amp;quot;, me, 255, 0, 0 ) -- Notify the player of failure, and give a possible reason&lt;br /&gt;
        end&lt;br /&gt;
    elseif not veh then -- If not in a vehicle&lt;br /&gt;
        outputChatBox ( &amp;quot;You're not in a vehicle&amp;quot;, me, 255, 0, 0 ) -- Tell the player; He / she obviously doesn't know&lt;br /&gt;
    elseif not mass then -- If not a valid mass&lt;br /&gt;
        outputChatBox ( &amp;quot;Syntax: /changemass [mass]&amp;quot;, me, 255, 0, 0 ) -- Tell the player the proper syntax&lt;br /&gt;
    end&lt;br /&gt;
end&lt;br /&gt;
addCommandHandler ( &amp;quot;changemass&amp;quot;, massChange )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See other vehicle functions==&lt;br /&gt;
{{Vehicle functions}}&lt;/div&gt;</summary>
		<author><name>MX Master</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Client_Scripting_Functions&amp;diff=25665</id>
		<title>Client Scripting Functions</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Client_Scripting_Functions&amp;diff=25665"/>
		<updated>2011-04-28T04:18:34Z</updated>

		<summary type="html">&lt;p&gt;MX Master: added `Client file functions`&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;pageclass class=&amp;quot;client&amp;quot;&amp;gt;&amp;lt;/pageclass&amp;gt;&lt;br /&gt;
This page lists all the '''client-side''' scripting functions that have been implemented and are available as native functions from the Deathmatch mod. To request a function or event, use [[Requested Functions and Events]]&lt;br /&gt;
__TOC__&lt;br /&gt;
&lt;br /&gt;
==Audio functions==&lt;br /&gt;
{{Client_audio_functions}}&lt;br /&gt;
&lt;br /&gt;
==Blip functions==&lt;br /&gt;
{{Client_blip_functions}}&lt;br /&gt;
&lt;br /&gt;
==Camera functions==&lt;br /&gt;
{{Client_camera_functions}}&lt;br /&gt;
&lt;br /&gt;
==Clothes and body functions==&lt;br /&gt;
{{Client_Clothes and body functions}}&lt;br /&gt;
&lt;br /&gt;
==Collision shape functions==&lt;br /&gt;
{{Client_collision_shape_functions}}&lt;br /&gt;
&lt;br /&gt;
==Cursor functions==&lt;br /&gt;
{{Client_cursor_functions}}&lt;br /&gt;
&lt;br /&gt;
==Drawing functions==&lt;br /&gt;
{{Drawing_functions}}&lt;br /&gt;
&lt;br /&gt;
==Effects functions==&lt;br /&gt;
{{Client_Effects_functions}}&lt;br /&gt;
&lt;br /&gt;
==Element functions==&lt;br /&gt;
{{Client_element_functions}}&lt;br /&gt;
&lt;br /&gt;
==Engine functions==&lt;br /&gt;
{{Engine_functions}}&lt;br /&gt;
&lt;br /&gt;
==Event functions==&lt;br /&gt;
{{Client_event_functions}}&lt;br /&gt;
&lt;br /&gt;
==Explosion functions==&lt;br /&gt;
{{Client_explosion_functions}}&lt;br /&gt;
&lt;br /&gt;
==File functions==&lt;br /&gt;
{{Client file functions}}&lt;br /&gt;
&lt;br /&gt;
==Fire functions==&lt;br /&gt;
{{Client fire functions}}&lt;br /&gt;
&lt;br /&gt;
==GUI functions==&lt;br /&gt;
{{GUI_functions}}&lt;br /&gt;
&lt;br /&gt;
==Input functions==&lt;br /&gt;
{{Client_input_functions}}&lt;br /&gt;
&lt;br /&gt;
==Marker functions==&lt;br /&gt;
{{Client_marker_functions}}&lt;br /&gt;
&lt;br /&gt;
==Object functions==&lt;br /&gt;
{{Client_object_functions}}&lt;br /&gt;
&lt;br /&gt;
==Output functions==&lt;br /&gt;
{{Client_output_functions}}&lt;br /&gt;
&lt;br /&gt;
==Ped functions==&lt;br /&gt;
{{Client_ped_functions}}&lt;br /&gt;
&lt;br /&gt;
==Pickup functions==&lt;br /&gt;
{{Client_pickup_functions}}&lt;br /&gt;
&lt;br /&gt;
==Player functions==&lt;br /&gt;
{{Client_player_functions}}&lt;br /&gt;
&lt;br /&gt;
==Projectile functions==&lt;br /&gt;
{{Client_projectile_functions}}&lt;br /&gt;
&lt;br /&gt;
==Radar-area functions==&lt;br /&gt;
{{Client_radar-area_functions}}&lt;br /&gt;
&lt;br /&gt;
==Resource functions==&lt;br /&gt;
{{Client_resource_functions}}&lt;br /&gt;
&lt;br /&gt;
==Serial functions==&lt;br /&gt;
{{Client_serial_functions}}&lt;br /&gt;
&lt;br /&gt;
==Team functions==&lt;br /&gt;
{{Client_team_functions}}&lt;br /&gt;
&lt;br /&gt;
==Utility functions==&lt;br /&gt;
{{Client_utility_functions}}&lt;br /&gt;
&lt;br /&gt;
==Vehicle functions==&lt;br /&gt;
{{Client_vehicle_functions}}&lt;br /&gt;
&lt;br /&gt;
==Water functions==&lt;br /&gt;
{{Client_water_functions}}&lt;br /&gt;
&lt;br /&gt;
==Weapon functions==&lt;br /&gt;
{{Client_weapon_functions}}&lt;br /&gt;
&lt;br /&gt;
==World functions==&lt;br /&gt;
{{Client_world_functions}}&lt;br /&gt;
&lt;br /&gt;
==XML functions==&lt;br /&gt;
{{Client XML functions}}&lt;br /&gt;
&lt;br /&gt;
[[pl:Funkcje po stronie klienta]]&lt;br /&gt;
[[it:Funzioni Client-side]]&lt;br /&gt;
[[ru:Client Scripting Functions]]&lt;/div&gt;</summary>
		<author><name>MX Master</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Template:Client_file_functions&amp;diff=25664</id>
		<title>Template:Client file functions</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Template:Client_file_functions&amp;diff=25664"/>
		<updated>2011-04-28T04:15:53Z</updated>

		<summary type="html">&lt;p&gt;MX Master: new template for client-side file functions list&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{New feature|3.0110|1.1|&lt;br /&gt;
*[[fileClose]]&lt;br /&gt;
*[[fileCreate]]&lt;br /&gt;
*[[fileDelete]]&lt;br /&gt;
*[[fileExists]]&lt;br /&gt;
*[[fileFlush]]&lt;br /&gt;
*[[fileGetPos]]&lt;br /&gt;
*[[fileGetSize]]&lt;br /&gt;
*[[fileIsEOF]]&lt;br /&gt;
*[[fileOpen]]&lt;br /&gt;
*[[fileRead]]&lt;br /&gt;
*[[fileRename]]&lt;br /&gt;
*[[fileSetPos]]&lt;br /&gt;
*[[fileWrite]]&lt;br /&gt;
}}&lt;/div&gt;</summary>
		<author><name>MX Master</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Talk:Client_Scripting_Functions&amp;diff=25663</id>
		<title>Talk:Client Scripting Functions</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Talk:Client_Scripting_Functions&amp;diff=25663"/>
		<updated>2011-04-27T17:27:44Z</updated>

		<summary type="html">&lt;p&gt;MX Master: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;'''getPlayerUserName''' (http://development.mtasa.com/index.php?title=GetPlayerUserName) is listed in the Client Functions, when it is a Server Function.&lt;br /&gt;
*I've removed it.[[User:EAi|eAi]] 08:09, 30 March 2008 (CDT)&lt;br /&gt;
&lt;br /&gt;
File functions already exists for client.. may be add File_Functions template to this page?&lt;/div&gt;</summary>
		<author><name>MX Master</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=User:MX_Master&amp;diff=25660</id>
		<title>User:MX Master</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=User:MX_Master&amp;diff=25660"/>
		<updated>2011-04-27T02:54:33Z</updated>

		<summary type="html">&lt;p&gt;MX Master: add contacts and info about user MX_Master&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;'''MTA:SA''' fan;&amp;lt;br /&amp;gt;&lt;br /&gt;
'''MTA:SA''' / '''IV:MP''' / '''SA:MP''' scripter;&amp;lt;br /&amp;gt;&lt;br /&gt;
Web master;&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''MX_Master''''s contacts:&amp;lt;br /&amp;gt;&lt;br /&gt;
----&lt;br /&gt;
:'''ICQ''': 701920&amp;lt;br /&amp;gt;&lt;br /&gt;
:'''WEB''': [http://www.mxgames.kz/ mxgames.kz], MX_Master&lt;br /&gt;
:'''Google''': mx.master.kz&lt;/div&gt;</summary>
		<author><name>MX Master</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Template:File_functions&amp;diff=25659</id>
		<title>Template:File functions</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Template:File_functions&amp;diff=25659"/>
		<updated>2011-04-26T13:43:05Z</updated>

		<summary type="html">&lt;p&gt;MX Master: Added `fileRename` link. List sorted.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;*[[fileClose]]&lt;br /&gt;
*[[fileCreate]]&lt;br /&gt;
{{New feature|3|1.0|&lt;br /&gt;
*[[fileDelete]]&lt;br /&gt;
}}&lt;br /&gt;
{{New feature|3.0004|1.0.4|&lt;br /&gt;
*[[fileExists]]&lt;br /&gt;
}}&lt;br /&gt;
*[[fileFlush]]&lt;br /&gt;
*[[fileGetPos]]&lt;br /&gt;
*[[fileGetSize]]&lt;br /&gt;
*[[fileIsEOF]]&lt;br /&gt;
*[[fileOpen]]&lt;br /&gt;
*[[fileRead]]&lt;br /&gt;
{{New feature|3.0110|1.1|&lt;br /&gt;
*[[fileRename]]&lt;br /&gt;
}}&lt;br /&gt;
*[[fileSetPos]]&lt;br /&gt;
*[[fileWrite]]&lt;/div&gt;</summary>
		<author><name>MX Master</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=FileRename&amp;diff=25658</id>
		<title>FileRename</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=FileRename&amp;diff=25658"/>
		<updated>2011-04-26T13:28:44Z</updated>

		<summary type="html">&lt;p&gt;MX Master: new page for new fileRename function&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__&lt;br /&gt;
{{Server function}}&lt;br /&gt;
&lt;br /&gt;
Renames the specified file.&lt;br /&gt;
&lt;br /&gt;
'''Note:''' Also with this function you can move specified file to a new location, new folder or even to another resource's folder. But for this action executing resource must have 'ModifyOtherObjects' ACL right set to ''true''.&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 fileRename ( string filePath, string newFilePath )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Required Arguments===&lt;br /&gt;
*'''filePath:''' The [[filepath]] of the source file in the following format: '''&amp;quot;:resourceName/path&amp;quot;'''. 'resourceName' is the name of the resource the file is in, and 'path' is the path from the root directory of the resource to the file. If the file is in the current resource, only the file path is necessary.&lt;br /&gt;
*'''newFilePath:''' Destination [[filepath]] for the specified source file in the same format.&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
If successful, returns ''true''. Otherwise returns ''false''.&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
This example renames the file ''test1.txt'' that is in the root of the current resource to ''test2.txt''.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
if fileRename( &amp;quot;test1.txt&amp;quot;, &amp;quot;test2.txt&amp;quot; ) then&lt;br /&gt;
    outputConsole(&amp;quot;File `test1.txt` successfully renamed to `test2.txt`&amp;quot;)&lt;br /&gt;
else&lt;br /&gt;
    outputConsole(&amp;quot;Unable to rename `test1.txt`&amp;quot;)&lt;br /&gt;
end&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This example moves the file ''test1.txt'' that is in the root of the current resource to ''myFolder'' folder. If this folder is not exists, it will be created before moving the file ''test1.txt''.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
if fileRename( &amp;quot;test1.txt&amp;quot;, &amp;quot;myFolder/test1.txt&amp;quot; ) then&lt;br /&gt;
    outputConsole(&amp;quot;File `test1.txt` successfuly moved to `myFolder` folder&amp;quot;)&lt;br /&gt;
else&lt;br /&gt;
    outputConsole(&amp;quot;Unable to move `test1.txt`&amp;quot;)&lt;br /&gt;
end&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{File functions}}&lt;/div&gt;</summary>
		<author><name>MX Master</name></author>
	</entry>
</feed>