<?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=Robhol</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=Robhol"/>
	<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/wiki/Special:Contributions/Robhol"/>
	<updated>2026-04-25T12:32:36Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.39.3</generator>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=MakePedUseGun&amp;diff=24114</id>
		<title>MakePedUseGun</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=MakePedUseGun&amp;diff=24114"/>
		<updated>2010-07-28T08:54:13Z</updated>

		<summary type="html">&lt;p&gt;Robhol: x86/Sebas is a mushroom&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__&lt;br /&gt;
{{Client function}}&lt;br /&gt;
[[Category:Needs_Example]]&lt;br /&gt;
This function is used to force a ped to use a gun.&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 makePedUseGun ( ped thePed, int useType, element target )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Required Arguments===&lt;br /&gt;
*'''thePed:''' The [[ped]] you wish to force the use of a gun upon.&lt;br /&gt;
*'''useType:''' How the weapon should be used, will accept the following values:&lt;br /&gt;
** '''0:''' Do nothing&lt;br /&gt;
** '''1:''' Aim weapon&lt;br /&gt;
** '''2:''' Fire&lt;br /&gt;
** '''3:''' Burst-fire&lt;br /&gt;
** '''4:''' Reload&lt;br /&gt;
** '''5:''' Pistolwhip (Weapon melee)&lt;br /&gt;
** '''6:''' Cancel use&lt;br /&gt;
** '''7:''' Cancel use immediately&lt;br /&gt;
*'''target:''' An [[element]] referring to the target that the ped will use its weapon against. &lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns ''true'' if the command was successful, false otherwise.&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
This page lacks an example.&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{Client_ped_functions}}&lt;/div&gt;</summary>
		<author><name>Robhol</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=MakePedUseGun&amp;diff=24113</id>
		<title>MakePedUseGun</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=MakePedUseGun&amp;diff=24113"/>
		<updated>2010-07-28T08:53:24Z</updated>

		<summary type="html">&lt;p&gt;Robhol: /* Example */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__&lt;br /&gt;
{{Client function}}&lt;br /&gt;
This function is used to force a ped to use a gun.&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 makePedUseGun ( ped thePed, int useType, element target )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Required Arguments===&lt;br /&gt;
*'''thePed:''' The [[ped]] you wish to force the use of a gun upon.&lt;br /&gt;
*'''useType:''' How the weapon should be used, will accept the following values:&lt;br /&gt;
** '''0:''' Do nothing&lt;br /&gt;
** '''1:''' Aim weapon&lt;br /&gt;
** '''2:''' Fire&lt;br /&gt;
** '''3:''' Burst-fire&lt;br /&gt;
** '''4:''' Reload&lt;br /&gt;
** '''5:''' Pistolwhip (Weapon melee)&lt;br /&gt;
** '''6:''' Cancel use&lt;br /&gt;
** '''7:''' Cancel use immediately&lt;br /&gt;
*'''target:''' An [[element]] referring to the target that the ped will use its weapon against. &lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns ''true'' if the command was successful, false otherwise.&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
This page lacks an example.&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{Client_ped_functions}}&lt;/div&gt;</summary>
		<author><name>Robhol</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=GetPedWeapon&amp;diff=23764</id>
		<title>GetPedWeapon</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=GetPedWeapon&amp;diff=23764"/>
		<updated>2010-06-25T09:38:06Z</updated>

		<summary type="html">&lt;p&gt;Robhol: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__&lt;br /&gt;
{{Server client function}}&lt;br /&gt;
This function tells you which weapon type is in a certain weapon slot of a ped. See [[weapon|Weapon Info]]&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 getPedWeapon ( ped thePed, [ int weaponSlot = current ] )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Required Arguments===&lt;br /&gt;
*'''thePed''': the [[ped]] you want to get the weapon type from.&lt;br /&gt;
&lt;br /&gt;
===Optional Arguments===&lt;br /&gt;
*'''weaponSlot''': an integer representing the weapon slot (set to the ped's current slot if not given).&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns an [[int]] indicating the type of the weapon the ped has in the specified slot. If the slot is empty, it returns 0.&lt;br /&gt;
&lt;br /&gt;
It should be noted that if a ped runs out of ammo for a weapon, it will still return the ID of that weapon in the slot (even if it appears as if the ped does not have a weapon at all), though [[getPedTotalAmmo]] will return '''0'''.  Therefore, [[getPedTotalAmmo]] should be used in conjunction with [[getPedWeapon]] in order to check if a ped has a weapon.&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
This serverside example will display a player's current weapon type. In this case, it is hard coded to use the player called ''someguy''.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
-- Find a player called someguy and find his current weapon id.&lt;br /&gt;
local weaponType = getPedWeapon ( getPlayerFromNick ( &amp;quot;someguy&amp;quot; ) )&lt;br /&gt;
-- If a weapon type was returned then&lt;br /&gt;
if ( weaponType ) then&lt;br /&gt;
    outputChatBox ( &amp;quot;someguy's current Weapon-type: &amp;quot; .. weaponType .. &amp;quot;.&amp;quot; ) -- Display the weapon type in the chat box&lt;br /&gt;
end&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{Client_ped_functions}}&lt;/div&gt;</summary>
		<author><name>Robhol</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=GetPlayerWeapon&amp;diff=23763</id>
		<title>GetPlayerWeapon</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=GetPlayerWeapon&amp;diff=23763"/>
		<updated>2010-06-25T09:30:43Z</updated>

		<summary type="html">&lt;p&gt;Robhol: Deprecated&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__&lt;br /&gt;
{{Server client function}}&lt;br /&gt;
&lt;br /&gt;
{{Deprecated}}&lt;br /&gt;
&lt;br /&gt;
This function tells you which weapon type is in the player's current slot (clientside, you can optionally specify a slot other than the current one). See [[weapon|Weapon Info]]&lt;br /&gt;
&lt;br /&gt;
==Syntax==&lt;br /&gt;
&amp;lt;section name=&amp;quot;Server&amp;quot; class=&amp;quot;server&amp;quot; show=&amp;quot;true&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
int getPlayerWeapon ( player thePlayer )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Required Arguments===&lt;br /&gt;
*'''thePlayer''': the [[player]] you want to get the weapon type from.&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns an [[int]] indicating the type of the weapon the player has currently equipped.&lt;br /&gt;
&amp;lt;/section&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;section name=&amp;quot;Client&amp;quot; class=&amp;quot;client&amp;quot; show=&amp;quot;true&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
int getPlayerWeapon ( player thePlayer, [ int weaponSlot = current ] )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Required Arguments===&lt;br /&gt;
*'''thePlayer''': the [[player]] you want to get the weapon type from.&lt;br /&gt;
&lt;br /&gt;
===Optional Arguments===&lt;br /&gt;
*'''weaponSlot''': an integer representing the weapon slot (set to the players current slot if not given).&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns an [[int]] indicating the type of the weapon the player has in the specified slot.  &lt;br /&gt;
&lt;br /&gt;
It should be noted that if a player runs out of ammo for a weapon, it will still return the ID of that weapon in the slot (even if it appears as if the player does not have a weapon at all), though [[getPlayerTotalAmmo]] will return '''0'''.  Therefore, [[getPlayerTotalAmmo]] should be used in conjunction with [[getPlayerWeapon]] in order to check if a player has a weapon.&lt;br /&gt;
&amp;lt;/section&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
&amp;lt;section name=&amp;quot;Example&amp;quot; class=&amp;quot;server&amp;quot; show=&amp;quot;true&amp;quot;&amp;gt;&lt;br /&gt;
This serverside example will display a player's current weapon type. In this case, it is hard coded to use the player called ''someguy''.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
-- Find a player called someguy and find his current weapon id.&lt;br /&gt;
local weaponType = getPlayerWeapon ( getPlayerFromNick ( &amp;quot;someguy&amp;quot; ) )&lt;br /&gt;
-- If a weapon type was returned then&lt;br /&gt;
if ( weaponType ) then&lt;br /&gt;
  outputChatBox ( &amp;quot;someguy's current Weapon-type: &amp;quot; .. weaponType .. &amp;quot;.&amp;quot; ) -- Display the weapon type in the chat box&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>Robhol</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Modules/IRCEcho&amp;diff=22759</id>
		<title>Modules/IRCEcho</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Modules/IRCEcho&amp;diff=22759"/>
		<updated>2010-03-30T22:38:47Z</updated>

		<summary type="html">&lt;p&gt;Robhol: By now, I should think DP2 quirks are largely irrelevant.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Module_Info|&lt;br /&gt;
  name           = MTASA IRC Echo |&lt;br /&gt;
  version        = 2.1 |&lt;br /&gt;
  author         = [[User:VRocker|VRocker]] |&lt;br /&gt;
  module_website = ''Not available'' |&lt;br /&gt;
  download_link  = [http://liberty-unleashed.co.uk/MTA/IRC%20Echo%20Script%20v2.zip Here] |&lt;br /&gt;
  license        = ''Unlicensed'' |&lt;br /&gt;
}}&lt;br /&gt;
MTASA IRC Echo is a module that provides an IRC echo for an MTASA server. It is available for both Windows and Linux.&lt;br /&gt;
&lt;br /&gt;
==Installation==&lt;br /&gt;
===Windows===&lt;br /&gt;
Uncompress the file ml_ircecho.dll into your ''%PROGRAMFILES%\MTA San Andreas\server\mods\deathmatch\modules\'' directory.&lt;br /&gt;
&lt;br /&gt;
Then, add the following line in mtaserver.conf:&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
  &amp;lt;module src=&amp;quot;ml_ircecho.dll&amp;quot; /&amp;gt;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Linux===&lt;br /&gt;
Uncompress the file ml_ircecho.so into your ''%MTASERVER%\mods\deathmatch\modules\'' directory.&lt;br /&gt;
&lt;br /&gt;
Then, add the following line in mtaserver.conf:&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
  &amp;lt;module src=&amp;quot;ml_ircecho.so&amp;quot; /&amp;gt;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Functions==&lt;br /&gt;
{{Modules/IRCEcho/Functions}}&lt;br /&gt;
&lt;br /&gt;
==Callbacks==&lt;br /&gt;
{{Modules/IRCEcho/Callbacks}}&lt;br /&gt;
&lt;br /&gt;
[[Category:Modules]]&lt;/div&gt;</summary>
		<author><name>Robhol</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=GetElementsByType&amp;diff=22486</id>
		<title>GetElementsByType</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=GetElementsByType&amp;diff=22486"/>
		<updated>2010-02-25T22:13:39Z</updated>

		<summary type="html">&lt;p&gt;Robhol: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Server_client_function}}&lt;br /&gt;
__NOTOC__ &lt;br /&gt;
This function is used to retrieve a list of all elements of the specified type. This can be useful, as it disregards ''where'' in the element tree it is. It can be used with either the built in types (listed below) or with any custom type used in a .map file. For example, if there is an element of type &amp;quot;flag&amp;quot; (e.g. &amp;lt;flag /&amp;gt;) in the .map file, the using &amp;quot;flag&amp;quot; as the type argument would find it.&lt;br /&gt;
&lt;br /&gt;
==Syntax== &lt;br /&gt;
&amp;lt;section name=&amp;quot;Server&amp;quot; class=&amp;quot;server&amp;quot; show=&amp;quot;true&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
table getElementsByType ( string theType, [ element startat=getRootElement() ] ) &lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;/section&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;section name=&amp;quot;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;
table getElementsByType ( string theType, [ element startat=getRootElement(), bool streamedIn=false ] ) &lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;/section&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Required Arguments=== &lt;br /&gt;
*'''theType:''' The type of element you want a list of. This is the same as the tag name in the .map file, so this can be used with a custom element type if desired. Built in types are:&lt;br /&gt;
**'''&amp;quot;player&amp;quot;:''' A player connected to the server&lt;br /&gt;
**'''&amp;quot;ped&amp;quot;:''' A ped&lt;br /&gt;
**'''&amp;quot;water&amp;quot;:''' A water polygon&lt;br /&gt;
**'''&amp;quot;sound&amp;quot;:''' A playing sound&lt;br /&gt;
**'''&amp;quot;vehicle&amp;quot;:''' A vehicle&lt;br /&gt;
**'''&amp;quot;object&amp;quot;:''' An object&lt;br /&gt;
**'''&amp;quot;pickup&amp;quot;:''' A pickup&lt;br /&gt;
**'''&amp;quot;marker&amp;quot;:''' A marker&lt;br /&gt;
**'''&amp;quot;colshape&amp;quot;:''' A collision shape&lt;br /&gt;
**'''&amp;quot;blip&amp;quot;:''' A blip&lt;br /&gt;
**'''&amp;quot;radararea&amp;quot;:''' A radar area&lt;br /&gt;
**'''&amp;quot;team&amp;quot;:''' A team&lt;br /&gt;
**'''&amp;quot;spawnpoint&amp;quot;:''' A spawnpoint&lt;br /&gt;
**'''&amp;quot;remoteclient&amp;quot;:''' A remote client connected to the server&lt;br /&gt;
**'''&amp;quot;console&amp;quot;:''' The server Console&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Optional Arguments==&lt;br /&gt;
{{OptionalArg}}&lt;br /&gt;
*'''startat:''' The [[element]] the search should start at. Children of this element are searched, siblings or parents will not be found. By default, this is the root element which should suit most uses.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;section name=&amp;quot;Client&amp;quot; class=&amp;quot;client&amp;quot; show=&amp;quot;true&amp;quot;&amp;gt;&lt;br /&gt;
*'''streamedIn:''' If true, function will only return elements that are streamed in.&lt;br /&gt;
&amp;lt;/section&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span style=&amp;quot;color: #FFF&amp;quot;&amp;gt; (PS: lil_Toady is a commie) &amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns a ''table'' containing all the elements of the specified type. Returns an empty ''table'' if there are no elements of the specified type. Returns ''false'' if the string specified is invalid (or not a string).&lt;br /&gt;
&lt;br /&gt;
==Example== &lt;br /&gt;
This example retrieves a table of the players in the server, and checks whether or not each one is in a vehicle:&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
local players = getElementsByType ( &amp;quot;player&amp;quot; ) -- get a table of all the players in the server&lt;br /&gt;
for theKey,thePlayer in ipairs(players) do -- use a generic for loop to step through each player&lt;br /&gt;
   if ( isPlayerInVehicle ( thePlayer ) ) then -- if the player is in a vehicle, announce it&lt;br /&gt;
      outputChatBox ( getPlayerName ( thePlayer ) .. &amp;quot; is in a vehicle&amp;quot; )&lt;br /&gt;
   else -- if the player isn't in a vehicle, announce that he/she is on foot&lt;br /&gt;
      outputChatBox ( getPlayerName ( thePlayer ) .. &amp;quot; is on foot&amp;quot; )&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;
{{Element_functions}}&lt;/div&gt;</summary>
		<author><name>Robhol</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Resource:Rh_help&amp;diff=22054</id>
		<title>Resource:Rh help</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Resource:Rh_help&amp;diff=22054"/>
		<updated>2009-12-19T10:17:39Z</updated>

		<summary type="html">&lt;p&gt;Robhol: /* Scripters */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Resource page}}&lt;br /&gt;
This is intended as a replacement for the standard help manager resource. It looks for help.xml files in running resources and displays the text.&lt;br /&gt;
&lt;br /&gt;
This resource does not support the GUI customization from helpmanager, but does offer more flexibility when dealing with help.xml files. This resource will let you provide your own titles (instead of using resource names only) and a set order in which your &amp;quot;chapters&amp;quot; or help resources will appear.&lt;br /&gt;
&lt;br /&gt;
==Download==&lt;br /&gt;
The resource can be found on the resource center.&lt;br /&gt;
[http://community.mtasa.com/index.html?p=resources&amp;amp;s=details&amp;amp;id=540 Resource page]&lt;br /&gt;
&lt;br /&gt;
==Usage==&lt;br /&gt;
===Scripters===&lt;br /&gt;
To add a help entry/chapter to a resource, include the following line in its meta.xml.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;config src=&amp;quot;help.xml&amp;quot; type=&amp;quot;client&amp;quot;/&amp;gt;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
This will make sure the help.xml file is downloaded and accessible.&lt;br /&gt;
&lt;br /&gt;
The actual help chapter must be entered in this help.xml file. A normal help.xml file syntax looks like this:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;help title=&amp;quot;My title&amp;quot; ordering=&amp;quot;42&amp;quot;&amp;gt;&lt;br /&gt;
Help text here&lt;br /&gt;
&amp;lt;/help&amp;gt;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The part inside the actual tag (&amp;quot;Help text here&amp;quot;) is what will be displayed in the text box. The title attribute is what will be displayed for this chapter in the list. The ordering attribute &amp;quot;sorts&amp;quot; the chapters so you can have them in a certain order. (Ascending, that is, higher numbers go lower in the list.) Both attributes are optional. If title is not given, then the list item will show up as the resource name. If ordering is not given, it will be decided by the order in which the resources are started and/or restarted.&lt;br /&gt;
&lt;br /&gt;
rh_help is backwards-compatible with helpmanager, which means you don't have to do anything more than running this resource (and disabling the old one) to start using it. It can tackle the old help.xml layout just fine.&lt;br /&gt;
&lt;br /&gt;
===Players===&lt;br /&gt;
'''F9''': toggles the help window.&lt;br /&gt;
&lt;br /&gt;
'''/gamehelp''': also toggles the help window. :)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Note:''' both the key and the command can be changed to something else in the script, although this is not recommended for two reasons. It will make things harder for players who are used to these fairly standardized ways of opening a help GUI, and unless you rename the script file (I didn't really care to bother putting in a server-side file just for settings when they ideally shouldn't be changed to begin with...) clients will need to download it again on other servers, and AGAIN when they returns to yours.&lt;/div&gt;</summary>
		<author><name>Robhol</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Resource:Rh_help&amp;diff=22053</id>
		<title>Resource:Rh help</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Resource:Rh_help&amp;diff=22053"/>
		<updated>2009-12-19T10:13:31Z</updated>

		<summary type="html">&lt;p&gt;Robhol: Added link&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Resource page}}&lt;br /&gt;
This is intended as a replacement for the standard help manager resource. It looks for help.xml files in running resources and displays the text.&lt;br /&gt;
&lt;br /&gt;
This resource does not support the GUI customization from helpmanager, but does offer more flexibility when dealing with help.xml files. This resource will let you provide your own titles (instead of using resource names only) and a set order in which your &amp;quot;chapters&amp;quot; or help resources will appear.&lt;br /&gt;
&lt;br /&gt;
==Download==&lt;br /&gt;
The resource can be found on the resource center.&lt;br /&gt;
[http://community.mtasa.com/index.html?p=resources&amp;amp;s=details&amp;amp;id=540 Resource page]&lt;br /&gt;
&lt;br /&gt;
==Usage==&lt;br /&gt;
===Scripters===&lt;br /&gt;
To add a help entry/chapter to a resource, include the following line in its meta.xml.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;config src=&amp;quot;help.xml&amp;quot; type=&amp;quot;client&amp;quot;/&amp;gt;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
This will make sure the help.xml file is downloaded and accessible.&lt;br /&gt;
&lt;br /&gt;
The actual help chapter must be entered in this help.xml file. A normal help.xml file syntax looks like this:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;help title=&amp;quot;My title&amp;quot; ordering=&amp;quot;42&amp;quot;&amp;gt;&lt;br /&gt;
Help text here&lt;br /&gt;
&amp;lt;/help&amp;gt;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The part inside the actual tag (&amp;quot;Help text here&amp;quot;) is what will be displayed in the text box. The title attribute is what will be displayed for this chapter in the list. The ordering attribute &amp;quot;sorts&amp;quot; the chapters so you can have them in a certain order. Both attributes are optional. If title is not given, then the list item will show up as the resource name. If ordering is not given, it will be decided by the order in which the resources are started and/or restarted.&lt;br /&gt;
&lt;br /&gt;
rh_help is backwards-compatible with helpmanager, which means you don't have to do anything more than running this resource (and disabling the old one) to start using it. It can tackle the old help.xml layout just fine.&lt;br /&gt;
&lt;br /&gt;
===Players===&lt;br /&gt;
'''F9''': toggles the help window.&lt;br /&gt;
&lt;br /&gt;
'''/gamehelp''': also toggles the help window. :)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Note:''' both the key and the command can be changed to something else in the script, although this is not recommended for two reasons. It will make things harder for players who are used to these fairly standardized ways of opening a help GUI, and unless you rename the script file (I didn't really care to bother putting in a server-side file just for settings when they ideally shouldn't be changed to begin with...) clients will need to download it again on other servers, and AGAIN when they returns to yours.&lt;/div&gt;</summary>
		<author><name>Robhol</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Resource:Rh_help&amp;diff=22052</id>
		<title>Resource:Rh help</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Resource:Rh_help&amp;diff=22052"/>
		<updated>2009-12-19T10:12:19Z</updated>

		<summary type="html">&lt;p&gt;Robhol: /* Players */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Resource page}}&lt;br /&gt;
This is intended as a replacement for the standard help manager resource. It looks for help.xml files in running resources and displays the text.&lt;br /&gt;
&lt;br /&gt;
This resource does not support the GUI customization from helpmanager, but does offer more flexibility when dealing with help.xml files. This resource will let you provide your own titles (instead of using resource names only) and a set order in which your &amp;quot;chapters&amp;quot; or help resources will appear.&lt;br /&gt;
&lt;br /&gt;
==Download==&lt;br /&gt;
The resource can be found on the resource center.&lt;br /&gt;
(Link coming soon.)&lt;br /&gt;
&lt;br /&gt;
==Usage==&lt;br /&gt;
===Scripters===&lt;br /&gt;
To add a help entry/chapter to a resource, include the following line in its meta.xml.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;config src=&amp;quot;help.xml&amp;quot; type=&amp;quot;client&amp;quot;/&amp;gt;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
This will make sure the help.xml file is downloaded and accessible.&lt;br /&gt;
&lt;br /&gt;
The actual help chapter must be entered in this help.xml file. A normal help.xml file syntax looks like this:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;help title=&amp;quot;My title&amp;quot; ordering=&amp;quot;42&amp;quot;&amp;gt;&lt;br /&gt;
Help text here&lt;br /&gt;
&amp;lt;/help&amp;gt;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The part inside the actual tag (&amp;quot;Help text here&amp;quot;) is what will be displayed in the text box. The title attribute is what will be displayed for this chapter in the list. The ordering attribute &amp;quot;sorts&amp;quot; the chapters so you can have them in a certain order. Both attributes are optional. If title is not given, then the list item will show up as the resource name. If ordering is not given, it will be decided by the order in which the resources are started and/or restarted.&lt;br /&gt;
&lt;br /&gt;
rh_help is backwards-compatible with helpmanager, which means you don't have to do anything more than running this resource (and disabling the old one) to start using it. It can tackle the old help.xml layout just fine.&lt;br /&gt;
&lt;br /&gt;
===Players===&lt;br /&gt;
'''F9''': toggles the help window.&lt;br /&gt;
&lt;br /&gt;
'''/gamehelp''': also toggles the help window. :)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Note:''' both the key and the command can be changed to something else in the script, although this is not recommended for two reasons. It will make things harder for players who are used to these fairly standardized ways of opening a help GUI, and unless you rename the script file (I didn't really care to bother putting in a server-side file just for settings when they ideally shouldn't be changed to begin with...) clients will need to download it again on other servers, and AGAIN when they returns to yours.&lt;/div&gt;</summary>
		<author><name>Robhol</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Resource:Rh_help&amp;diff=22051</id>
		<title>Resource:Rh help</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Resource:Rh_help&amp;diff=22051"/>
		<updated>2009-12-19T10:11:54Z</updated>

		<summary type="html">&lt;p&gt;Robhol: /* Players */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Resource page}}&lt;br /&gt;
This is intended as a replacement for the standard help manager resource. It looks for help.xml files in running resources and displays the text.&lt;br /&gt;
&lt;br /&gt;
This resource does not support the GUI customization from helpmanager, but does offer more flexibility when dealing with help.xml files. This resource will let you provide your own titles (instead of using resource names only) and a set order in which your &amp;quot;chapters&amp;quot; or help resources will appear.&lt;br /&gt;
&lt;br /&gt;
==Download==&lt;br /&gt;
The resource can be found on the resource center.&lt;br /&gt;
(Link coming soon.)&lt;br /&gt;
&lt;br /&gt;
==Usage==&lt;br /&gt;
===Scripters===&lt;br /&gt;
To add a help entry/chapter to a resource, include the following line in its meta.xml.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;config src=&amp;quot;help.xml&amp;quot; type=&amp;quot;client&amp;quot;/&amp;gt;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
This will make sure the help.xml file is downloaded and accessible.&lt;br /&gt;
&lt;br /&gt;
The actual help chapter must be entered in this help.xml file. A normal help.xml file syntax looks like this:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;help title=&amp;quot;My title&amp;quot; ordering=&amp;quot;42&amp;quot;&amp;gt;&lt;br /&gt;
Help text here&lt;br /&gt;
&amp;lt;/help&amp;gt;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The part inside the actual tag (&amp;quot;Help text here&amp;quot;) is what will be displayed in the text box. The title attribute is what will be displayed for this chapter in the list. The ordering attribute &amp;quot;sorts&amp;quot; the chapters so you can have them in a certain order. Both attributes are optional. If title is not given, then the list item will show up as the resource name. If ordering is not given, it will be decided by the order in which the resources are started and/or restarted.&lt;br /&gt;
&lt;br /&gt;
rh_help is backwards-compatible with helpmanager, which means you don't have to do anything more than running this resource (and disabling the old one) to start using it. It can tackle the old help.xml layout just fine.&lt;br /&gt;
&lt;br /&gt;
===Players===&lt;br /&gt;
'''F9''': toggles the help window.&lt;br /&gt;
&lt;br /&gt;
'''/gamehelp''': also toggles the help window. :)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Note:''' both the key and the command can be changed to something else in the script, although this is not recommended for two reasons. It will make things harder for players who are used to these fairly standardized ways of opening a help GUI, and unless you rename the script file (I didn't really care to bother putting in a server-side file just for settings when they ideally shouldn't be used anyways) clients will need to download it again on other servers, and AGAIN when they returns to yours.&lt;/div&gt;</summary>
		<author><name>Robhol</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Resource:Rh_help&amp;diff=22050</id>
		<title>Resource:Rh help</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Resource:Rh_help&amp;diff=22050"/>
		<updated>2009-12-19T10:11:39Z</updated>

		<summary type="html">&lt;p&gt;Robhol: /* Commands */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Resource page}}&lt;br /&gt;
This is intended as a replacement for the standard help manager resource. It looks for help.xml files in running resources and displays the text.&lt;br /&gt;
&lt;br /&gt;
This resource does not support the GUI customization from helpmanager, but does offer more flexibility when dealing with help.xml files. This resource will let you provide your own titles (instead of using resource names only) and a set order in which your &amp;quot;chapters&amp;quot; or help resources will appear.&lt;br /&gt;
&lt;br /&gt;
==Download==&lt;br /&gt;
The resource can be found on the resource center.&lt;br /&gt;
(Link coming soon.)&lt;br /&gt;
&lt;br /&gt;
==Usage==&lt;br /&gt;
===Scripters===&lt;br /&gt;
To add a help entry/chapter to a resource, include the following line in its meta.xml.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;config src=&amp;quot;help.xml&amp;quot; type=&amp;quot;client&amp;quot;/&amp;gt;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
This will make sure the help.xml file is downloaded and accessible.&lt;br /&gt;
&lt;br /&gt;
The actual help chapter must be entered in this help.xml file. A normal help.xml file syntax looks like this:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;help title=&amp;quot;My title&amp;quot; ordering=&amp;quot;42&amp;quot;&amp;gt;&lt;br /&gt;
Help text here&lt;br /&gt;
&amp;lt;/help&amp;gt;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The part inside the actual tag (&amp;quot;Help text here&amp;quot;) is what will be displayed in the text box. The title attribute is what will be displayed for this chapter in the list. The ordering attribute &amp;quot;sorts&amp;quot; the chapters so you can have them in a certain order. Both attributes are optional. If title is not given, then the list item will show up as the resource name. If ordering is not given, it will be decided by the order in which the resources are started and/or restarted.&lt;br /&gt;
&lt;br /&gt;
rh_help is backwards-compatible with helpmanager, which means you don't have to do anything more than running this resource (and disabling the old one) to start using it. It can tackle the old help.xml layout just fine.&lt;br /&gt;
&lt;br /&gt;
===Players===&lt;br /&gt;
'''F9''': toggles the help window.&lt;br /&gt;
'''/gamehelp''': also toggles the help window. :)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Note:''' both the key and the command can be changed to something else in the script, although this is not recommended for two reasons. It will make things harder for players who are used to these fairly standardized ways of opening a help GUI, and unless you rename the script file (I didn't really care to bother putting in a server-side file just for settings when they ideally shouldn't be used anyways) clients will need to download it again on other servers, and AGAIN when they returns to yours.&lt;/div&gt;</summary>
		<author><name>Robhol</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Resource:Rh_help&amp;diff=22049</id>
		<title>Resource:Rh help</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Resource:Rh_help&amp;diff=22049"/>
		<updated>2009-12-19T10:11:30Z</updated>

		<summary type="html">&lt;p&gt;Robhol: /* Keys */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Resource page}}&lt;br /&gt;
This is intended as a replacement for the standard help manager resource. It looks for help.xml files in running resources and displays the text.&lt;br /&gt;
&lt;br /&gt;
This resource does not support the GUI customization from helpmanager, but does offer more flexibility when dealing with help.xml files. This resource will let you provide your own titles (instead of using resource names only) and a set order in which your &amp;quot;chapters&amp;quot; or help resources will appear.&lt;br /&gt;
&lt;br /&gt;
==Download==&lt;br /&gt;
The resource can be found on the resource center.&lt;br /&gt;
(Link coming soon.)&lt;br /&gt;
&lt;br /&gt;
==Usage==&lt;br /&gt;
===Scripters===&lt;br /&gt;
To add a help entry/chapter to a resource, include the following line in its meta.xml.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;config src=&amp;quot;help.xml&amp;quot; type=&amp;quot;client&amp;quot;/&amp;gt;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
This will make sure the help.xml file is downloaded and accessible.&lt;br /&gt;
&lt;br /&gt;
The actual help chapter must be entered in this help.xml file. A normal help.xml file syntax looks like this:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;help title=&amp;quot;My title&amp;quot; ordering=&amp;quot;42&amp;quot;&amp;gt;&lt;br /&gt;
Help text here&lt;br /&gt;
&amp;lt;/help&amp;gt;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The part inside the actual tag (&amp;quot;Help text here&amp;quot;) is what will be displayed in the text box. The title attribute is what will be displayed for this chapter in the list. The ordering attribute &amp;quot;sorts&amp;quot; the chapters so you can have them in a certain order. Both attributes are optional. If title is not given, then the list item will show up as the resource name. If ordering is not given, it will be decided by the order in which the resources are started and/or restarted.&lt;br /&gt;
&lt;br /&gt;
rh_help is backwards-compatible with helpmanager, which means you don't have to do anything more than running this resource (and disabling the old one) to start using it. It can tackle the old help.xml layout just fine.&lt;br /&gt;
&lt;br /&gt;
===Players===&lt;br /&gt;
'''F9''': toggles the help window.&lt;br /&gt;
'''/gamehelp''': also toggles the help window. :)&lt;br /&gt;
&lt;br /&gt;
===Commands===&lt;br /&gt;
'''gamehelp''': toggles the help window.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Note:''' both the key and the command can be changed to something else in the script, although this is not recommended for two reasons. It will make things harder for players who are used to these fairly standardized ways of opening a help GUI, and unless you rename the script file (I didn't really care to bother putting in a server-side file just for settings when they ideally shouldn't be used anyways) clients will need to download it again on other servers, and AGAIN when they returns to yours.&lt;/div&gt;</summary>
		<author><name>Robhol</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Resource:Rh_help&amp;diff=22048</id>
		<title>Resource:Rh help</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Resource:Rh_help&amp;diff=22048"/>
		<updated>2009-12-19T10:10:57Z</updated>

		<summary type="html">&lt;p&gt;Robhol: /* Simple GUI */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Resource page}}&lt;br /&gt;
This is intended as a replacement for the standard help manager resource. It looks for help.xml files in running resources and displays the text.&lt;br /&gt;
&lt;br /&gt;
This resource does not support the GUI customization from helpmanager, but does offer more flexibility when dealing with help.xml files. This resource will let you provide your own titles (instead of using resource names only) and a set order in which your &amp;quot;chapters&amp;quot; or help resources will appear.&lt;br /&gt;
&lt;br /&gt;
==Download==&lt;br /&gt;
The resource can be found on the resource center.&lt;br /&gt;
(Link coming soon.)&lt;br /&gt;
&lt;br /&gt;
==Usage==&lt;br /&gt;
===Scripters===&lt;br /&gt;
To add a help entry/chapter to a resource, include the following line in its meta.xml.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;config src=&amp;quot;help.xml&amp;quot; type=&amp;quot;client&amp;quot;/&amp;gt;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
This will make sure the help.xml file is downloaded and accessible.&lt;br /&gt;
&lt;br /&gt;
The actual help chapter must be entered in this help.xml file. A normal help.xml file syntax looks like this:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;help title=&amp;quot;My title&amp;quot; ordering=&amp;quot;42&amp;quot;&amp;gt;&lt;br /&gt;
Help text here&lt;br /&gt;
&amp;lt;/help&amp;gt;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The part inside the actual tag (&amp;quot;Help text here&amp;quot;) is what will be displayed in the text box. The title attribute is what will be displayed for this chapter in the list. The ordering attribute &amp;quot;sorts&amp;quot; the chapters so you can have them in a certain order. Both attributes are optional. If title is not given, then the list item will show up as the resource name. If ordering is not given, it will be decided by the order in which the resources are started and/or restarted.&lt;br /&gt;
&lt;br /&gt;
rh_help is backwards-compatible with helpmanager, which means you don't have to do anything more than running this resource (and disabling the old one) to start using it. It can tackle the old help.xml layout just fine.&lt;br /&gt;
&lt;br /&gt;
===Keys===&lt;br /&gt;
'''F9''': toggles the help window.&lt;br /&gt;
&lt;br /&gt;
===Commands===&lt;br /&gt;
'''gamehelp''': toggles the help window.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Note:''' both the key and the command can be changed to something else in the script, although this is not recommended for two reasons. It will make things harder for players who are used to these fairly standardized ways of opening a help GUI, and unless you rename the script file (I didn't really care to bother putting in a server-side file just for settings when they ideally shouldn't be used anyways) clients will need to download it again on other servers, and AGAIN when they returns to yours.&lt;/div&gt;</summary>
		<author><name>Robhol</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Resource:Rh_help&amp;diff=22047</id>
		<title>Resource:Rh help</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Resource:Rh_help&amp;diff=22047"/>
		<updated>2009-12-19T10:10:31Z</updated>

		<summary type="html">&lt;p&gt;Robhol: /* Commands */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Resource page}}&lt;br /&gt;
This is intended as a replacement for the standard help manager resource. It looks for help.xml files in running resources and displays the text.&lt;br /&gt;
&lt;br /&gt;
This resource does not support the GUI customization from helpmanager, but does offer more flexibility when dealing with help.xml files. This resource will let you provide your own titles (instead of using resource names only) and a set order in which your &amp;quot;chapters&amp;quot; or help resources will appear.&lt;br /&gt;
&lt;br /&gt;
==Download==&lt;br /&gt;
The resource can be found on the resource center.&lt;br /&gt;
(Link coming soon.)&lt;br /&gt;
&lt;br /&gt;
==Usage==&lt;br /&gt;
===Simple GUI===&lt;br /&gt;
To add a help entry/chapter to a resource, include the following line in its meta.xml.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;config src=&amp;quot;help.xml&amp;quot; type=&amp;quot;client&amp;quot;/&amp;gt;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
This will make sure the help.xml file is downloaded and accessible.&lt;br /&gt;
&lt;br /&gt;
The actual help chapter must be entered in this help.xml file. A normal help.xml file syntax looks like this:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;help title=&amp;quot;My title&amp;quot; ordering=&amp;quot;42&amp;quot;&amp;gt;&lt;br /&gt;
Help text here&lt;br /&gt;
&amp;lt;/help&amp;gt;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The part inside the actual tag (&amp;quot;Help text here&amp;quot;) is what will be displayed in the text box. The title attribute is what will be displayed for this chapter in the list. The ordering attribute &amp;quot;sorts&amp;quot; the chapters so you can have them in a certain order. Both attributes are optional. If title is not given, then the list item will show up as the resource name. If ordering is not given, it will be decided by the order in which the resources are started and/or restarted.&lt;br /&gt;
&lt;br /&gt;
rh_help is backwards-compatible with helpmanager, which means you don't have to do anything more than running this resource (and disabling the old one) to start using it. It can tackle the old help.xml layout just fine.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Keys===&lt;br /&gt;
'''F9''': toggles the help window.&lt;br /&gt;
&lt;br /&gt;
===Commands===&lt;br /&gt;
'''gamehelp''': toggles the help window.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Note:''' both the key and the command can be changed to something else in the script, although this is not recommended for two reasons. It will make things harder for players who are used to these fairly standardized ways of opening a help GUI, and unless you rename the script file (I didn't really care to bother putting in a server-side file just for settings when they ideally shouldn't be used anyways) clients will need to download it again on other servers, and AGAIN when they returns to yours.&lt;/div&gt;</summary>
		<author><name>Robhol</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Resource:Rh_help&amp;diff=22046</id>
		<title>Resource:Rh help</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Resource:Rh_help&amp;diff=22046"/>
		<updated>2009-12-19T10:10:14Z</updated>

		<summary type="html">&lt;p&gt;Robhol: /* Commands */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Resource page}}&lt;br /&gt;
This is intended as a replacement for the standard help manager resource. It looks for help.xml files in running resources and displays the text.&lt;br /&gt;
&lt;br /&gt;
This resource does not support the GUI customization from helpmanager, but does offer more flexibility when dealing with help.xml files. This resource will let you provide your own titles (instead of using resource names only) and a set order in which your &amp;quot;chapters&amp;quot; or help resources will appear.&lt;br /&gt;
&lt;br /&gt;
==Download==&lt;br /&gt;
The resource can be found on the resource center.&lt;br /&gt;
(Link coming soon.)&lt;br /&gt;
&lt;br /&gt;
==Usage==&lt;br /&gt;
===Simple GUI===&lt;br /&gt;
To add a help entry/chapter to a resource, include the following line in its meta.xml.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;config src=&amp;quot;help.xml&amp;quot; type=&amp;quot;client&amp;quot;/&amp;gt;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
This will make sure the help.xml file is downloaded and accessible.&lt;br /&gt;
&lt;br /&gt;
The actual help chapter must be entered in this help.xml file. A normal help.xml file syntax looks like this:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;help title=&amp;quot;My title&amp;quot; ordering=&amp;quot;42&amp;quot;&amp;gt;&lt;br /&gt;
Help text here&lt;br /&gt;
&amp;lt;/help&amp;gt;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The part inside the actual tag (&amp;quot;Help text here&amp;quot;) is what will be displayed in the text box. The title attribute is what will be displayed for this chapter in the list. The ordering attribute &amp;quot;sorts&amp;quot; the chapters so you can have them in a certain order. Both attributes are optional. If title is not given, then the list item will show up as the resource name. If ordering is not given, it will be decided by the order in which the resources are started and/or restarted.&lt;br /&gt;
&lt;br /&gt;
rh_help is backwards-compatible with helpmanager, which means you don't have to do anything more than running this resource (and disabling the old one) to start using it. It can tackle the old help.xml layout just fine.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Keys===&lt;br /&gt;
'''F9''': toggles the help window.&lt;br /&gt;
&lt;br /&gt;
===Commands===&lt;br /&gt;
'''gamehelp''': toggles the help window.&lt;br /&gt;
&lt;br /&gt;
'''Note:''' both the key and the command can be changed to something else in the script, although this is not recommended for two reasons. It will make things harder for players who are used to these fairly standardized ways of opening a help GUI, and unless you rename the script file (I didn't really care to bother putting in a server-side file just for settings when they ideally shouldn't be used anyways) clients will need to download it again on other servers, and AGAIN when they returns to yours.&lt;/div&gt;</summary>
		<author><name>Robhol</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Resource:Rh_help&amp;diff=22045</id>
		<title>Resource:Rh help</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Resource:Rh_help&amp;diff=22045"/>
		<updated>2009-12-19T10:10:08Z</updated>

		<summary type="html">&lt;p&gt;Robhol: /* Keys */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Resource page}}&lt;br /&gt;
This is intended as a replacement for the standard help manager resource. It looks for help.xml files in running resources and displays the text.&lt;br /&gt;
&lt;br /&gt;
This resource does not support the GUI customization from helpmanager, but does offer more flexibility when dealing with help.xml files. This resource will let you provide your own titles (instead of using resource names only) and a set order in which your &amp;quot;chapters&amp;quot; or help resources will appear.&lt;br /&gt;
&lt;br /&gt;
==Download==&lt;br /&gt;
The resource can be found on the resource center.&lt;br /&gt;
(Link coming soon.)&lt;br /&gt;
&lt;br /&gt;
==Usage==&lt;br /&gt;
===Simple GUI===&lt;br /&gt;
To add a help entry/chapter to a resource, include the following line in its meta.xml.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;config src=&amp;quot;help.xml&amp;quot; type=&amp;quot;client&amp;quot;/&amp;gt;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
This will make sure the help.xml file is downloaded and accessible.&lt;br /&gt;
&lt;br /&gt;
The actual help chapter must be entered in this help.xml file. A normal help.xml file syntax looks like this:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;help title=&amp;quot;My title&amp;quot; ordering=&amp;quot;42&amp;quot;&amp;gt;&lt;br /&gt;
Help text here&lt;br /&gt;
&amp;lt;/help&amp;gt;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The part inside the actual tag (&amp;quot;Help text here&amp;quot;) is what will be displayed in the text box. The title attribute is what will be displayed for this chapter in the list. The ordering attribute &amp;quot;sorts&amp;quot; the chapters so you can have them in a certain order. Both attributes are optional. If title is not given, then the list item will show up as the resource name. If ordering is not given, it will be decided by the order in which the resources are started and/or restarted.&lt;br /&gt;
&lt;br /&gt;
rh_help is backwards-compatible with helpmanager, which means you don't have to do anything more than running this resource (and disabling the old one) to start using it. It can tackle the old help.xml layout just fine.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Keys===&lt;br /&gt;
'''F9''': toggles the help window.&lt;br /&gt;
&lt;br /&gt;
==Commands==&lt;br /&gt;
'''gamehelp''': toggles the help window.&lt;br /&gt;
&lt;br /&gt;
'''Note:''' both the key and the command can be changed to something else in the script, although this is not recommended for two reasons. It will make things harder for players who are used to these fairly standardized ways of opening a help GUI, and unless you rename the script file (I didn't really care to bother putting in a server-side file just for settings when they ideally shouldn't be used anyways) clients will need to download it again on other servers, and AGAIN when they returns to yours.&lt;/div&gt;</summary>
		<author><name>Robhol</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Resource:Rh_help&amp;diff=22044</id>
		<title>Resource:Rh help</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Resource:Rh_help&amp;diff=22044"/>
		<updated>2009-12-19T10:09:45Z</updated>

		<summary type="html">&lt;p&gt;Robhol: /* Commands */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Resource page}}&lt;br /&gt;
This is intended as a replacement for the standard help manager resource. It looks for help.xml files in running resources and displays the text.&lt;br /&gt;
&lt;br /&gt;
This resource does not support the GUI customization from helpmanager, but does offer more flexibility when dealing with help.xml files. This resource will let you provide your own titles (instead of using resource names only) and a set order in which your &amp;quot;chapters&amp;quot; or help resources will appear.&lt;br /&gt;
&lt;br /&gt;
==Download==&lt;br /&gt;
The resource can be found on the resource center.&lt;br /&gt;
(Link coming soon.)&lt;br /&gt;
&lt;br /&gt;
==Usage==&lt;br /&gt;
===Simple GUI===&lt;br /&gt;
To add a help entry/chapter to a resource, include the following line in its meta.xml.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;config src=&amp;quot;help.xml&amp;quot; type=&amp;quot;client&amp;quot;/&amp;gt;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
This will make sure the help.xml file is downloaded and accessible.&lt;br /&gt;
&lt;br /&gt;
The actual help chapter must be entered in this help.xml file. A normal help.xml file syntax looks like this:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;help title=&amp;quot;My title&amp;quot; ordering=&amp;quot;42&amp;quot;&amp;gt;&lt;br /&gt;
Help text here&lt;br /&gt;
&amp;lt;/help&amp;gt;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The part inside the actual tag (&amp;quot;Help text here&amp;quot;) is what will be displayed in the text box. The title attribute is what will be displayed for this chapter in the list. The ordering attribute &amp;quot;sorts&amp;quot; the chapters so you can have them in a certain order. Both attributes are optional. If title is not given, then the list item will show up as the resource name. If ordering is not given, it will be decided by the order in which the resources are started and/or restarted.&lt;br /&gt;
&lt;br /&gt;
rh_help is backwards-compatible with helpmanager, which means you don't have to do anything more than running this resource (and disabling the old one) to start using it. It can tackle the old help.xml layout just fine.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Keys==&lt;br /&gt;
'''F9''': toggles the help window.&lt;br /&gt;
&lt;br /&gt;
==Commands==&lt;br /&gt;
'''gamehelp''': toggles the help window.&lt;br /&gt;
&lt;br /&gt;
'''Note:''' both the key and the command can be changed to something else in the script, although this is not recommended for two reasons. It will make things harder for players who are used to these fairly standardized ways of opening a help GUI, and unless you rename the script file (I didn't really care to bother putting in a server-side file just for settings when they ideally shouldn't be used anyways) clients will need to download it again on other servers, and AGAIN when they returns to yours.&lt;/div&gt;</summary>
		<author><name>Robhol</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Resource:Rh_help&amp;diff=22043</id>
		<title>Resource:Rh help</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Resource:Rh_help&amp;diff=22043"/>
		<updated>2009-12-19T10:08:25Z</updated>

		<summary type="html">&lt;p&gt;Robhol: Created page.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Resource page}}&lt;br /&gt;
This is intended as a replacement for the standard help manager resource. It looks for help.xml files in running resources and displays the text.&lt;br /&gt;
&lt;br /&gt;
This resource does not support the GUI customization from helpmanager, but does offer more flexibility when dealing with help.xml files. This resource will let you provide your own titles (instead of using resource names only) and a set order in which your &amp;quot;chapters&amp;quot; or help resources will appear.&lt;br /&gt;
&lt;br /&gt;
==Download==&lt;br /&gt;
The resource can be found on the resource center.&lt;br /&gt;
(Link coming soon.)&lt;br /&gt;
&lt;br /&gt;
==Usage==&lt;br /&gt;
===Simple GUI===&lt;br /&gt;
To add a help entry/chapter to a resource, include the following line in its meta.xml.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;config src=&amp;quot;help.xml&amp;quot; type=&amp;quot;client&amp;quot;/&amp;gt;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
This will make sure the help.xml file is downloaded and accessible.&lt;br /&gt;
&lt;br /&gt;
The actual help chapter must be entered in this help.xml file. A normal help.xml file syntax looks like this:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;help title=&amp;quot;My title&amp;quot; ordering=&amp;quot;42&amp;quot;&amp;gt;&lt;br /&gt;
Help text here&lt;br /&gt;
&amp;lt;/help&amp;gt;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The part inside the actual tag (&amp;quot;Help text here&amp;quot;) is what will be displayed in the text box. The title attribute is what will be displayed for this chapter in the list. The ordering attribute &amp;quot;sorts&amp;quot; the chapters so you can have them in a certain order. Both attributes are optional. If title is not given, then the list item will show up as the resource name. If ordering is not given, it will be decided by the order in which the resources are started and/or restarted.&lt;br /&gt;
&lt;br /&gt;
rh_help is backwards-compatible with helpmanager, which means you don't have to do anything more than running this resource (and disabling the old one) to start using it. It can tackle the old help.xml layout just fine.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Keys==&lt;br /&gt;
'''F9''': toggles the help window.&lt;br /&gt;
&lt;br /&gt;
==Commands==&lt;br /&gt;
'''gamehelp''': toggles the help window.&lt;br /&gt;
&lt;br /&gt;
'''Note:''' both the key and the command can be changed to something else in the script, although this is not recommended because it will make things harder for players who are used to these fairly standardized ways of opening a help GUI.&lt;/div&gt;</summary>
		<author><name>Robhol</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Git_Coding_Guidelines&amp;diff=22018</id>
		<title>Git Coding Guidelines</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Git_Coding_Guidelines&amp;diff=22018"/>
		<updated>2009-12-06T18:24:51Z</updated>

		<summary type="html">&lt;p&gt;Robhol: /* Why Git? */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This page is to discuss a new set of coding guidelines that will be used for the rest of the development phase through [http://git-scm.com/ Git] and [http://www.github.com/ GitHub].  It also covers related aspects of the development process such as nightly builds.&lt;br /&gt;
&lt;br /&gt;
Before you start reading, ask for a link to the Git guide. It does a pretty good job of explaining how Git works.&lt;br /&gt;
&lt;br /&gt;
== Quick tutorial ==&lt;br /&gt;
For a quick tutorial on how to setup and use TortoiseGit, go to the [http://wiki.github.com/multitheftauto/multitheftauto/how-to-use-tortoisegit How to use TortoiseGit] wiki page on GitHub.&lt;br /&gt;
&lt;br /&gt;
== Why Git? ==&lt;br /&gt;
Git has several advantages compared to the previous source code management system Subversion. Some relevant features are outlined below.&lt;br /&gt;
&lt;br /&gt;
=== Forks and patches ===&lt;br /&gt;
One of the differences of Git is that it is distributed. That is, everyone owns his/her own repository that is [http://en.wikipedia.org/wiki/Fork_(software_development) forked] from our main repository [http://github.com/multitheftauto/multitheftauto/tree multitheftauto/multitheftauto], and all the changes that one would normally commit to the SVN trunk (or branch) are kept in that forked repository.&lt;br /&gt;
&lt;br /&gt;
The advantage of this approach is that any programmer in the world that is registered at GitHub is capable of forking the multitheftauto repository and work on their own changes. All forks based on multitheftauto will show up on the [http://github.com/multitheftauto/multitheftauto/network/members Networks] page at GitHub, so it'll be easy to track. No need to mess around with patches: if we see someone doing good work, whether it be a known or unknown developer, it's just a matter of reviewing the commits (comments can be posted for every commit, in every file, on every line) and pull (fetch &amp;amp; merge) them into the multitheftauto repository. See the guide (p.39) for more details.&lt;br /&gt;
&lt;br /&gt;
==== Offline commits ====&lt;br /&gt;
Another feature of Git is that you don't need an internet connection in order to commit. You can commit as much as you want to your local (off-line) repository, and just push all of these when you feel like it. Obviously, this benefits the speed at which you commit as there's no need to send any data to the remote repository. This can also be advantageous when you're doing a lot of work that you want to split up in commits for maintainability and push in one go.&lt;br /&gt;
&lt;br /&gt;
==== Synchronization with SVN ====&lt;br /&gt;
Git is fully compatible with our current SVN repository. This means that any changes that are made in git repositories can be committed to the SVN repository, and any changes that are made in the SVN repository can be fetched into the git repository. As far as migration goes, this is pretty valuable as we will be able to work side-to-side with SVN and git while people are switching over.&lt;br /&gt;
&lt;br /&gt;
== Master, experimental, trunks and branches ==&lt;br /&gt;
[[File:Gitsetup.png|thumb|400px]]&lt;br /&gt;
&lt;br /&gt;
The main repository ''multitheftauto/multitheftauto'' will be set up with write access for all current project contributors and owners. The repository is structed as follows:&lt;br /&gt;
* master&lt;br /&gt;
* merge&lt;br /&gt;
* untested&lt;br /&gt;
* experimental&lt;br /&gt;
* 1.0-Release (tag)&lt;br /&gt;
&lt;br /&gt;
=== Master ===&lt;br /&gt;
The ''master'' is the default (top) branch that will contain the stable version that will ultimately form the next release.. and nothing more than that. This is not the SVN trunk. On release, it will be forked into 1.x-Release and the entire cycle starts over again. In order to keep the master stable, we will only merge the changes in that are planned and outlined in the [[Roadmap]]. Nightly builds will be available for anyone who wishes to test and use the stable version. Nothing should get into this master branch without having been thoroughly tested. This branch should remain as stable as a release build.&lt;br /&gt;
&lt;br /&gt;
=== Merge ===&lt;br /&gt;
The ''merge'' branch is the first stop for code that originates from a developer's fork and is intended for the release. All code should naturally be tested to the extent of the developer's own ability first. Experimental code that is more likely to break should go into the ''experimental'' branch instead.&lt;br /&gt;
&lt;br /&gt;
The ''merge'' branch will be a collection/mess of untested changes that have been pulled in from forks by anyone with write access. The changes can be rapidly tested in the ''unstable'' build. This build is comparable to a nightly trunk build, which can be seriously broken at times.&lt;br /&gt;
&lt;br /&gt;
=== Untested ===&lt;br /&gt;
The ''untested'' branch sits below ''merge'' and is intended to act as a barrier to ''master''. By using this barrier, we can selectively choose sets of multiple (related) changes from ''merge'' that are considered to be complete. While ''merge'' may contain all sorts of unrelated pulled-in changes from various developers that are still only half working (due to programmer error), the ''untested'' branch will only pull these changes in when they're considered complete every few days. A build containing a specific set of changes is then generated and tested (ideally this would be automated at some point).&lt;br /&gt;
&lt;br /&gt;
=== Experimental ===&lt;br /&gt;
The ''experimental'' branch is for risky code or work-in-progress code that needs to be built by the build system so that it can be tested. Once it has been found to be stable, it can be merged up to ''merge'' from the original fork. Periodically this fork may be reset to being identical to ''merge'', and will be kept in sync with ''merge''. If necessary more experimental branches could be created if more than one experimental feature requires a build at once.&lt;br /&gt;
&lt;br /&gt;
=== Your forks ===&lt;br /&gt;
You should generally fork either ''merge'' or ''experimental'' and work there, then merge up to the relevant branch when you're ready.&lt;br /&gt;
&lt;br /&gt;
== Guidelines ==&lt;br /&gt;
Commits that are merged from a fork into ''merge'' must be:&lt;br /&gt;
* reviewed by other developers&lt;br /&gt;
* tested for stability and correctness (if necessary, the commit can be pulled into ''experimental'' first for testing purposes)&lt;br /&gt;
&lt;br /&gt;
Commits that have already been merged into ''experimental'' and were found to be stable must be:&lt;br /&gt;
* reviewed by other developers in the originating fork&lt;br /&gt;
* pulled from the originating fork into ''master''&lt;br /&gt;
&lt;br /&gt;
== Nightly builds ==&lt;br /&gt;
As mentioned above, nightly builds will be available in four different flavours:&lt;br /&gt;
* rc (release candidate, compiled from ''multitheftauto/multitheftauto/master''), rarely built&lt;br /&gt;
* untested (compiled from ''multitheftauto/multitheftauto/untested''), built on-change&lt;br /&gt;
* unstable (compiled from ''multitheftauto/multitheftauto/merge''), frequently built&lt;br /&gt;
* experimental (compiled from ''multitheftauto/multitheftauto/experimental''), built on-demand&lt;br /&gt;
&lt;br /&gt;
For more information, head over to the [http://nightly.mtasa.com Nightly Builds] page.&lt;/div&gt;</summary>
		<author><name>Robhol</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=OnClientRender&amp;diff=22002</id>
		<title>OnClientRender</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=OnClientRender&amp;diff=22002"/>
		<updated>2009-12-01T15:00:46Z</updated>

		<summary type="html">&lt;p&gt;Robhol: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__&lt;br /&gt;
{{Client event}} &lt;br /&gt;
This event is triggered every time GTA renders a new frame. It is required for the DirectX drawing functions, and also useful for other clientside operations that have to be applied repeatedly with very short time differences between them.&lt;br /&gt;
&lt;br /&gt;
==Parameters==&lt;br /&gt;
''None''&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;
[[Category:Needs Example]]&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>Robhol</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=MTASE&amp;diff=21377</id>
		<title>MTASE</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=MTASE&amp;diff=21377"/>
		<updated>2009-08-30T21:27:05Z</updated>

		<summary type="html">&lt;p&gt;Robhol: Wtf... Did Borat write this or something?&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{| style=&amp;quot;float: right; border-collapse: collapse; width: 270px&amp;quot;&lt;br /&gt;
|[[Image:MTASElogo_wiki.png]]&lt;br /&gt;
|}&lt;br /&gt;
__TOC__&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Intoduction==&lt;br /&gt;
MTA Script Editor is a tool for Lua scripters. What we are aiming for is to speed up process of developing resources. We thought that process of creating new resources and testing them is, let's be honest... a pain in the ass. Management of the resources is a bit annoying sometimes. For instance, if you want to add a new script file to your resource you have to create it and add path to it into meta.xml, it happens that you forget about adding the file to meta.xml and you end up being surprised that your script didn't work at all. We wanted to do something that would speed this up so you could add a new file within a few seconds. If you use custom sounds, you can preview them within Script Editor just by double-clicking it in the resource explorer. We are aiming for something that reminds Visual Studio IDE.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Things the tool offers==&lt;br /&gt;
We have been working on this tool for long but we had a long break due to lack of time and now I'm the only one working on this because education is more important than &amp;quot;having nice time&amp;quot;. Even though I'm working alone we are progressing smoothly. Currently we have implemented the followings:&lt;br /&gt;
&lt;br /&gt;
*Loading resources&lt;br /&gt;
*Easy resource management&lt;br /&gt;
*Preview sound files&lt;br /&gt;
*Preview image files&lt;br /&gt;
*Lua and XML syntax highlighting&lt;br /&gt;
*On-the-fly Lua syntax checker&lt;br /&gt;
*New resource wizard - allows you to create new resource with a few clicks&lt;br /&gt;
*Switching between resources&lt;br /&gt;
*C#'s #region-like grouping code - useful when working in teams and to keep the code clean&lt;br /&gt;
*Start/stop server and client&lt;br /&gt;
*Join your local server with 1 click&lt;br /&gt;
*Switch between game and Script Editor with only one key on the keyboard&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Screenshots==&lt;br /&gt;
*'''Main window''' - overall look of the application. On the right you can see a list of MTA functions. You can choose what functions you want to be displayed by changing item in the combo box above it. Are you going to ask what this &amp;quot;silly table&amp;quot; at the bottom of the window is doing? I knew it... It's the syntax checker. As you script the syntax is checked by Lua engine and outputs any errors you've made in the script. It speed up progress because you don't have to go into game and restart the resource to check if you fixed the syntax error. I made a little error on line 1 to show you how it looks:&lt;br /&gt;
[[Image:MTASEmainwnd.png]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
*'''New resource wizard''' - create a resource with 5 simple steps (3 steps are optional):&lt;br /&gt;
[[Image:MTASEnewreswizard.png]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
*'''Sound player''' - preview sounds by double-clicking sound file in the resource explorer:&lt;br /&gt;
[[Image:MTASEsoundplayer.png]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
*'''Image viewer''' - preview images by hovering you cursor over nodes in resource explorer:&lt;br /&gt;
[[Image:MTASEimageviewer.png]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
*'''Suggested functions''' - a &amp;quot;window&amp;quot; similar to the one in Visual Studio showing a list of functions. It also shows a tooltip telling you what the function does and its parameters. It also contains all exported functions from every resource. You can add a 3 new attributes to your exported function tag in meta.xml to let Script Editor display descriptive tooltip, like on the screenshot:&lt;br /&gt;
**'''retval:''' return type (eg. bool, marker, int, etc.)&lt;br /&gt;
**'''params:''' list of parameters&lt;br /&gt;
**'''description:''' short description of the function[/list]&lt;br /&gt;
[[Image:MTSEsuggestedfuncs.png]]&lt;br /&gt;
:(screenshot show an example of exported function that in meta.xml looks like the following:)&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot; lang=&amp;quot;xml&amp;quot;&amp;gt;&amp;lt;export function=&amp;quot;getBankMarkers&amp;quot; retval=&amp;quot;table&amp;quot; params=&amp;quot;void&amp;quot; description=&amp;quot;Returns a table containing all bank markers.&amp;quot; /&amp;gt;&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
*'''MTA Server Configuration''' - a window where you can change server's settings. You won't have to open mtaserver.conf and change the server settings, startup resources, adding modules, etc.&lt;br /&gt;
[[Image:MTASEserverconfig.png]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
*'''Customize syntax highlighter''' - you can customize many syntax highlighter properties&lt;br /&gt;
[[Image:MTASEcustomizesyntax.png]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
*'''Exported functions''' - you can view all exported functions from every resource&lt;br /&gt;
[[Image:MTASEfuncs.png]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Overview==&lt;br /&gt;
As you can see we want to simplify resource development and it seems to look pretty nice but we are still in development. There are some good key features that would attract you as a scripter. While we are still in development we wanted to ask you what you think about this tool and what would you like to see included in the release (do not ask when! we do not know when). Any suggestions? You're welcome to suggest some features and if possible we will do our best to implement it.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Requirements==&lt;br /&gt;
* To run this application you need to have .NET 2.0 Framework installed.&lt;br /&gt;
* You should be able to run it on Windows XP and Vista. Never tested on Windows 7.&lt;br /&gt;
* You must have both MTA Client and Server installed.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Download==&lt;br /&gt;
To download the tool go to our thread on MTA forum [http://forum.multitheftauto.com/viewtopic.php?f=91&amp;amp;t=24834 HERE]. That thread is updated frequently.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==FAQ==&lt;br /&gt;
===Error/Warning messages at startup===&lt;br /&gt;
&lt;br /&gt;
====File name: 'irrKlang.NET2.0, Version=1.1.3.0, Culture=neutral, PublicKeyToken=a854741bd80517c7' ---&amp;gt; System.Runtime.InteropServices.COMException (0x800736B1): This application has failed to start because the application configuration is incorrect. Reinstalling the application may fix this problem. (Exception from HRESULT: 0x800736B1)====&lt;br /&gt;
This message appears most likely for Windows XP/Vista '''64bit''' users. It may occur on 32bit OS if that machine doesn't have .NET 2.0 SP1 installed.&lt;br /&gt;
&lt;br /&gt;
There is only 1 known way to solve the problem...: Make sure you have .NET 2.0 SP1 installed, if you don't have it you can download it from [http://www.microsoft.com/Downloads/details.aspx?familyid=79BC3B77-E02C-4AD3-AACF-A7633F706BA5&amp;amp;displaylang=en Microsoft Download Center].&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
====Error parsing meta.xml====&lt;br /&gt;
The reason why this window comes up should be explained in the message. It's most likely that your meta.xml has the following XML declarations:&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot; lang=&amp;quot;xml&amp;quot;&amp;gt;&amp;lt;?xml version=&amp;quot;1.0&amp;quot; encoding=&amp;quot;UTF-8&amp;quot; ?&amp;gt;&lt;br /&gt;
&amp;lt;?xml version=&amp;quot;1.0&amp;quot; encoding=&amp;quot;UTF-16&amp;quot; ?&amp;gt;&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
To solve the problem, simply open the file in WordPad or Notepad (Notepad++ may not solve the problem so use the Windows one), remove that line and save the changes.&lt;br /&gt;
&lt;br /&gt;
.NET 2.0 XML parser doesn't like not &amp;quot;well-formed&amp;quot; XML files, so you may get different messages with different meta.xml files.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Contact==&lt;br /&gt;
We have an IRC channel on GTANet.com network which you can join, ask questions or even give suggestions. The channel name is #mtatools. You can also find us on [http://forum.multitheftauto.com/viewtopic.php?f=91&amp;amp;t=24834 MTA forum]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Credits==&lt;br /&gt;
* [http://forum.multitheftauto.com/memberlist.php?mode=viewprofile&amp;amp;u=19953 50p] - programmer &amp;amp; UI designer&lt;br /&gt;
* [http://forum.multitheftauto.com/memberlist.php?mode=viewprofile&amp;amp;u=30686 Fenix1042] - programmer&lt;br /&gt;
* [http://forum.multitheftauto.com/memberlist.php?mode=viewprofile&amp;amp;u=22437 Cazomino05] - xml files with mta functions and events&lt;br /&gt;
* MTA Developers - delivering the amazing GTA:SA multiplayer mod that has almost unlimited possibilities&lt;/div&gt;</summary>
		<author><name>Robhol</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=BindKey&amp;diff=20824</id>
		<title>BindKey</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=BindKey&amp;diff=20824"/>
		<updated>2009-07-21T16:40:20Z</updated>

		<summary type="html">&lt;p&gt;Robhol: Added string to the handler function prototypes for consistency and clarity.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Server client function}}&lt;br /&gt;
__NOTOC__&lt;br /&gt;
Binds a player's key to a handler function or command, which will be called when the key is pressed. &lt;br /&gt;
&lt;br /&gt;
==Syntax== &lt;br /&gt;
&amp;lt;section name=&amp;quot;Server - Syntax 1&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;bindKey ( player thePlayer, string key, string keyState, function handlerFunction,  [ var arguments, ... ] )&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Required Arguments===&lt;br /&gt;
*'''thePlayer:''' The player you wish to bind the key of.&lt;br /&gt;
*'''key:''' The key or control you wish to bind to the command. See [[key names]] for a list of possible keys and [[control names]] for a list of possible controls.&lt;br /&gt;
*'''keyState:''' A string that has one of the following values:&lt;br /&gt;
**'''&amp;quot;up&amp;quot;:''' If the bound key should trigger the function when the key is released&lt;br /&gt;
**'''&amp;quot;down&amp;quot;:''' If the bound key should trigger the function when the key is pressed&lt;br /&gt;
**'''&amp;quot;both&amp;quot;:''' If the bound key should trigger the function when the key is pressed or released&lt;br /&gt;
*'''handlerFunction:''' The function that will be triggered when the player's key is pressed. This function should have the form:&lt;br /&gt;
:&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;function functionName ( player keyPresser, string key, string keyState, [ var arguments, ... ] )&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
:The values passed to this function are:&lt;br /&gt;
:*'''keyPresser:''' The player who pressed the key&lt;br /&gt;
:*'''key:''' The key that was pressed&lt;br /&gt;
:*'''keyState:''' The state of the key that was pressed, ''down'' if it was pressed, ''up'' if it was released.&lt;br /&gt;
:*'''arguments''' The optional arguments you specified when calling [[bindKey]] (see below).&lt;br /&gt;
&amp;lt;/section&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{{New feature|3|1.0|&lt;br /&gt;
&amp;lt;section name=&amp;quot;Server - Syntax 2&amp;quot; class=&amp;quot;server&amp;quot; show=&amp;quot;false&amp;quot;&amp;gt;&lt;br /&gt;
This alternative syntax allows you to bind a key with a command.  This will also allow users to customize the control in their Settings menu.  Use in conjunction with [[addCommandHandler]] to add handler functions to the keybind.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;bindKey ( player thePlayer, string key, string keyState, string commandName, string arguments )&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Required Arguments===&lt;br /&gt;
*'''thePlayer:''' The player you wish to bind the key of.&lt;br /&gt;
*'''key:''' The key or control you wish to bind to the command. See [[key names]] for a list of possible keys.&lt;br /&gt;
*'''keyState:''' A string that has one of the following values:&lt;br /&gt;
**'''&amp;quot;up&amp;quot;:''' If the bound key should trigger the function when the key is released&lt;br /&gt;
**'''&amp;quot;down&amp;quot;:''' If the bound key should trigger the function when the key is pressed&lt;br /&gt;
**'''&amp;quot;both&amp;quot;:''' If the bound key should trigger the function when the key is pressed or released&lt;br /&gt;
*'''commandName:''' The name of the command that the key should be binded to.  &lt;br /&gt;
*'''arguments''' Space delimited arguments that are entered as if one was typing the command.&lt;br /&gt;
&amp;lt;/section&amp;gt;&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;section name=&amp;quot;Client - Syntax 1&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;bindKey ( string key, string keyState, function handlerFunction,  [ var arguments, ... ] ) &amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Required Arguments===&lt;br /&gt;
*'''key:''' The key or control you wish to bind to the command. See [[key names]] for a list of possible keys and [[control names]] for a list of possible controls.&lt;br /&gt;
*'''keyState:''' A string that has one of the following values:&lt;br /&gt;
**'''&amp;quot;up&amp;quot;:''' If the bound key should trigger the function when the key is released&lt;br /&gt;
**'''&amp;quot;down&amp;quot;:''' If the bound key should trigger the function when the key is pressed&lt;br /&gt;
**'''&amp;quot;both&amp;quot;:''' If the bound key should trigger the function when the key is pressed or released&lt;br /&gt;
&amp;lt;!--*'''bindName:''' The name for this key bind when it appears in the client's settings dialog.--&amp;gt;&lt;br /&gt;
*'''handlerFunction:''' The function that will be triggered when the player's key is pressed. This function should have the form:&lt;br /&gt;
:&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;function functionName ( string key, string keyState, [ var arguments, ... ] )&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
:The values passed to this function are:&lt;br /&gt;
:*'''key:''' The key that was pressed&lt;br /&gt;
:*'''keyState:''' The state of the key that was pressed, ''down'' if it was pressed, ''up'' if it was released.&lt;br /&gt;
:*'''arguments''' The optional arguments you specified when calling [[bindKey]] (see below).&lt;br /&gt;
&amp;lt;/section&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{{New feature|3|1.0|&lt;br /&gt;
&amp;lt;section name=&amp;quot;Client - Syntax 2&amp;quot; class=&amp;quot;client&amp;quot; show=&amp;quot;false&amp;quot;&amp;gt;&lt;br /&gt;
This alternative syntax allows you to bind a key with a command.  This will also allow users to customize the control in their Settings menu.  Use in conjunction with [[addCommandHandler]] to add handler functions to the keybind.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;bindKey ( string key, string keyState, string commandName, string arguments )&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Required Arguments===&lt;br /&gt;
*'''key:''' The key or control you wish to bind to the command. See [[key names]] for a list of possible keys.&lt;br /&gt;
*'''keyState:''' A string that has one of the following values:&lt;br /&gt;
**'''&amp;quot;up&amp;quot;:''' If the bound key should trigger the function when the key is released&lt;br /&gt;
**'''&amp;quot;down&amp;quot;:''' If the bound key should trigger the function when the key is pressed&lt;br /&gt;
**'''&amp;quot;both&amp;quot;:''' If the bound key should trigger the function when the key is pressed or released&lt;br /&gt;
*'''commandName:''' The name of the command that the key should be binded to.  &lt;br /&gt;
*'''arguments''' Space delimited arguments that are entered as if one was typing the command.&lt;br /&gt;
&amp;lt;/section&amp;gt;&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
===Optional Arguments=== &lt;br /&gt;
{{OptionalArg}} &lt;br /&gt;
*'''arguments:''' Any arguments you may want to pass to the function when the key is pressed by the user. Any number of arguments of  can be specified, each being passed to the designated function.&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
Example 1&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 will bind a player's 'F1' key and 'fire' control to 1 input function.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function funcInput ( player, key, keyState )&lt;br /&gt;
  local state = &amp;quot;let go of&amp;quot;&lt;br /&gt;
  if ( keyState == &amp;quot;down&amp;quot; ) then&lt;br /&gt;
    state = &amp;quot;pressed&amp;quot;&lt;br /&gt;
  end&lt;br /&gt;
  outputChatBox ( getClientName ( player) .. &amp;quot; &amp;quot; .. state .. &amp;quot; the &amp;quot; .. key .. &amp;quot; key!&amp;quot; )&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
function bindTheKeys ( player, commandName )&lt;br /&gt;
  bindKey ( player, &amp;quot;F1&amp;quot;, &amp;quot;down&amp;quot;, funcInput )   -- bind the player's F1 down key&lt;br /&gt;
  bindKey ( player, &amp;quot;F1&amp;quot;, &amp;quot;up&amp;quot;, funcInput )     -- bind the player's F1 up key&lt;br /&gt;
  bindKey ( player, &amp;quot;fire&amp;quot;, &amp;quot;both&amp;quot;, funcInput ) -- bind the player's fire down and up control&lt;br /&gt;
end&lt;br /&gt;
addCommandHandler ( &amp;quot;bindme&amp;quot;, bindTheKeys )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;/section&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Example 2&lt;br /&gt;
&amp;lt;section name=&amp;quot;Client&amp;quot; class=&amp;quot;client&amp;quot; show=&amp;quot;true&amp;quot;&amp;gt;&lt;br /&gt;
This example will bind a player's 'F1' key and 'fire' control to 1 input function, clientside.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function funcInput ( key, keyState )&lt;br /&gt;
  local state = &amp;quot;let go of&amp;quot;&lt;br /&gt;
  if ( keyState == &amp;quot;down&amp;quot; ) then&lt;br /&gt;
    state = &amp;quot;pressed&amp;quot;&lt;br /&gt;
  end&lt;br /&gt;
  outputChatBox ( &amp;quot;You &amp;quot; .. state .. &amp;quot; the &amp;quot; .. key .. &amp;quot; key!&amp;quot; )&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
function bindTheKeys ()&lt;br /&gt;
  bindKey ( &amp;quot;F1&amp;quot;, &amp;quot;down&amp;quot;, funcInput )   -- bind the player's F1 down key&lt;br /&gt;
  bindKey ( &amp;quot;F1&amp;quot;, &amp;quot;up&amp;quot;, funcInput )     -- bind the player's F1 up key&lt;br /&gt;
  bindKey ( &amp;quot;fire&amp;quot;, &amp;quot;both&amp;quot;, funcInput ) -- bind the player's fire down and up control&lt;br /&gt;
end&lt;br /&gt;
addCommandHandler ( &amp;quot;bindme&amp;quot;, bindTheKeys )&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;
{{Input functions}}&lt;/div&gt;</summary>
		<author><name>Robhol</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Server_Scripting_Functions&amp;diff=20320</id>
		<title>Server Scripting Functions</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Server_Scripting_Functions&amp;diff=20320"/>
		<updated>2009-07-03T18:22:08Z</updated>

		<summary type="html">&lt;p&gt;Robhol: hmm..&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;pageclass class=&amp;quot;server&amp;quot;&amp;gt;&amp;lt;/pageclass&amp;gt;&lt;br /&gt;
This page lists all the '''server-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;
&lt;br /&gt;
Please note that the scripting functions can now be extended by loading in dynamic modules that provide new functionality, such as MySQL database access. These scripting functions are non-native and require the module to be loaded in order to work.&lt;br /&gt;
&lt;br /&gt;
Head over to [[Modules]] for a list of non-native serverside functions and modules that are available.&lt;br /&gt;
&lt;br /&gt;
For more functions, check the [[Useful_Functions|useful functions page]].&lt;br /&gt;
&lt;br /&gt;
'''Client-side scripting functions can be found here: [[Client Scripting Functions]].'''&lt;br /&gt;
&lt;br /&gt;
==Account functions==&lt;br /&gt;
{{Account_functions}}&lt;br /&gt;
&lt;br /&gt;
==ACL functions==&lt;br /&gt;
{{ACL_functions}}&lt;br /&gt;
&lt;br /&gt;
==Admin functions==&lt;br /&gt;
{{Admin_functions}}&lt;br /&gt;
&lt;br /&gt;
==Audio functions==&lt;br /&gt;
{{Audio_functions}}&lt;br /&gt;
&lt;br /&gt;
==Announcement functions==&lt;br /&gt;
{{Announce_functions}}&lt;br /&gt;
&lt;br /&gt;
==Blip functions==&lt;br /&gt;
{{Blip_functions}}&lt;br /&gt;
&lt;br /&gt;
==Camera functions==&lt;br /&gt;
{{Camera functions}}&lt;br /&gt;
&lt;br /&gt;
==Collision shape functions==&lt;br /&gt;
{{Collision shape functions}}&lt;br /&gt;
&lt;br /&gt;
==Client functions==&lt;br /&gt;
{{Client functions}}&lt;br /&gt;
&lt;br /&gt;
==Clothes and body functions==&lt;br /&gt;
{{Clothes and body functions}}&lt;br /&gt;
&lt;br /&gt;
==Cursor functions==&lt;br /&gt;
{{Cursor_functions}}&lt;br /&gt;
&lt;br /&gt;
==Element functions==&lt;br /&gt;
{{Element functions}}&lt;br /&gt;
&lt;br /&gt;
==Event functions==&lt;br /&gt;
{{Event_functions}}&lt;br /&gt;
&lt;br /&gt;
==Explosion functions==&lt;br /&gt;
{{Explosion_functions}}&lt;br /&gt;
&lt;br /&gt;
==File functions==&lt;br /&gt;
{{File_functions}}&lt;br /&gt;
&lt;br /&gt;
==HTTP functions==&lt;br /&gt;
{{HTTP_functions}}&lt;br /&gt;
&lt;br /&gt;
==Input functions==&lt;br /&gt;
{{Input_functions}}&lt;br /&gt;
&lt;br /&gt;
==Map functions==&lt;br /&gt;
{{Map_functions}}&lt;br /&gt;
&lt;br /&gt;
==Marker functions==&lt;br /&gt;
{{Marker functions}}&lt;br /&gt;
&lt;br /&gt;
==Module functions==&lt;br /&gt;
{{Module functions}}&lt;br /&gt;
&lt;br /&gt;
==Object functions==&lt;br /&gt;
{{Object functions}}&lt;br /&gt;
&lt;br /&gt;
==Ped functions==&lt;br /&gt;
{{Ped_functions}}&lt;br /&gt;
&lt;br /&gt;
==Pickup functions==&lt;br /&gt;
{{Pickup functions}}&lt;br /&gt;
&lt;br /&gt;
==Player functions==&lt;br /&gt;
{{Player functions}}&lt;br /&gt;
&lt;br /&gt;
==Radar area functions==&lt;br /&gt;
{{Radar area functions}}&lt;br /&gt;
&lt;br /&gt;
==Resource functions==&lt;br /&gt;
{{Resource functions}}&lt;br /&gt;
&lt;br /&gt;
==Serial functions==&lt;br /&gt;
{{Serial functions}}&lt;br /&gt;
&lt;br /&gt;
==Server functions==&lt;br /&gt;
{{Server functions}}&lt;br /&gt;
&lt;br /&gt;
==Settings registry functions==&lt;br /&gt;
{{Settings registry functions}}&lt;br /&gt;
&lt;br /&gt;
==SQL functions==&lt;br /&gt;
{{SQL_functions}}&lt;br /&gt;
&lt;br /&gt;
==Team functions==&lt;br /&gt;
{{Team functions}}&lt;br /&gt;
&lt;br /&gt;
==Text functions==&lt;br /&gt;
{{Text functions}}&lt;br /&gt;
&lt;br /&gt;
==Utility functions==&lt;br /&gt;
{{Utility functions}}&lt;br /&gt;
&lt;br /&gt;
==Vehicle functions==&lt;br /&gt;
{{Vehicle functions}}&lt;br /&gt;
&lt;br /&gt;
==Water functions==&lt;br /&gt;
{{Water functions}}&lt;br /&gt;
&lt;br /&gt;
==Weapon functions==&lt;br /&gt;
{{Weapon functions}}&lt;br /&gt;
&lt;br /&gt;
==World functions==&lt;br /&gt;
{{World functions}}&lt;br /&gt;
&lt;br /&gt;
==XML functions==&lt;br /&gt;
{{XML functions}}&lt;/div&gt;</summary>
		<author><name>Robhol</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Server_Scripting_Functions&amp;diff=20319</id>
		<title>Server Scripting Functions</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Server_Scripting_Functions&amp;diff=20319"/>
		<updated>2009-07-03T18:21:07Z</updated>

		<summary type="html">&lt;p&gt;Robhol: Added Useful Functions link since eAi won't :@&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;pageclass class=&amp;quot;server&amp;quot;&amp;gt;&amp;lt;/pageclass&amp;gt;&lt;br /&gt;
This page lists all the '''server-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;
&lt;br /&gt;
Please note that the scripting functions can now be extended by loading in dynamic modules that provide new functionality, such as MySQL database access. These scripting functions are non-native and require the module to be loaded in order to work.&lt;br /&gt;
&lt;br /&gt;
Head over to [[Modules]] for a list of non-native serverside functions and modules that are available.&lt;br /&gt;
&lt;br /&gt;
For more functions, check [[Useful_Functions]].&lt;br /&gt;
&lt;br /&gt;
'''Client-side scripting functions can be found here: [[Client Scripting Functions]].'''&lt;br /&gt;
&lt;br /&gt;
==Account functions==&lt;br /&gt;
{{Account_functions}}&lt;br /&gt;
&lt;br /&gt;
==ACL functions==&lt;br /&gt;
{{ACL_functions}}&lt;br /&gt;
&lt;br /&gt;
==Admin functions==&lt;br /&gt;
{{Admin_functions}}&lt;br /&gt;
&lt;br /&gt;
==Audio functions==&lt;br /&gt;
{{Audio_functions}}&lt;br /&gt;
&lt;br /&gt;
==Announcement functions==&lt;br /&gt;
{{Announce_functions}}&lt;br /&gt;
&lt;br /&gt;
==Blip functions==&lt;br /&gt;
{{Blip_functions}}&lt;br /&gt;
&lt;br /&gt;
==Camera functions==&lt;br /&gt;
{{Camera functions}}&lt;br /&gt;
&lt;br /&gt;
==Collision shape functions==&lt;br /&gt;
{{Collision shape functions}}&lt;br /&gt;
&lt;br /&gt;
==Client functions==&lt;br /&gt;
{{Client functions}}&lt;br /&gt;
&lt;br /&gt;
==Clothes and body functions==&lt;br /&gt;
{{Clothes and body functions}}&lt;br /&gt;
&lt;br /&gt;
==Cursor functions==&lt;br /&gt;
{{Cursor_functions}}&lt;br /&gt;
&lt;br /&gt;
==Element functions==&lt;br /&gt;
{{Element functions}}&lt;br /&gt;
&lt;br /&gt;
==Event functions==&lt;br /&gt;
{{Event_functions}}&lt;br /&gt;
&lt;br /&gt;
==Explosion functions==&lt;br /&gt;
{{Explosion_functions}}&lt;br /&gt;
&lt;br /&gt;
==File functions==&lt;br /&gt;
{{File_functions}}&lt;br /&gt;
&lt;br /&gt;
==HTTP functions==&lt;br /&gt;
{{HTTP_functions}}&lt;br /&gt;
&lt;br /&gt;
==Input functions==&lt;br /&gt;
{{Input_functions}}&lt;br /&gt;
&lt;br /&gt;
==Map functions==&lt;br /&gt;
{{Map_functions}}&lt;br /&gt;
&lt;br /&gt;
==Marker functions==&lt;br /&gt;
{{Marker functions}}&lt;br /&gt;
&lt;br /&gt;
==Module functions==&lt;br /&gt;
{{Module functions}}&lt;br /&gt;
&lt;br /&gt;
==Object functions==&lt;br /&gt;
{{Object functions}}&lt;br /&gt;
&lt;br /&gt;
==Ped functions==&lt;br /&gt;
{{Ped_functions}}&lt;br /&gt;
&lt;br /&gt;
==Pickup functions==&lt;br /&gt;
{{Pickup functions}}&lt;br /&gt;
&lt;br /&gt;
==Player functions==&lt;br /&gt;
{{Player functions}}&lt;br /&gt;
&lt;br /&gt;
==Radar area functions==&lt;br /&gt;
{{Radar area functions}}&lt;br /&gt;
&lt;br /&gt;
==Resource functions==&lt;br /&gt;
{{Resource functions}}&lt;br /&gt;
&lt;br /&gt;
==Serial functions==&lt;br /&gt;
{{Serial functions}}&lt;br /&gt;
&lt;br /&gt;
==Server functions==&lt;br /&gt;
{{Server functions}}&lt;br /&gt;
&lt;br /&gt;
==Settings registry functions==&lt;br /&gt;
{{Settings registry functions}}&lt;br /&gt;
&lt;br /&gt;
==SQL functions==&lt;br /&gt;
{{SQL_functions}}&lt;br /&gt;
&lt;br /&gt;
==Team functions==&lt;br /&gt;
{{Team functions}}&lt;br /&gt;
&lt;br /&gt;
==Text functions==&lt;br /&gt;
{{Text functions}}&lt;br /&gt;
&lt;br /&gt;
==Utility functions==&lt;br /&gt;
{{Utility functions}}&lt;br /&gt;
&lt;br /&gt;
==Vehicle functions==&lt;br /&gt;
{{Vehicle functions}}&lt;br /&gt;
&lt;br /&gt;
==Water functions==&lt;br /&gt;
{{Water functions}}&lt;br /&gt;
&lt;br /&gt;
==Weapon functions==&lt;br /&gt;
{{Weapon functions}}&lt;br /&gt;
&lt;br /&gt;
==World functions==&lt;br /&gt;
{{World functions}}&lt;br /&gt;
&lt;br /&gt;
==XML functions==&lt;br /&gt;
{{XML functions}}&lt;/div&gt;</summary>
		<author><name>Robhol</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Template:Useful_Functions&amp;diff=20269</id>
		<title>Template:Useful Functions</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Template:Useful_Functions&amp;diff=20269"/>
		<updated>2009-06-28T10:22:55Z</updated>

		<summary type="html">&lt;p&gt;Robhol: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;*[[CallClientFunction]]&lt;br /&gt;
This function allows you to call any clientside function from the server's side.&lt;br /&gt;
&amp;lt;br/&amp;gt;&amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*[[CallServerFunction]]&lt;br /&gt;
This function allows you to call any server-side function from the client's side.&lt;br /&gt;
&amp;lt;br/&amp;gt;&amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*[[Explode]]&lt;br /&gt;
This function splits a string at a given separator and returns a table with the pieces.&lt;br /&gt;
&amp;lt;br/&amp;gt;&amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*[[findRotation]]&lt;br /&gt;
Takes two points and returns the direction from point A to point B.&lt;br /&gt;
&amp;lt;br/&amp;gt;&amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*[[getPointFromDistanceRotation]]&lt;br /&gt;
Finds a point based on a starting point, direction and distance.&lt;br /&gt;
&amp;lt;br/&amp;gt;&amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*[[GetTimestamp]]&lt;br /&gt;
With this function you can get the [http://en.wikipedia.org/wiki/Unix_time UNIX timestamp].&lt;br /&gt;
&amp;lt;br/&amp;gt;&amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*[[IfElse]]&lt;br /&gt;
Returns one of two values based on a boolean expression.&lt;br /&gt;
&amp;lt;br/&amp;gt;&amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*[[IsYearALeapYear]]&lt;br /&gt;
Checks if the given year is a leap year&lt;br /&gt;
&amp;lt;br/&amp;gt;&amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*[[setTableProtected]]&lt;br /&gt;
Protects a table and makes it read-only&lt;br /&gt;
&amp;lt;br/&amp;gt;&amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*[[table.copy]]&lt;br /&gt;
This function copies a whole table and all the tables in that table.&lt;br /&gt;
&amp;lt;br/&amp;gt;&amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*[[table.map]]&lt;br /&gt;
This function goes through a table and replaces every field with the return of the passed function, where the field's value is passed as first argument and optionally more arguments.&lt;br /&gt;
&amp;lt;br/&amp;gt;&amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*[[table.size]]&lt;br /&gt;
Finds the absolute size of a table.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Category:Useful Functions]]&lt;/div&gt;</summary>
		<author><name>Robhol</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Useful_Functions&amp;diff=20268</id>
		<title>Useful Functions</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Useful_Functions&amp;diff=20268"/>
		<updated>2009-06-28T09:35:13Z</updated>

		<summary type="html">&lt;p&gt;Robhol: Minor formatting&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;pageclass class=&amp;quot;#228B22&amp;quot;&amp;gt;&amp;lt;/pageclass&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This page lists functions that are not included in the server nor the client, but are still useful.&lt;br /&gt;
&amp;lt;br/&amp;gt;&amp;lt;br/&amp;gt;&lt;br /&gt;
{{Useful_Functions}}&lt;br /&gt;
&amp;lt;br/&amp;gt;&amp;lt;br/&amp;gt;&lt;/div&gt;</summary>
		<author><name>Robhol</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Template:Useful_Functions&amp;diff=20267</id>
		<title>Template:Useful Functions</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Template:Useful_Functions&amp;diff=20267"/>
		<updated>2009-06-28T09:34:33Z</updated>

		<summary type="html">&lt;p&gt;Robhol: Added descriptions and links to my own functions&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;*[[CallClientFunction]]&lt;br /&gt;
This function allows you to call any clientside function from the server's side.&lt;br /&gt;
&amp;lt;br/&amp;gt;&amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*[[CallServerFunction]]&lt;br /&gt;
This function allows you to call any server-side function from the client's side.&lt;br /&gt;
&amp;lt;br/&amp;gt;&amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*[[Explode]]&lt;br /&gt;
This function splits a string at a given separator and returns a table with the pieces.&lt;br /&gt;
&amp;lt;br/&amp;gt;&amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*[[FindRotation]]&lt;br /&gt;
Takes two points and returns the direction from point A to point B.&lt;br /&gt;
&amp;lt;br/&amp;gt;&amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*[[GetPointFromDistanceRotation]]&lt;br /&gt;
Finds a point based on a starting point, direction and distance.&lt;br /&gt;
&amp;lt;br/&amp;gt;&amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*[[GetTimestamp]]&lt;br /&gt;
With this function you can get the [http://en.wikipedia.org/wiki/Unix_time UNIX timestamp].&lt;br /&gt;
&amp;lt;br/&amp;gt;&amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*[[IfElse]]&lt;br /&gt;
Returns one of two values based on a boolean expression.&lt;br /&gt;
&amp;lt;br/&amp;gt;&amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*[[IsYearALeapYear]]&lt;br /&gt;
Checks if the given year is a leap year&lt;br /&gt;
&amp;lt;br/&amp;gt;&amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*[[setTableProtected]]&lt;br /&gt;
Protects a table and makes it read-only&lt;br /&gt;
&amp;lt;br/&amp;gt;&amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*[[table.copy]]&lt;br /&gt;
This function copies a whole table and all the tables in that table.&lt;br /&gt;
&amp;lt;br/&amp;gt;&amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*[[table.map]]&lt;br /&gt;
This function goes through a table and replaces every field with the return of the passed function, where the field's value is passed as first argument and optionally more arguments.&lt;br /&gt;
&amp;lt;br/&amp;gt;&amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*[[table.size]]&lt;br /&gt;
Finds the absolute size of a table.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Category:Useful Functions]]&lt;/div&gt;</summary>
		<author><name>Robhol</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Useful_Functions&amp;diff=20265</id>
		<title>Useful Functions</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Useful_Functions&amp;diff=20265"/>
		<updated>2009-06-28T09:25:13Z</updated>

		<summary type="html">&lt;p&gt;Robhol: Looks better now, huh. ;P&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;pageclass class=&amp;quot;#228B22&amp;quot;&amp;gt;&amp;lt;/pageclass&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This page lists functions that are not included in the server nor the client, but are still useful.&lt;br /&gt;
&lt;br /&gt;
{{Useful_Functions}}&lt;/div&gt;</summary>
		<author><name>Robhol</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Useful_Functions&amp;diff=20262</id>
		<title>Useful Functions</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Useful_Functions&amp;diff=20262"/>
		<updated>2009-06-28T09:22:30Z</updated>

		<summary type="html">&lt;p&gt;Robhol: Category pages are fugly. Made this page to list all &amp;quot;custom&amp;quot; useful functions.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
{{Useful_Functions}}&lt;/div&gt;</summary>
		<author><name>Robhol</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=FindRotation&amp;diff=20260</id>
		<title>FindRotation</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=FindRotation&amp;diff=20260"/>
		<updated>2009-06-28T09:19:37Z</updated>

		<summary type="html">&lt;p&gt;Robhol: Durr...&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Useful Function}}&lt;br /&gt;
__NOTOC__&lt;br /&gt;
This function takes two sets of XY coordinates. It returns the direction from point A to point B. This can for example be used to make peds face a given point.&lt;br /&gt;
&lt;br /&gt;
==Syntax==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;float findRotation(float Xa, float Ya, float Xb, float Yb)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Required Arguments===&lt;br /&gt;
* '''Xa''': The X coordinate of the starting point.&lt;br /&gt;
* '''Ya''': The Y coordinate of the starting point.&lt;br /&gt;
* '''Xb''': The X coordinate of the target point.&lt;br /&gt;
* '''Yb''': The Y coordinate of the target point.&lt;br /&gt;
&lt;br /&gt;
==Code==&lt;br /&gt;
&amp;lt;section name=&amp;quot;Function source&amp;quot; class=&amp;quot;both&amp;quot; show=&amp;quot;true&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function findRotation(x1,y1,x2,y2)&lt;br /&gt;
 &lt;br /&gt;
  local t = -math.deg(math.atan2(x2-x1,y2-y1))&lt;br /&gt;
  if t &amp;lt; 0 then t = t + 360 end;&lt;br /&gt;
  return t;&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;
==Example==&lt;br /&gt;
&amp;lt;section name=&amp;quot;Example&amp;quot; class=&amp;quot;both&amp;quot; show=&amp;quot;true&amp;quot;&amp;gt;&lt;br /&gt;
This command makes the player who enters it face the player whose name is given.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
addCommandHandler(&amp;quot;facePlayer&amp;quot;,&lt;br /&gt;
function (player, cmd, targetName)&lt;br /&gt;
&lt;br /&gt;
	local target = getPlayerFromNick(targetName);&lt;br /&gt;
	&lt;br /&gt;
	if target == false then&lt;br /&gt;
		outputChatBox(&amp;quot;Invalid player&amp;quot;, player);&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
	local x,y,z 	= getElementPosition(player);&lt;br /&gt;
	local tx,ty,tz 	= getElementPosition(target);&lt;br /&gt;
	&lt;br /&gt;
	setPedRotation(player, findRotation(x,y,tx,ty) );&lt;br /&gt;
&lt;br /&gt;
end&lt;br /&gt;
);&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;/section&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Original function by '''Doomed_Space_Marine'''. Fixed, tested and wiki-fied by '''robhol'''.&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{Useful_Functions}}&lt;/div&gt;</summary>
		<author><name>Robhol</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=FindRotation&amp;diff=20259</id>
		<title>FindRotation</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=FindRotation&amp;diff=20259"/>
		<updated>2009-06-28T09:19:10Z</updated>

		<summary type="html">&lt;p&gt;Robhol: Created page&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Useful Function}}&lt;br /&gt;
__NOTOC__&lt;br /&gt;
This function takes two sets of XY coordinates. It returns the direction from point A to point B. This can for example be used to make peds face a given point.&lt;br /&gt;
&lt;br /&gt;
==Syntax==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;float findRotation(float Xa, float Ya, float Xb, float Yb)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Required Arguments===&lt;br /&gt;
* '''Xa''': The X coordinate of the starting point.&lt;br /&gt;
* '''Ya''': The Y coordinate of the starting point.&lt;br /&gt;
* '''Xb''': The Y coordinate of the target point.&lt;br /&gt;
* '''Yb''': The Y coordinate of the target point.&lt;br /&gt;
&lt;br /&gt;
==Code==&lt;br /&gt;
&amp;lt;section name=&amp;quot;Function source&amp;quot; class=&amp;quot;both&amp;quot; show=&amp;quot;true&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function findRotation(x1,y1,x2,y2)&lt;br /&gt;
 &lt;br /&gt;
  local t = -math.deg(math.atan2(x2-x1,y2-y1))&lt;br /&gt;
  if t &amp;lt; 0 then t = t + 360 end;&lt;br /&gt;
  return t;&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;
==Example==&lt;br /&gt;
&amp;lt;section name=&amp;quot;Example&amp;quot; class=&amp;quot;both&amp;quot; show=&amp;quot;true&amp;quot;&amp;gt;&lt;br /&gt;
This command makes the player who enters it face the player whose name is given.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
addCommandHandler(&amp;quot;facePlayer&amp;quot;,&lt;br /&gt;
function (player, cmd, targetName)&lt;br /&gt;
&lt;br /&gt;
	local target = getPlayerFromNick(targetName);&lt;br /&gt;
	&lt;br /&gt;
	if target == false then&lt;br /&gt;
		outputChatBox(&amp;quot;Invalid player&amp;quot;, player);&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
	local x,y,z 	= getElementPosition(player);&lt;br /&gt;
	local tx,ty,tz 	= getElementPosition(target);&lt;br /&gt;
	&lt;br /&gt;
	setPedRotation(player, findRotation(x,y,tx,ty) );&lt;br /&gt;
&lt;br /&gt;
end&lt;br /&gt;
);&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;/section&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Original function by '''Doomed_Space_Marine'''. Fixed, tested and wiki-fied by '''robhol'''.&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{Useful_Functions}}&lt;/div&gt;</summary>
		<author><name>Robhol</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=GetPointFromDistanceRotation&amp;diff=20256</id>
		<title>GetPointFromDistanceRotation</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=GetPointFromDistanceRotation&amp;diff=20256"/>
		<updated>2009-06-28T09:04:12Z</updated>

		<summary type="html">&lt;p&gt;Robhol: Created page.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Useful Function}}&lt;br /&gt;
__NOTOC__&lt;br /&gt;
This function takes a set of XY coordinates, a distance and a rotation argument. It returns XY coordinates of the point that is the given distance away from the given point, in the given direction.&lt;br /&gt;
&lt;br /&gt;
==Syntax==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;float, float function getPointFromDistanceRotation(float x, float y, float dist, float angle)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Required Arguments===&lt;br /&gt;
* '''x''': The X coordinate of the starting point.&lt;br /&gt;
* '''y''': The Y coordinate of the starting point.&lt;br /&gt;
* '''dist''': The distance from the starting point to the target point.&lt;br /&gt;
* '''angle''': The direction from the starting point to the target point.&lt;br /&gt;
&lt;br /&gt;
==Code==&lt;br /&gt;
&amp;lt;section name=&amp;quot;Function source&amp;quot; class=&amp;quot;both&amp;quot; show=&amp;quot;true&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function getPointFromDistanceRotation(x, y, dist, angle)&lt;br /&gt;
&lt;br /&gt;
    local a = math.rad(90 - angle);&lt;br /&gt;
 &lt;br /&gt;
    local dx = math.cos(a) * dist;&lt;br /&gt;
    local dy = math.sin(a) * dist;&lt;br /&gt;
 &lt;br /&gt;
    return x+dx, y+dy;&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;
==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 command surrounds a player with peds.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
addCommandHandler(&amp;quot;surround&amp;quot;,&lt;br /&gt;
function (player)&lt;br /&gt;
&lt;br /&gt;
  local x,y,z = getElementPosition(player);&lt;br /&gt;
&lt;br /&gt;
  for i=1, 8 do&lt;br /&gt;
    local newX, newY = getPointFromDistanceRotation(x, y, 2, 360 * (i/8));&lt;br /&gt;
    createPed(10, newX, newY, z)&lt;br /&gt;
  end&lt;br /&gt;
&lt;br /&gt;
end&lt;br /&gt;
);&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;/section&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Author: robhol.&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{Useful_Functions}}&lt;/div&gt;</summary>
		<author><name>Robhol</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=CreatePed&amp;diff=20217</id>
		<title>CreatePed</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=CreatePed&amp;diff=20217"/>
		<updated>2009-06-27T13:45:00Z</updated>

		<summary type="html">&lt;p&gt;Robhol: Zomg teh linkage (Added link to skin lists)&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__ &lt;br /&gt;
{{Server client function}}&lt;br /&gt;
Creates a Ped in the GTA world.&lt;br /&gt;
&lt;br /&gt;
==Syntax== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;ped createPed ( int modelid, float x, float y, float z )&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
&lt;br /&gt;
===Required Arguments=== &lt;br /&gt;
*'''modelid:''' A whole integer specifying the [[Character_Skins|GTASA skin ID]].&lt;br /&gt;
*'''x:''' A floating point number representing the X coordinate on the map.&lt;br /&gt;
*'''y:''' A floating point number representing the Y coordinate on the map.&lt;br /&gt;
*'''z:''' A floating point number representing the Z coordinate on the map.&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns the ped element.&lt;br /&gt;
&lt;br /&gt;
==Example== &lt;br /&gt;
&lt;br /&gt;
&amp;lt;section name=&amp;quot;Server&amp;quot; class=&amp;quot;server&amp;quot; show=&amp;quot;true&amp;quot;&amp;gt;&lt;br /&gt;
This example creates an ped when the resource starts:&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function pedLoad ( name )&lt;br /&gt;
   createPed ( 120, 5540.6654, 1020.55122, 1240.545 )&lt;br /&gt;
end&lt;br /&gt;
addEventHandler ( &amp;quot;onResourceStart&amp;quot;, getRootElement(), pedLoad )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;/section&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{Ped functions}}&lt;/div&gt;</summary>
		<author><name>Robhol</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Interior_IDs&amp;diff=19802</id>
		<title>Interior IDs</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Interior_IDs&amp;diff=19802"/>
		<updated>2009-06-04T13:27:11Z</updated>

		<summary type="html">&lt;p&gt;Robhol: Onbekend? :o&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;San Andreas Interior ID list.&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
*'''ID 0:'''&lt;br /&gt;
{|  class=&amp;quot;prettytable&amp;quot; style=&amp;quot;width:50%;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| '''Normal world''' || &lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
*'''ID 1:'''&lt;br /&gt;
{|  class=&amp;quot;prettytable&amp;quot; style=&amp;quot;width:50%;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| '''Ammu-nation 1''' || 289.7870 || -35.7190 || 1003.5160&lt;br /&gt;
|-&lt;br /&gt;
| '''Burglary House''' || &lt;br /&gt;
|-&lt;br /&gt;
| '''Cafe shop (Catalina?)''' || 681.65 || -452.86 || -25.62&lt;br /&gt;
|-&lt;br /&gt;
| '''Restaurant 1''' || 446.6941 || -9.7977 || 1000.7340&lt;br /&gt;
|-&lt;br /&gt;
| '''Caligulas Casino''' || 2235.2524 || 1708.5146 || 1010.6129&lt;br /&gt;
|-&lt;br /&gt;
| '''Denise's Place''' || 244.0892 || 304.8456 || 999.1484&lt;br /&gt;
|-&lt;br /&gt;
| '''Shamal cabin''' || 1.6127 || 34.7411 || 1199.0&lt;br /&gt;
|-&lt;br /&gt;
| '''Liberty City''' || -750.80 || 491.00 || 1371.70&lt;br /&gt;
|-&lt;br /&gt;
| '''Sweet's House''' || 2525.0420 || -1679.1150 || 1015.4990&lt;br /&gt;
|-&lt;br /&gt;
| '''Transfender''' || 621.7850 || -12.5417 || 1000.9220&lt;br /&gt;
|-&lt;br /&gt;
| '''Safe House 4''' || 2216.5400 || -1076.2900 || 1050.4840&lt;br /&gt;
|-&lt;br /&gt;
| '''Trials Stadium''' || &lt;br /&gt;
|-&lt;br /&gt;
| '''Warehouse 1''' || 1405.3120 || -8.2928 || 1000.9130&lt;br /&gt;
|-&lt;br /&gt;
| '''Doherty Garage''' || -2042.42 || 178.59 || 28.84 ||  	  	   &lt;br /&gt;
|-&lt;br /&gt;
| '''Sindacco Abatoir''' || 963.6078 || 2108.3970 || 1011.0300&lt;br /&gt;
|-&lt;br /&gt;
| '''Sub Urban''' || 203.8173 || -46.5385 || 1001.8050&lt;br /&gt;
|-&lt;br /&gt;
| '''Wu Zi Mu's Betting place''' || -2159.9260 || 641.4587 || 1052.3820&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
*'''ID 2:'''&lt;br /&gt;
{|  class=&amp;quot;prettytable&amp;quot; style=&amp;quot;width:50%;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| '''Ryder's House''' || 2464.2110 || -1697.9520 || 1013.5080&lt;br /&gt;
|-&lt;br /&gt;
| '''Angel Pine Trailer''' || 0.3440 || -0.5140 || 1000.5490¨&lt;br /&gt;
|-&lt;br /&gt;
| '''The Pig Pen''' || 1213.4330 ||-6.6830 || 1000.9220&lt;br /&gt;
|-&lt;br /&gt;
| '''BDups Crack Palace''' || 1523.7510 || -46.0458 || 1002.1310&lt;br /&gt;
|-&lt;br /&gt;
| '''Big Smoke's Crack Palace''' || 2543.6610 || -1303.9320 || 1025.0700&lt;br /&gt;
|-&lt;br /&gt;
| '''Burglary House 2''' || &lt;br /&gt;
|-&lt;br /&gt;
| '''Burglary House 9''' || &lt;br /&gt;
|-&lt;br /&gt;
| '''Burglary House 10''' || &lt;br /&gt;
|-&lt;br /&gt;
| '''Katie's Place''' || 267.2290 || 304.7100 || 999.1480&lt;br /&gt;
|-&lt;br /&gt;
| '''Loco Low Co.''' || 612.5910 || -75.6370 || 997.9920&lt;br /&gt;
|-&lt;br /&gt;
| '''Reece's Barbershop''' || 612.5910 || -75.6370 || 997.9920&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
*'''ID 3:'''&lt;br /&gt;
{|  class=&amp;quot;prettytable&amp;quot; style=&amp;quot;width:50%;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| '''Jizzy's Pleasure Domes''' || -2636.7190 || 1402.9170 || 906.4609&lt;br /&gt;
|-&lt;br /&gt;
| '''Brothel''' || 940.6520 || -18.4860 || 1000.9300&lt;br /&gt;
|-&lt;br /&gt;
| '''Brothel 2''' || 967.5334 || -53.0245 || 1001.1250&lt;br /&gt;
|-&lt;br /&gt;
| '''BDups Apartment''' || 1527.38 || -11.02 || 1002.10 &lt;br /&gt;
|-&lt;br /&gt;
| '''Bike School''' || 1494.3350 || 1305.6510 || 1093.2890&lt;br /&gt;
|-&lt;br /&gt;
| '''Big Spread Ranch''' || 1210.2570 || -29.2986 || 1000.8790&lt;br /&gt;
|-&lt;br /&gt;
| '''LV Tattoo Parlour''' || -204.4390 || -43.6520 || 1002.2990&lt;br /&gt;
|-&lt;br /&gt;
| '''LVPD HQ''' || 289.7703 || 171.7460 || 1007.1790&lt;br /&gt;
|-&lt;br /&gt;
| '''OG Loc's House''' || 516.8890 || -18.4120 || 1001.5650&lt;br /&gt;
|-&lt;br /&gt;
| '''Pro-Laps''' || 207.3560 || -138.0029 || 1003.3130&lt;br /&gt;
|-&lt;br /&gt;
| '''Las Venturas Planning Dep.''' || 374.6708 || 173.8050 || 1008.3893&lt;br /&gt;
|-&lt;br /&gt;
| '''Record Label Hallway''' || 1038.2190 || 6.9905 || 1001.2840&lt;br /&gt;
|-&lt;br /&gt;
| '''Driving School''' || -2027.9200 || -105.1830 || 1035.1720&lt;br /&gt;
|-&lt;br /&gt;
| '''Johnson House''' || 2496.0500 || -1693.9260 || 1014.7420&lt;br /&gt;
|-&lt;br /&gt;
| '''Budget Inn Motel Room''' || &lt;br /&gt;
|-&lt;br /&gt;
| '''Burglary House 1''' || &lt;br /&gt;
|-&lt;br /&gt;
| '''Gay Gordo's Barbershop''' || 418.6530 || -82.6390 || 1001.8050&lt;br /&gt;
|-&lt;br /&gt;
| '''Helena's Place''' || 292.4459 || 308.7790 || 999.1484&lt;br /&gt;
|-&lt;br /&gt;
| '''Inside Track Betting''' || 826.8863 || 5.5091 || 1004.4830&lt;br /&gt;
|-&lt;br /&gt;
| '''Sex Shop''' || -106.7268 || -19.6444 || 1000.7190&lt;br /&gt;
|-&lt;br /&gt;
| '''Wheel Arch Angels''' || 614.3889 || -124.0991 || 997.9950&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
*'''ID 4:'''&lt;br /&gt;
{|  class=&amp;quot;prettytable&amp;quot; style=&amp;quot;width:50%;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| '''24/7 shop 1''' || -27.3769 || -27.6416 || 1003.5570&lt;br /&gt;
|-&lt;br /&gt;
| '''Ammu-Nation 2''' || 285.8000 || -84.5470 || 1001.5390&lt;br /&gt;
|-&lt;br /&gt;
| '''Burglary House 12''' || &lt;br /&gt;
|-&lt;br /&gt;
| '''Burglary House 13''' || &lt;br /&gt;
|-&lt;br /&gt;
| '''Burglary House 15''' || &lt;br /&gt;
|-&lt;br /&gt;
| '''Diner 2''' || &lt;br /&gt;
|-&lt;br /&gt;
| '''Dirtbike Stadium''' || -1435.8690 || -662.2505 || 1052.4650&lt;br /&gt;
|-&lt;br /&gt;
| '''Michelle's Place''' || 302.6404 || 304.8048 || 999.1484&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
*'''ID 5:'''&lt;br /&gt;
{|  class=&amp;quot;prettytable&amp;quot; style=&amp;quot;width:50%;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| '''Madd Dogg's Mansion''' || 1272.9116 || -768.9028 || 1090.5097&lt;br /&gt;
|-&lt;br /&gt;
| '''Well Stacked Pizza Co.''' || 377.7758 || -126.2766 || 1001.4920&lt;br /&gt;
|-&lt;br /&gt;
| '''Victim''' || 221.3310 || -6.6169 || 1005.1977&lt;br /&gt;
|-&lt;br /&gt;
| '''Burning Desire House''' || 2351.1540 || -1180.5770 || 1027.9770&lt;br /&gt;
|-&lt;br /&gt;
| '''Barbara's Place''' || &lt;br /&gt;
|-&lt;br /&gt;
| '''Burglary House 11''' || &lt;br /&gt;
|-&lt;br /&gt;
| '''Burglary House 16''' || &lt;br /&gt;
|-&lt;br /&gt;
| '''Burglary House 17''' || &lt;br /&gt;
|-&lt;br /&gt;
| '''The Crack Den''' || 322.1117 || 1119.3270 || 1083.8830&lt;br /&gt;
|-&lt;br /&gt;
| '''Police Station (Barbara's)''' || 322.72 || 306.43 || 999.15&lt;br /&gt;
|-&lt;br /&gt;
| '''Diner place''' || 448.7435 || -110.0457 || 1000.0772&lt;br /&gt;
|-&lt;br /&gt;
| '''Ganton Gym''' || 768.0793 || 5.8606 || 1000.7160&lt;br /&gt;
|-&lt;br /&gt;
| '''Vank Hoff Hotel ''' || 2232.8210 || -1110.0180 || 1050.8830&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
*'''ID 6:'''&lt;br /&gt;
{|  class=&amp;quot;prettytable&amp;quot; style=&amp;quot;width:50%;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| '''Ammu-Nation 3''' || 297.4460 || -109.9680 || 1001.5160&lt;br /&gt;
|-&lt;br /&gt;
| '''Ammu-Nation 4''' || 317.2380 || -168.0520 || 999.5930&lt;br /&gt;
|-&lt;br /&gt;
| '''LSPD HQ ''' || 246.4510 || 65.5860 ||1003.6410&lt;br /&gt;
|-&lt;br /&gt;
| '''Safe House 3''' || 2333.0330 || -1073.9600 || 1049.0230&lt;br /&gt;
|-&lt;br /&gt;
| '''Safe House 5''' || 2194.2910 || -1204.0150 || 1049.0230&lt;br /&gt;
|-&lt;br /&gt;
| '''Safe House 6''' || 2308.8710 || -1210.7170 || 1049.0230&lt;br /&gt;
|-&lt;br /&gt;
| '''Cobra Marital Arts Gym''' || 774.0870 ||-47.9830 || 1000.5860&lt;br /&gt;
|-&lt;br /&gt;
| '''24/7 shop 2''' || -26.7180 || -55.9860 || 1003.5470&lt;br /&gt;
|-&lt;br /&gt;
| '''Millie's Bedroom''' || 344.5200 || 304.8210 || 999.1480&lt;br /&gt;
|-&lt;br /&gt;
| '''Fanny Batter's Brothel''' || 744.2710 || 1437.2530 || 1102.7030&lt;br /&gt;
|-&lt;br /&gt;
| '''Restaurant 2''' || 443.9810 || -65.2190 || 1050.0000&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
*'''ID 7:'''&lt;br /&gt;
{|  class=&amp;quot;prettytable&amp;quot; style=&amp;quot;width:50%;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| '''Ammu-Nation 5 (2 Floors)''' || 315.3850 || -142.2420 || 999.6010&lt;br /&gt;
|-&lt;br /&gt;
| '''8-Track Stadium''' || -1417.8720 || -276.4260 || 1051.1910&lt;br /&gt;
|-&lt;br /&gt;
| '''Burglary House 4''' || &lt;br /&gt;
|-&lt;br /&gt;
| '''Below the Belt Gym''' || 774.2430 || -76.0090 || 1000.6540&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
*'''ID 8:'''&lt;br /&gt;
{|  class=&amp;quot;prettytable&amp;quot; style=&amp;quot;width:50%;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| '''Safe house 2''' || &lt;br /&gt;
|-&lt;br /&gt;
| '''Colonel Fuhrberger's House''' || 2807.8990 || -1172.9210 || 1025.5700&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
*'''ID 9:'''&lt;br /&gt;
{|  class=&amp;quot;prettytable&amp;quot; style=&amp;quot;width:50%;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| '''Unknown safe house''' || 2253.1740 || -1139.0100 || 1050.6330&lt;br /&gt;
|-&lt;br /&gt;
| '''Andromada Cargo hold''' || 315.48 || 984.13 || 1959.11&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
*'''ID 10:'''&lt;br /&gt;
{|  class=&amp;quot;prettytable&amp;quot; style=&amp;quot;width:50%;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| '''Four Dragons Casino''' || 2009.4140 || 1017.8990 || 994.4680&lt;br /&gt;
|-&lt;br /&gt;
| '''RC Zero's Battlefield''' || -975.5766 || 1061.1312 || 1345.6719&lt;br /&gt;
|-&lt;br /&gt;
| '''Burger Shot''' || 366.4220 ||-73.4700 || 1001.5080&lt;br /&gt;
|-&lt;br /&gt;
| '''Burglary House 14''' || &lt;br /&gt;
|-&lt;br /&gt;
| '''Janitor room''' || 1891.3960 ||1018.1260 || 31.8820&lt;br /&gt;
|-&lt;br /&gt;
| '''Safe House 1''' || &lt;br /&gt;
|-&lt;br /&gt;
| '''Hashbury safe house''' || 2264.5231 || -1210.5229 || 1049.0234&lt;br /&gt;
|-&lt;br /&gt;
| '''24/7 shop 3''' || 6.0780 || -28.6330 || 1003.5490&lt;br /&gt;
|-&lt;br /&gt;
| '''Abandoned AC Tower''' || 419.6140 || 2536.6030 || 10.0000&lt;br /&gt;
|-&lt;br /&gt;
| '''SFPD HQ''' || 246.4410 || 112.1640 || 1003.2190&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
*'''ID 11:'''&lt;br /&gt;
{|  class=&amp;quot;prettytable&amp;quot; style=&amp;quot;width:50%;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| '''The Four Dragons Office''' || 2011.6030 || 1017.0230 || 39.0910&lt;br /&gt;
|-&lt;br /&gt;
| '''Los Santos safe house''' || &lt;br /&gt;
|-&lt;br /&gt;
| '''Ten Green Bottles Bar''' || 502.3310 || -70.6820 || 998.7570&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
*'''ID 12:'''&lt;br /&gt;
{|  class=&amp;quot;prettytable&amp;quot; style=&amp;quot;width:50%;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| '''Budget Inn Motel Room''' || &lt;br /&gt;
|-&lt;br /&gt;
| '''The Casino''' || 1132.9450 || -8.6750 || 1000.6800&lt;br /&gt;
|-&lt;br /&gt;
| '''Macisla's Barbershop''' || 411.6410 || -51.8460 || 1001.8980&lt;br /&gt;
|-&lt;br /&gt;
| '''Safe house 7''' || 2237.2970 || -1077.9250 || 1049.0230&lt;br /&gt;
|-&lt;br /&gt;
| '''Modern safe house''' || 2324.4990 || -1147.0710 || 1050.7100&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
*'''ID 13:'''&lt;br /&gt;
{|  class=&amp;quot;prettytable&amp;quot; style=&amp;quot;width:50%;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
|'''LS Atrium''' || 1724.33 || -1625.784 || 20.211&lt;br /&gt;
|-&lt;br /&gt;
|'''CJ's Garage''' || -2043.966 || 172.932 || 28.835&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
*'''ID 14:'''&lt;br /&gt;
{|  class=&amp;quot;prettytable&amp;quot; style=&amp;quot;width:50%;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| '''Kickstart Stadium''' || -1464.5360 || 1557.6900 || 1052.5310&lt;br /&gt;
|-&lt;br /&gt;
| '''Didier Sachs''' || 204.1789 || -165.8740 || 1000.5230&lt;br /&gt;
|-&lt;br /&gt;
| '''Francis Int. Airport (Front ext.)''' || -1827.1473 || 7.2074 || 1061.1435&lt;br /&gt;
|-&lt;br /&gt;
| '''Francis Int. Airport (Baggage Claim/Ticket Sales)''' || -1855.5687 || 41.2631 || 1061.1435&lt;br /&gt;
|-&lt;br /&gt;
| '''Wardrobe''' || 255.7190 || -41.1370 || 1002.0230&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
*'''ID 15:'''&lt;br /&gt;
{|  class=&amp;quot;prettytable&amp;quot; style=&amp;quot;width:50%;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| '''Binco''' || 207.5430 || -109.0040 || 1005.1330&lt;br /&gt;
|-&lt;br /&gt;
| '''Blood Bowl Stadium''' || -1394.20 || 987.62 || 1023.96&lt;br /&gt;
|-&lt;br /&gt;
| '''Jefferson Motel''' || 2217.6250 || -1150.6580 || 1025.7970&lt;br /&gt;
|-&lt;br /&gt;
| '''Burglary House 5''' || &lt;br /&gt;
|-&lt;br /&gt;
| '''Burglary House 6''' || &lt;br /&gt;
|-&lt;br /&gt;
| '''Burglary House 7''' || &lt;br /&gt;
|-&lt;br /&gt;
| '''Burglary House 8''' || &lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
*'''ID 16:'''&lt;br /&gt;
{|  class=&amp;quot;prettytable&amp;quot; style=&amp;quot;width:50%;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| '''24/7 shop 4''' || -25.3730 || -139.6540 || 1003.5470&lt;br /&gt;
|-&lt;br /&gt;
| '''LS Tattoo Parlour''' || -204.5580 || -25.6970 || 1002.2730&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
*'''ID 17:'''&lt;br /&gt;
{|  class=&amp;quot;prettytable&amp;quot; style=&amp;quot;width:50%;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| '''24/7 shop 5''' || -25.3930 || -185.9110 || 1003.5470&lt;br /&gt;
|-&lt;br /&gt;
| '''Club''' || 493.4687 || -23.0080 || 1000.6796&lt;br /&gt;
|-&lt;br /&gt;
| '''Rusty Brown's - Ring Donuts''' || 377.0030 || -192.5070 || 1000.6330&lt;br /&gt;
|-&lt;br /&gt;
| '''The Sherman's Dam Generator Hall''' || -942.1320 || 1849.1420 || 5.0050&lt;br /&gt;
|-&lt;br /&gt;
| '''Hemlock Tattoo''' || 377.0030 || -192.5070 || 1000.6330&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
*'''ID 18:'''&lt;br /&gt;
{|  class=&amp;quot;prettytable&amp;quot; style=&amp;quot;width:50%;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| '''Lil Probe Inn''' || -227.0280 || 1401.2290 || 27.7690&lt;br /&gt;
|-&lt;br /&gt;
| '''24/7 shop 6''' || -30.9460 || -89.6090 || 1003.5490&lt;br /&gt;
|-&lt;br /&gt;
| '''Atrium''' || 1726.1370 || -1645.2300 || 20.2260&lt;br /&gt;
|-&lt;br /&gt;
| '''Warehouse 2''' || 1296.6310 || 0.5920 || 1001.0230&lt;br /&gt;
|-&lt;br /&gt;
| '''Zip''' || 161.4620 || -91.3940 || 1001.8050&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
==See Also==&lt;br /&gt;
[[id|ID Lists]]&lt;br /&gt;
[[Category:Scripting Concepts]]&lt;/div&gt;</summary>
		<author><name>Robhol</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=OnClientPlayerDamage&amp;diff=19718</id>
		<title>OnClientPlayerDamage</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=OnClientPlayerDamage&amp;diff=19718"/>
		<updated>2009-05-23T12:53:06Z</updated>

		<summary type="html">&lt;p&gt;Robhol: I have no idea what falling of a bike means. Corrected.&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 is damaged.&lt;br /&gt;
&lt;br /&gt;
==Parameters==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
element attacker, int weapon, int bodypart [, float loss ]&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
&lt;br /&gt;
*'''attacker''': A [[player]] [[element]] representing the attacker or [[vehicle]] [[element]] (when you fall off a bike).&lt;br /&gt;
*'''weapon''': An integer representing the weapon ID the attacker used&lt;br /&gt;
*'''bodypart''': An integer representing the bodypart the player was damaged&lt;br /&gt;
{{BodyParts}}&lt;br /&gt;
*'''loss''': A float representing the percentage of health the player lost. ('''from DP3''')&lt;br /&gt;
&lt;br /&gt;
==Source==&lt;br /&gt;
The [[event system#Event source|source]] of this event is the [[player]] that got damaged&lt;br /&gt;
&lt;br /&gt;
==Cancel effect==&lt;br /&gt;
If this event is [[Event system#Canceling|canceled]], then any damaging effects to the local player will cease.&lt;br /&gt;
&lt;br /&gt;
==Example== &lt;br /&gt;
This example prevents any damage from the minigun.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function stopMinigunDamage ( attacker, weapon, bodypart )&lt;br /&gt;
	if ( weapon == 38 ) then --if the weapon used was the minigun&lt;br /&gt;
		cancelEvent() --cancel the event&lt;br /&gt;
	end&lt;br /&gt;
end&lt;br /&gt;
addEventHandler ( &amp;quot;onClientPlayerDamage&amp;quot;, getLocalPlayer(), stopMinigunDamage )&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>Robhol</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=IsElementInWater&amp;diff=19717</id>
		<title>IsElementInWater</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=IsElementInWater&amp;diff=19717"/>
		<updated>2009-05-23T12:15:35Z</updated>

		<summary type="html">&lt;p&gt;Robhol: /* Example */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__&lt;br /&gt;
{{Server client function}}&lt;br /&gt;
This function checks whether an [[element]] is submerged in water.&lt;br /&gt;
&lt;br /&gt;
==Syntax==&lt;br /&gt;
&amp;lt;section name=&amp;quot;Server and client&amp;quot; class=&amp;quot;both&amp;quot; show=&amp;quot;true&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;bool isElementInWater ( element theElement )&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Required Arguments===&lt;br /&gt;
* '''theElement''': The element to check.&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns ''true'' if the passed element is in water, ''false'' if it isn't, or if the element is invalid.&lt;br /&gt;
&amp;lt;/section&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
Creates a command that checks if the player is in water or not.&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;
&lt;br /&gt;
function waterCheck(thePlayer)&lt;br /&gt;
    if isElementInWater(thePlayer) then&lt;br /&gt;
        outputChatBox(&amp;quot;Wet.&amp;quot;, thePlayer)&lt;br /&gt;
    else&lt;br /&gt;
        outputChatBox(&amp;quot;Dry.&amp;quot;, thePlayer)&lt;br /&gt;
    end&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
addCommandHandler(&amp;quot;check&amp;quot;, waterCheck)&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;
{{Element functions}}&lt;/div&gt;</summary>
		<author><name>Robhol</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=GetLoadedModules&amp;diff=19642</id>
		<title>GetLoadedModules</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=GetLoadedModules&amp;diff=19642"/>
		<updated>2009-05-18T13:52:34Z</updated>

		<summary type="html">&lt;p&gt;Robhol: /* Example */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__ &lt;br /&gt;
{{Server function}} &lt;br /&gt;
&amp;lt;!-- Describe in plain english what this function does. Don't go into details, just give an overview --&amp;gt;&lt;br /&gt;
This function returns all the currently loaded [[modules]] of the server.&lt;br /&gt;
&lt;br /&gt;
==Syntax== &lt;br /&gt;
&amp;lt;!-- NOTE: don't use 'special' names for variable names, e.g. you shouldn't be writing things like 'player player, vehicle vehicle', instead write something like 'player thePlayer, vehicle vehicleToGetInto'. This is less confusing and prevents the syntax highlighting being odd --&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
table getLoadedModules ()&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &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 a table of all the currently loaded [[modules]]. If no modules are loaded, the table will be empty.&lt;br /&gt;
&lt;br /&gt;
==Example== &lt;br /&gt;
&amp;lt;!-- Add the code below, an emphasis should be on making it clear, not optimized. You could provide two versions if you wish, one clear and well commented, the other optimized --&amp;gt;&lt;br /&gt;
Adds a command that lists all loaded modules in the server log.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function checkModules()&lt;br /&gt;
	local modules = getLoadedModules()&lt;br /&gt;
	&lt;br /&gt;
	if #modules == 0 then&lt;br /&gt;
		outputServerLog(&amp;quot;No modules are loaded!&amp;quot;)&lt;br /&gt;
	else&lt;br /&gt;
	&lt;br /&gt;
		for k,v in ipairs(modules) do&lt;br /&gt;
			outputServerLog( v )&lt;br /&gt;
		end&lt;br /&gt;
		&lt;br /&gt;
		outputServerLog(&amp;quot;Loaded &amp;quot; .. #modules .. &amp;quot; modules in total.&amp;quot;)&lt;br /&gt;
	end&lt;br /&gt;
end&lt;br /&gt;
addCommandHandler(&amp;quot;modules&amp;quot;, checkModules)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
&amp;lt;!-- Change FunctionArea to the area that this function is in on the main function list page, e.g. Server, Player, Vehicle etc --&amp;gt;&lt;br /&gt;
{{Module_functions}}&lt;/div&gt;</summary>
		<author><name>Robhol</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=GetLoadedModules&amp;diff=19641</id>
		<title>GetLoadedModules</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=GetLoadedModules&amp;diff=19641"/>
		<updated>2009-05-18T13:51:46Z</updated>

		<summary type="html">&lt;p&gt;Robhol: Added.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__ &lt;br /&gt;
{{Server function}} &lt;br /&gt;
&amp;lt;!-- Describe in plain english what this function does. Don't go into details, just give an overview --&amp;gt;&lt;br /&gt;
This function returns all the currently loaded [[modules]] of the server.&lt;br /&gt;
&lt;br /&gt;
==Syntax== &lt;br /&gt;
&amp;lt;!-- NOTE: don't use 'special' names for variable names, e.g. you shouldn't be writing things like 'player player, vehicle vehicle', instead write something like 'player thePlayer, vehicle vehicleToGetInto'. This is less confusing and prevents the syntax highlighting being odd --&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
table getLoadedModules ()&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &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 a table of all the currently loaded [[modules]]. If no modules are loaded, the table will be empty.&lt;br /&gt;
&lt;br /&gt;
==Example== &lt;br /&gt;
&amp;lt;!-- Add the code below, an emphasis should be on making it clear, not optimized. You could provide two versions if you wish, one clear and well commented, the other optimized --&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function checkModules()&lt;br /&gt;
	local modules = getLoadedModules()&lt;br /&gt;
	&lt;br /&gt;
	if #modules == 0 then&lt;br /&gt;
		outputServerLog(&amp;quot;No modules are loaded!&amp;quot;)&lt;br /&gt;
	else&lt;br /&gt;
	&lt;br /&gt;
		for k,v in ipairs(modules) do&lt;br /&gt;
			outputServerLog( v )&lt;br /&gt;
		end&lt;br /&gt;
		&lt;br /&gt;
		outputServerLog(&amp;quot;Loaded &amp;quot; .. #modules .. &amp;quot; modules in total.&amp;quot;)&lt;br /&gt;
	end&lt;br /&gt;
end&lt;br /&gt;
addCommandHandler(&amp;quot;modules&amp;quot;, checkModules)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
&amp;lt;!-- Change FunctionArea to the area that this function is in on the main function list page, e.g. Server, Player, Vehicle etc --&amp;gt;&lt;br /&gt;
{{Module_functions}}&lt;/div&gt;</summary>
		<author><name>Robhol</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Template:Module_functions&amp;diff=19640</id>
		<title>Template:Module functions</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Template:Module_functions&amp;diff=19640"/>
		<updated>2009-05-18T13:46:31Z</updated>

		<summary type="html">&lt;p&gt;Robhol: BLARRRRRRGGGGGGHHHHH :3&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;*[[getLoadedModules]]&lt;br /&gt;
*[[getModuleInfo]]&lt;/div&gt;</summary>
		<author><name>Robhol</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Server_Scripting_Functions&amp;diff=19639</id>
		<title>Server Scripting Functions</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Server_Scripting_Functions&amp;diff=19639"/>
		<updated>2009-05-18T13:42:09Z</updated>

		<summary type="html">&lt;p&gt;Robhol: Added Module category&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;pageclass class=&amp;quot;server&amp;quot;&amp;gt;&amp;lt;/pageclass&amp;gt;&lt;br /&gt;
This page lists all the '''server-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;
&lt;br /&gt;
Please note that the scripting functions can now be extended by loading in dynamic modules that provide new functionality, such as MySQL database access. These scripting functions are non-native and require the module to be loaded in order to work.&lt;br /&gt;
&lt;br /&gt;
Head over to [[Modules]] for a list of non-native serverside functions and modules that are available.&lt;br /&gt;
&lt;br /&gt;
'''Client-side scripting functions can be found here: [[Client Scripting Functions]].'''&lt;br /&gt;
&lt;br /&gt;
==Account functions==&lt;br /&gt;
{{Account_functions}}&lt;br /&gt;
&lt;br /&gt;
==ACL functions==&lt;br /&gt;
{{ACL_functions}}&lt;br /&gt;
&lt;br /&gt;
==Admin functions==&lt;br /&gt;
{{Admin_functions}}&lt;br /&gt;
&lt;br /&gt;
==Audio functions==&lt;br /&gt;
{{Audio_functions}}&lt;br /&gt;
&lt;br /&gt;
==Announcement functions==&lt;br /&gt;
{{Announce_functions}}&lt;br /&gt;
&lt;br /&gt;
==Blip functions==&lt;br /&gt;
{{Blip_functions}}&lt;br /&gt;
&lt;br /&gt;
==Camera functions==&lt;br /&gt;
{{Camera functions}}&lt;br /&gt;
&lt;br /&gt;
==Collision shape functions==&lt;br /&gt;
{{Collision shape functions}}&lt;br /&gt;
&lt;br /&gt;
==Client functions==&lt;br /&gt;
{{Client functions}}&lt;br /&gt;
&lt;br /&gt;
==Clothes and body functions==&lt;br /&gt;
{{Clothes and body functions}}&lt;br /&gt;
&lt;br /&gt;
==Cursor functions==&lt;br /&gt;
{{Cursor_functions}}&lt;br /&gt;
&lt;br /&gt;
==Element functions==&lt;br /&gt;
{{Element functions}}&lt;br /&gt;
&lt;br /&gt;
==Event functions==&lt;br /&gt;
{{Event_functions}}&lt;br /&gt;
&lt;br /&gt;
==Explosion functions==&lt;br /&gt;
{{Explosion_functions}}&lt;br /&gt;
&lt;br /&gt;
==File functions==&lt;br /&gt;
{{File_functions}}&lt;br /&gt;
&lt;br /&gt;
==HTTP functions==&lt;br /&gt;
{{HTTP_functions}}&lt;br /&gt;
&lt;br /&gt;
==Input functions==&lt;br /&gt;
{{Input_functions}}&lt;br /&gt;
&lt;br /&gt;
==Map functions==&lt;br /&gt;
{{Map_functions}}&lt;br /&gt;
&lt;br /&gt;
==Marker functions==&lt;br /&gt;
{{Marker functions}}&lt;br /&gt;
&lt;br /&gt;
==Module functions==&lt;br /&gt;
{{Module functions}}&lt;br /&gt;
&lt;br /&gt;
==Object functions==&lt;br /&gt;
{{Object functions}}&lt;br /&gt;
&lt;br /&gt;
==Ped functions==&lt;br /&gt;
{{Ped_functions}}&lt;br /&gt;
&lt;br /&gt;
==Pickup functions==&lt;br /&gt;
{{Pickup functions}}&lt;br /&gt;
&lt;br /&gt;
==Player functions==&lt;br /&gt;
{{Player functions}}&lt;br /&gt;
&lt;br /&gt;
==Radar area functions==&lt;br /&gt;
{{Radar area functions}}&lt;br /&gt;
&lt;br /&gt;
==Resource functions==&lt;br /&gt;
{{Resource functions}}&lt;br /&gt;
&lt;br /&gt;
==Serial functions==&lt;br /&gt;
{{Serial functions}}&lt;br /&gt;
&lt;br /&gt;
==Server functions==&lt;br /&gt;
{{Server functions}}&lt;br /&gt;
&lt;br /&gt;
==Settings registry functions==&lt;br /&gt;
{{Settings registry functions}}&lt;br /&gt;
&lt;br /&gt;
==SQL functions==&lt;br /&gt;
{{SQL_functions}}&lt;br /&gt;
&lt;br /&gt;
==Team functions==&lt;br /&gt;
{{Team functions}}&lt;br /&gt;
&lt;br /&gt;
==Text functions==&lt;br /&gt;
{{Text functions}}&lt;br /&gt;
&lt;br /&gt;
==Utility functions==&lt;br /&gt;
{{Utility functions}}&lt;br /&gt;
&lt;br /&gt;
==Vehicle functions==&lt;br /&gt;
{{Vehicle functions}}&lt;br /&gt;
&lt;br /&gt;
==Water functions==&lt;br /&gt;
{{Water functions}}&lt;br /&gt;
&lt;br /&gt;
==Weapon functions==&lt;br /&gt;
{{Weapon functions}}&lt;br /&gt;
&lt;br /&gt;
==World functions==&lt;br /&gt;
{{World functions}}&lt;br /&gt;
&lt;br /&gt;
==XML functions==&lt;br /&gt;
{{XML functions}}&lt;/div&gt;</summary>
		<author><name>Robhol</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Template:Module_functions&amp;diff=19638</id>
		<title>Template:Module functions</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Template:Module_functions&amp;diff=19638"/>
		<updated>2009-05-18T13:41:41Z</updated>

		<summary type="html">&lt;p&gt;Robhol: Created.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;*[[getModules]]&lt;br /&gt;
*[[getModuleInfo]]&lt;/div&gt;</summary>
		<author><name>Robhol</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Template:Ped_events&amp;diff=19637</id>
		<title>Template:Ped events</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Template:Ped_events&amp;diff=19637"/>
		<updated>2009-05-18T13:36:55Z</updated>

		<summary type="html">&lt;p&gt;Robhol: Added onPedWeaponSwitch&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{New feature|3|1.0|&lt;br /&gt;
*[[onPedWasted]]&lt;br /&gt;
*[[onPedWeaponSwitch]]&lt;br /&gt;
}}&lt;/div&gt;</summary>
		<author><name>Robhol</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=OnPedWeaponSwitch&amp;diff=19636</id>
		<title>OnPedWeaponSwitch</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=OnPedWeaponSwitch&amp;diff=19636"/>
		<updated>2009-05-18T13:36:06Z</updated>

		<summary type="html">&lt;p&gt;Robhol: Added.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__ &lt;br /&gt;
{{Server event}}&lt;br /&gt;
This event is triggered when a ped switches weapons.&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 previousWeaponID, int currentWeaponID&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
&lt;br /&gt;
*'''previousWeaponID''': An integer representing the weapon that was switched from&lt;br /&gt;
*'''currentWeaponID''': An integer representing the weapon that was switched to&lt;br /&gt;
&lt;br /&gt;
==Source==&lt;br /&gt;
The [[event system#Event source|source]] of this event is the [[ped]] that switched his weapon.&lt;br /&gt;
&lt;br /&gt;
==Example== &lt;br /&gt;
This example outputs a line to the chat box whenever a ped changes weapons.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function weaponSwitch ( previousWeaponID, currentWeaponID )&lt;br /&gt;
&lt;br /&gt;
outputChatBox(&amp;quot;A ped switched weapons from &amp;quot; .. previousWeaponID .. &amp;quot; to &amp;quot; .. currentWeaponID .. &amp;quot;!&amp;quot;)&lt;br /&gt;
&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
addEventHandler ( &amp;quot;onPedWeaponSwitch&amp;quot;, getRootElement(), weaponSwitch )&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>Robhol</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=OnPlayerQuit&amp;diff=19628</id>
		<title>OnPlayerQuit</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=OnPlayerQuit&amp;diff=19628"/>
		<updated>2009-05-18T04:45:23Z</updated>

		<summary type="html">&lt;p&gt;Robhol: Added resp. argument, updated list, updated example.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__&lt;br /&gt;
{{Server event}}&lt;br /&gt;
This event is triggered when a player disconnects from the server.&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 quitType, string reason, element responsibleElement&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
&lt;br /&gt;
*'''quitType''': How the player left.&lt;br /&gt;
This argument can be:&lt;br /&gt;
* &amp;quot;Unknown&amp;quot;&lt;br /&gt;
* &amp;quot;Quit&amp;quot;&lt;br /&gt;
* &amp;quot;Kicked&amp;quot;&lt;br /&gt;
* &amp;quot;Banned&amp;quot;&lt;br /&gt;
* &amp;quot;Bad Connection&amp;quot;&lt;br /&gt;
* &amp;quot;Timed out&amp;quot;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{New feature|3|1.0|&lt;br /&gt;
*'''reason''': If the player was kicked or banned, the reason given goes here. If the player was '''not''' kicked or banned, this will be false.&lt;br /&gt;
&lt;br /&gt;
*'''responsibleElement''': The element that was responsible for kicking or banning the player. This is commonly another player, but can also be the console element.&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
==Source==&lt;br /&gt;
The [[event system#Event source|source]] of this event is the [[player]] that left the server.&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
This example gets the quitting client's name and outputs that he is gone&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
-- we register quitPlayer as a handler for the event&lt;br /&gt;
function quitPlayer ( quitType )&lt;br /&gt;
	-- we store the player's name&lt;br /&gt;
	local quittingPlayerName = getClientName ( source )&lt;br /&gt;
	-- and send the message to the server&lt;br /&gt;
	outputChatBox ( quittingPlayerName .. &amp;quot; has left the server (&amp;quot; .. quitType .. &amp;quot;)&amp;quot; )&lt;br /&gt;
end&lt;br /&gt;
addEventHandler ( &amp;quot;onPlayerQuit&amp;quot;, getRootElement(), quitPlayer )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{{See also/Server event|Player events}}&lt;br /&gt;
&lt;br /&gt;
[[Category:Incomplete]]&lt;/div&gt;</summary>
		<author><name>Robhol</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=OnPlayerQuit&amp;diff=19626</id>
		<title>OnPlayerQuit</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=OnPlayerQuit&amp;diff=19626"/>
		<updated>2009-05-17T15:03:02Z</updated>

		<summary type="html">&lt;p&gt;Robhol: added kick/ban reason, renamed old reason arg to quitType&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__&lt;br /&gt;
{{Server event}}&lt;br /&gt;
This event is triggered when a player disconnects from the server.&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 quitType, string reason&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
&lt;br /&gt;
*'''quitType''': How the player left.&lt;br /&gt;
This argument can be:&lt;br /&gt;
- &amp;quot;Unknown&amp;quot;&lt;br /&gt;
- &amp;quot;Quit&amp;quot;&lt;br /&gt;
- &amp;quot;Kicked&amp;quot;&lt;br /&gt;
- &amp;quot;Banned&amp;quot;&lt;br /&gt;
- &amp;quot;Bad Connection&amp;quot;&lt;br /&gt;
- &amp;quot;Timed out&amp;quot;&lt;br /&gt;
&lt;br /&gt;
*'''reason''': If the player was kicked or banned, the reason given goes here. If the player was '''not''' kicked or banned, this will be false.&lt;br /&gt;
&lt;br /&gt;
==Source==&lt;br /&gt;
The [[event system#Event source|source]] of this event is the [[player]] that left the server.&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
This example gets the quitting client's name and outputs that he is gone&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
-- we register quitPlayer as a handler for the event&lt;br /&gt;
function quitPlayer ( reason )&lt;br /&gt;
	-- we store the player's name&lt;br /&gt;
	local quittingPlayerName = getClientName ( source )&lt;br /&gt;
	-- and send the message to the server&lt;br /&gt;
	outputChatBox ( quittingPlayerName .. &amp;quot; has left the server (&amp;quot; .. reason .. &amp;quot;)&amp;quot; )&lt;br /&gt;
end&lt;br /&gt;
addEventHandler ( &amp;quot;onPlayerQuit&amp;quot;, getRootElement(), quitPlayer )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{{See also/Server event|Player events}}&lt;br /&gt;
&lt;br /&gt;
[[Category:Incomplete]]&lt;/div&gt;</summary>
		<author><name>Robhol</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=IsElementInWater&amp;diff=19202</id>
		<title>IsElementInWater</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=IsElementInWater&amp;diff=19202"/>
		<updated>2009-04-20T17:45:50Z</updated>

		<summary type="html">&lt;p&gt;Robhol: Dedicated to Talidan. &amp;lt;3&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__&lt;br /&gt;
{{Server client function}}&lt;br /&gt;
This function checks whether an [[element]] is submerged in water.&lt;br /&gt;
&lt;br /&gt;
==Syntax==&lt;br /&gt;
&amp;lt;section name=&amp;quot;Server and client&amp;quot; class=&amp;quot;both&amp;quot; show=&amp;quot;true&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;bool isElementInWater ( element theElement )&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Required Arguments===&lt;br /&gt;
* '''theElement''': The element to check.&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns ''true'' if the passed element is in water, ''false'' if it isn't, or if the element is invalid.&lt;br /&gt;
&amp;lt;/section&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
Creates a command that checks if the player is in water or not.&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;
&lt;br /&gt;
function waterCheck(player)&lt;br /&gt;
    if isElementInWater(player) then&lt;br /&gt;
        outputChatBox(&amp;quot;Wet.&amp;quot;, player)&lt;br /&gt;
    else&lt;br /&gt;
        outputChatBox(&amp;quot;Dry.&amp;quot;, player)&lt;br /&gt;
    end&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
addCommandHandler(&amp;quot;check&amp;quot;, waterCheck)&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;
{{Element functions}}&lt;/div&gt;</summary>
		<author><name>Robhol</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Template:Client_element_functions&amp;diff=19201</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=19201"/>
		<updated>2009-04-20T17:40:07Z</updated>

		<summary type="html">&lt;p&gt;Robhol: Added isElementInWater&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;*[[createElement]]&lt;br /&gt;
*[[destroyElement]]&lt;br /&gt;
*[[getElementBoundingBox]]&lt;br /&gt;
*[[getElementChild]]&lt;br /&gt;
*[[getElementChildren]]&lt;br /&gt;
*[[getElementChildrenCount]]&lt;br /&gt;
*[[getElementData]]&lt;br /&gt;
*[[getElementDimension]]&lt;br /&gt;
*[[getElementHealth]]&lt;br /&gt;
*[[getElementID]]&lt;br /&gt;
*[[getElementInterior]]&lt;br /&gt;
*[[getElementsByType]]&lt;br /&gt;
*[[getElementType]]&lt;br /&gt;
*[[getElementParent]]&lt;br /&gt;
*[[getElementPosition]]&lt;br /&gt;
*[[getElementVelocity]]&lt;br /&gt;
*[[getElementRadius]]&lt;br /&gt;
*[[getRootElement]]&lt;br /&gt;
*[[isElement]]&lt;br /&gt;
*[[isElementLocal]]&lt;br /&gt;
*[[isElementStreamable]]&lt;br /&gt;
*[[isElementStreamedIn]]&lt;br /&gt;
*[[isElementWithinColShape]]&lt;br /&gt;
*[[getElementsWithinColShape]]&lt;br /&gt;
*[[isElementAttached]]&lt;br /&gt;
*[[isElementOnScreen]]&lt;br /&gt;
*[[getElementAttachedTo]]&lt;br /&gt;
*[[getAttachedElements]]&lt;br /&gt;
*[[getElementDistanceFromCentreOfMassToBaseOfModel]]&lt;br /&gt;
*[[setElementAlpha]]&lt;br /&gt;
*[[setElementCollisionsEnabled]]&lt;br /&gt;
*[[setElementData]]&lt;br /&gt;
*[[setElementDimension]]&lt;br /&gt;
*[[setElementHealth]]&lt;br /&gt;
*[[setElementInterior]]&lt;br /&gt;
*[[setElementParent]]&lt;br /&gt;
*[[setElementPosition]]&lt;br /&gt;
*[[setElementVelocity]]&lt;br /&gt;
*[[setElementStreamable]]&lt;br /&gt;
{{Deprecated_feature|3|1.0|&lt;br /&gt;
*[[attachElementToElement]]&lt;br /&gt;
*[[detachElementFromElement]]&lt;br /&gt;
}}&lt;br /&gt;
*[[getElementByID]]&lt;br /&gt;
{{New feature|3|1.0|&lt;br /&gt;
*[[getElementColShape]]&lt;br /&gt;
*[[getElementRotation]]&lt;br /&gt;
*[[setElementRotation]]&lt;br /&gt;
*[[getElementModel]]&lt;br /&gt;
*[[setElementModel]]&lt;br /&gt;
*[[attachElements]]&lt;br /&gt;
*[[detachElements]]&lt;br /&gt;
*[[isElementSyncer]]&lt;br /&gt;
*[[isElementInWater]]&lt;br /&gt;
}}&lt;/div&gt;</summary>
		<author><name>Robhol</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Template:Element_functions&amp;diff=19200</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=19200"/>
		<updated>2009-04-20T17:39:09Z</updated>

		<summary type="html">&lt;p&gt;Robhol: Added isElementInWater&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;*[[createElement]]&lt;br /&gt;
*[[destroyElement]]&lt;br /&gt;
*[[cloneElement]]&lt;br /&gt;
*[[isElement]]&lt;br /&gt;
*[[getAllElementData]]&lt;br /&gt;
*[[getElementByID]]&lt;br /&gt;
*[[getElementByIndex]]&lt;br /&gt;
*[[getElementChild]]&lt;br /&gt;
*[[getElementChildren]]&lt;br /&gt;
*[[getElementChildrenCount]]&lt;br /&gt;
*[[getElementData]]&lt;br /&gt;
*[[getElementHealth]]&lt;br /&gt;
*[[getElementID]]&lt;br /&gt;
*[[getElementParent]]&lt;br /&gt;
*[[getElementsByType]]&lt;br /&gt;
*[[getElementType]]&lt;br /&gt;
*[[getRootElement]]&lt;br /&gt;
*[[isElementVisibleTo]]&lt;br /&gt;
*[[isElementWithinColShape]]&lt;br /&gt;
*[[getElementsWithinColShape]]&lt;br /&gt;
*[[getElementPosition]]&lt;br /&gt;
*[[getElementVelocity]]&lt;br /&gt;
*[[getElementInterior]]&lt;br /&gt;
*[[getElementDimension]]&lt;br /&gt;
*[[getElementZoneName]]&lt;br /&gt;
*[[isElementAttached]]&lt;br /&gt;
*[[getElementAttachedTo]]&lt;br /&gt;
*[[getAttachedElements]]&lt;br /&gt;
*[[getElementColShape]]&lt;br /&gt;
*[[getElementAlpha]]&lt;br /&gt;
*[[setElementData]]&lt;br /&gt;
*[[removeElementData]]&lt;br /&gt;
*[[setElementHealth]]&lt;br /&gt;
*[[setElementID]]&lt;br /&gt;
*[[setElementParent]]&lt;br /&gt;
*[[setElementVisibleTo]]&lt;br /&gt;
*[[clearElementVisibleTo]]&lt;br /&gt;
*[[setElementPosition]]&lt;br /&gt;
*[[setElementVelocity]]&lt;br /&gt;
*[[setElementInterior]]&lt;br /&gt;
*[[setElementDimension]]&lt;br /&gt;
{{Deprecated_feature|3|1.0|&lt;br /&gt;
*[[attachElementToElement]]&lt;br /&gt;
*[[detachElementFromElement]]&lt;br /&gt;
}}&lt;br /&gt;
*[[setElementAlpha]]&lt;br /&gt;
{{New feature|3|1.0|&lt;br /&gt;
*[[getElementModel]]&lt;br /&gt;
*[[setElementModel]]&lt;br /&gt;
*[[attachElements]]&lt;br /&gt;
*[[detachElements]]&lt;br /&gt;
*[[setElementAttachedOffsets]]&lt;br /&gt;
*[[getElementSyncer]]&lt;br /&gt;
*[[isElementInWater]]&lt;br /&gt;
&lt;br /&gt;
}}&lt;/div&gt;</summary>
		<author><name>Robhol</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Template:Element_functions&amp;diff=19199</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=19199"/>
		<updated>2009-04-20T17:38:21Z</updated>

		<summary type="html">&lt;p&gt;Robhol: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;*[[createElement]]&lt;br /&gt;
*[[destroyElement]]&lt;br /&gt;
*[[cloneElement]]&lt;br /&gt;
*[[isElement]]&lt;br /&gt;
*[[getAllElementData]]&lt;br /&gt;
*[[getElementByID]]&lt;br /&gt;
*[[getElementByIndex]]&lt;br /&gt;
*[[getElementChild]]&lt;br /&gt;
*[[getElementChildren]]&lt;br /&gt;
*[[getElementChildrenCount]]&lt;br /&gt;
*[[getElementData]]&lt;br /&gt;
*[[getElementHealth]]&lt;br /&gt;
*[[getElementID]]&lt;br /&gt;
*[[getElementParent]]&lt;br /&gt;
*[[getElementsByType]]&lt;br /&gt;
*[[getElementType]]&lt;br /&gt;
*[[getRootElement]]&lt;br /&gt;
*[[isElementVisibleTo]]&lt;br /&gt;
*[[isElementWithinColShape]]&lt;br /&gt;
*[[getElementsWithinColShape]]&lt;br /&gt;
*[[getElementPosition]]&lt;br /&gt;
*[[getElementVelocity]]&lt;br /&gt;
*[[getElementInterior]]&lt;br /&gt;
*[[getElementDimension]]&lt;br /&gt;
*[[getElementZoneName]]&lt;br /&gt;
*[[isElementAttached]]&lt;br /&gt;
*[[getElementAttachedTo]]&lt;br /&gt;
*[[getAttachedElements]]&lt;br /&gt;
*[[getElementColShape]]&lt;br /&gt;
*[[getElementAlpha]]&lt;br /&gt;
*[[setElementData]]&lt;br /&gt;
*[[removeElementData]]&lt;br /&gt;
*[[setElementHealth]]&lt;br /&gt;
*[[setElementID]]&lt;br /&gt;
*[[setElementParent]]&lt;br /&gt;
*[[setElementVisibleTo]]&lt;br /&gt;
*[[clearElementVisibleTo]]&lt;br /&gt;
*[[setElementPosition]]&lt;br /&gt;
*[[setElementVelocity]]&lt;br /&gt;
*[[setElementInterior]]&lt;br /&gt;
*[[setElementDimension]]&lt;br /&gt;
{{Deprecated_feature|3|1.0|&lt;br /&gt;
*[[attachElementToElement]]&lt;br /&gt;
*[[detachElementFromElement]]&lt;br /&gt;
}}&lt;br /&gt;
*[[setElementAlpha]]&lt;br /&gt;
{{New feature|3|1.0|&lt;br /&gt;
*[[getElementModel]]&lt;br /&gt;
*[[setElementModel]]&lt;br /&gt;
*[[attachElements]]&lt;br /&gt;
*[[detachElements]]&lt;br /&gt;
*[[setElementAttachedOffsets]]&lt;br /&gt;
*[[getElementSyncer]]&lt;br /&gt;
*[[isElementInWater]]&lt;br /&gt;
}}&lt;/div&gt;</summary>
		<author><name>Robhol</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=IsElementInWater&amp;diff=19198</id>
		<title>IsElementInWater</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=IsElementInWater&amp;diff=19198"/>
		<updated>2009-04-20T17:37:19Z</updated>

		<summary type="html">&lt;p&gt;Robhol: Let there be light?&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__&lt;br /&gt;
{{Server client function}}&lt;br /&gt;
This function checks whether an [[element]] is submerged in water.&lt;br /&gt;
&lt;br /&gt;
==Syntax==&lt;br /&gt;
&amp;lt;section name=&amp;quot;Server and client&amp;quot; class=&amp;quot;both&amp;quot; show=&amp;quot;true&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;bool isElementInWater ( element theElement )&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Required Arguments===&lt;br /&gt;
* '''theElement''': The element to check.&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns ''true'' if the passed element is in water, ''false'' if it isn't, or if the element is invalid.&lt;br /&gt;
&amp;lt;/section&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
Creates a command that checks if the player is in water or not.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
function waterCheck(player)&lt;br /&gt;
    if isElementInWater(player) then&lt;br /&gt;
        outputChatBox(&amp;quot;Wet.&amp;quot;, player)&lt;br /&gt;
    else&lt;br /&gt;
        outputChatBox(&amp;quot;Dry.&amp;quot;, player)&lt;br /&gt;
    end&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
addCommandHandler(&amp;quot;check&amp;quot;, waterCheck)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{Element functions}}&lt;/div&gt;</summary>
		<author><name>Robhol</name></author>
	</entry>
</feed>