<?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=MrJax</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=MrJax"/>
	<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/wiki/Special:Contributions/MrJax"/>
	<updated>2026-04-28T20:52:08Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.39.3</generator>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=CreateExplosion&amp;diff=12114</id>
		<title>CreateExplosion</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=CreateExplosion&amp;diff=12114"/>
		<updated>2007-09-17T21:19:06Z</updated>

		<summary type="html">&lt;p&gt;MrJax: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__ &lt;br /&gt;
{{Server client function}}&lt;br /&gt;
Creates an explosion of a certain type at a specified point in the world.&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 createExplosion ( float x, float y, float z, int type [, player creator = nil, bool makeSound = true, float camShake = -1.0, bool damaging = true ] )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
&lt;br /&gt;
===Required Arguments=== &lt;br /&gt;
*'''x:''' A float value that specifies the X world coordinate where the explosion is created at.&lt;br /&gt;
*'''y:''' A float value that specifies the Y world coordinate where the explosion is created at.&lt;br /&gt;
*'''z:''' A float value that specifies the Z world coordinate where the explosion is created at.&lt;br /&gt;
*'''type:''' A integer specifying the explosion type. Valid types are:&lt;br /&gt;
{{Explosions}}&lt;br /&gt;
&lt;br /&gt;
===Optional Arguments===&lt;br /&gt;
*'''creator:''' The explosion's simulated creator, the [[player]] responsible for it. &lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns ''true'' if the explosion was created, ''false'' if invalid parameters were passed.&lt;br /&gt;
&lt;br /&gt;
==Example== &lt;br /&gt;
&amp;lt;section name=&amp;quot;Server&amp;quot; class=&amp;quot;server&amp;quot; show=&amp;quot;true&amp;quot;&amp;gt;&lt;br /&gt;
'''Example 1:''' This code will create an explosion at the player's position when they spawn.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;function explosionOnSpawn ( )&lt;br /&gt;
  -- get the spawned player's position&lt;br /&gt;
  local pX, pY, pZ = getElementPosition ( source )&lt;br /&gt;
  -- and create an explosion there, making him the creator&lt;br /&gt;
  createExplosion ( pX, pY, pZ, 6, source )&lt;br /&gt;
end&lt;br /&gt;
-- add this function as a handler for any player that spawns&lt;br /&gt;
addEventHandler ( &amp;quot;onPlayerSpawn&amp;quot;, getRootElement(), explosionOnSpawn )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Example 2:''' This example allows creation of claymore mines, which trigger and explode.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;function createClaymore ( creator )&lt;br /&gt;
	local x, y, z = getElementPosition ( creator )&lt;br /&gt;
	local claymoreObject = createObject ( 1945, x, y, z - 1, 0, 0, 90 ) --create an object which looks like a claymore&lt;br /&gt;
	local claymoreCol = createColSphere ( x, y, z, 1 ) --create a collision sphere with radius 1&lt;br /&gt;
	setElementData ( claymoreCol , &amp;quot;type&amp;quot;, &amp;quot;claymore&amp;quot; ) --store the type of colshape so it can be retrieved&lt;br /&gt;
	setElementData ( claymoreCol, &amp;quot;object&amp;quot;, claymoreObject ) --store the object of the claymore&lt;br /&gt;
	setElementData ( claymoreCol, &amp;quot;creatorPlayer&amp;quot;, creator ) --store the person who created it&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
function claymoreHit ( player )&lt;br /&gt;
	if getElementData ( source, &amp;quot;type&amp;quot; ) == &amp;quot;claymore&amp;quot; then --ensure its a claymore&lt;br /&gt;
		--retrieve the object associated to the claymore, and who created it&lt;br /&gt;
		local claymoreObject = getElementData ( source, &amp;quot;object&amp;quot; )&lt;br /&gt;
		local claymoreCreator = getElementData ( source, &amp;quot;creatorPlayer&amp;quot; )&lt;br /&gt;
		--get the position of the claymore&lt;br /&gt;
		local x, y, z = getElementPosition ( source )&lt;br /&gt;
		createExplosion ( x, y, z, 12, claymoreCreator ) --create an explosion, associated to the creator, of a small size at the col's position&lt;br /&gt;
		--destroy the claymore object, and the col shape so it doesnt trigger again.&lt;br /&gt;
		destroyElement ( claymoreObject )&lt;br /&gt;
		destroyElement ( source )&lt;br /&gt;
	end&lt;br /&gt;
end&lt;br /&gt;
addEventHandler ( &amp;quot;onColShapeHit&amp;quot;, getRootElement(), claymoreHit )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;/section&amp;gt;&lt;br /&gt;
&amp;lt;section name=&amp;quot;Client&amp;quot; class=&amp;quot;client&amp;quot;&amp;gt;&lt;br /&gt;
'''Example 3:''' This code will create an explosion for the local player when they spawn.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;function explosionOnSpawn ( )&lt;br /&gt;
  -- get the spawned player's position&lt;br /&gt;
  local pX, pY, pZ = getElementPosition ( source )&lt;br /&gt;
  -- and create an explosion there, making him the creator&lt;br /&gt;
  createExplosion ( pX, pY, pZ, 6, source )&lt;br /&gt;
end&lt;br /&gt;
-- add this function as a handler for any player that spawns&lt;br /&gt;
addEventHandler ( &amp;quot;onClientPlayerSpawn&amp;quot;, getLocalPlayer(), explosionOnSpawn )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;/section&amp;gt;&lt;br /&gt;
==See Also==&lt;br /&gt;
{{Explosion functions}}&lt;/div&gt;</summary>
		<author><name>MrJax</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Client_Scripting_Events&amp;diff=12025</id>
		<title>Client Scripting Events</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Client_Scripting_Events&amp;diff=12025"/>
		<updated>2007-09-16T09:14:48Z</updated>

		<summary type="html">&lt;p&gt;MrJax: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This is a list of client-side scripting events that currently exist. More will come soon.&lt;br /&gt;
&lt;br /&gt;
===Client Events===&lt;br /&gt;
void [[onClientResourceStart]] ( [[resource]] resource )&lt;br /&gt;
&lt;br /&gt;
void [[onClientResourceStop]] ( [[resource]] resource )&lt;br /&gt;
&lt;br /&gt;
void [[onClientElementDataChange]] ( string name )&lt;br /&gt;
&lt;br /&gt;
void [[onClientPlayerJoin]] ( void )&lt;br /&gt;
&lt;br /&gt;
void [[onClientPlayerQuit]] ( string reason )&lt;br /&gt;
&lt;br /&gt;
void [[onClientPlayerWeaponFire]] ( int weapon, int ammo, int ammoInClip, float hitX, float hitY, float hitZ, [[element]] hitElement )&lt;br /&gt;
&lt;br /&gt;
void [[onClientPlayerWeaponSwitch]] ( int previous, int current )&lt;br /&gt;
&lt;br /&gt;
void [[onClientPlayerTarget]] ( [[element]] target )&lt;br /&gt;
&lt;br /&gt;
void [[onClientPlayerDamage]] ( [[element]] attacker, int weapon, int bodypart )&lt;br /&gt;
&lt;br /&gt;
void [[onClientPlayerSpawn]] ( [[team]] hisTeam )&lt;br /&gt;
&lt;br /&gt;
void [[onClientPlayerWasted]] ( [[element]] attacker, int weapon, int bodypart )&lt;br /&gt;
&lt;br /&gt;
void [[onClientPlayerVehicleEnter]] ( [[vehicle]] theVehicle, int seat )&lt;br /&gt;
&lt;br /&gt;
void [[onClientPlayerVehicleExit]] ( [[vehicle]] theVehicle, int seat )&lt;br /&gt;
&lt;br /&gt;
void [[onClientPlayerChangeNick]] ( string oldNick )&lt;br /&gt;
&lt;br /&gt;
void [[onClientPlayerTask]] ( string priority, int type, string name )&lt;br /&gt;
&lt;br /&gt;
void [[onClientVehicleRespawn]] ( void )&lt;br /&gt;
&lt;br /&gt;
void [[onClientVehicleEnter]] ( [[player]] thePlayer, int seat )&lt;br /&gt;
&lt;br /&gt;
void [[onClientVehicleExit]] ( [[player]] thePlayer, int seat )&lt;br /&gt;
&lt;br /&gt;
void [[onClientVehicleStartEnter]] ( [[player]] thePlayer, int seat )&lt;br /&gt;
&lt;br /&gt;
void [[onClientVehicleStartExit]] ( [[player]] thePlayer, int seat )&lt;br /&gt;
&lt;br /&gt;
void [[onClientTrailerAttach]] ( [[vehicle]] towedBy )&lt;br /&gt;
&lt;br /&gt;
void [[onClientTrailerDetach]] ( [[vehicle]] towedBy )&lt;br /&gt;
&lt;br /&gt;
void [[onClientGUIClicked]] ( [[element]] theElement )&lt;br /&gt;
&lt;br /&gt;
void [[onClientGUIDoubleClicked]] ( [[element]] theElement )&lt;br /&gt;
&lt;br /&gt;
void [[onClientGUIChanged]] ( [[element]] theElement )&lt;br /&gt;
&lt;br /&gt;
void [[onClientGUIAccepted]] ( [[element]] theElement )&lt;br /&gt;
&lt;br /&gt;
void [[onClientGUIClose]] ( [[element]] theElement )&lt;br /&gt;
&lt;br /&gt;
void [[onClientGUIKeyDown]] ( [[element]] theElement )&lt;br /&gt;
&lt;br /&gt;
void [[onClientConsole]] ( text )&lt;br /&gt;
&lt;br /&gt;
void [[onClientRender]] ( )&lt;br /&gt;
&lt;br /&gt;
void [[onClientClick]] ( string button, string state, int absoluteX, int absoluteY, float worldX, float worldY, float worldZ, [[element]] clicked )&lt;br /&gt;
&lt;br /&gt;
void [[onClientDoubleClick]] ( string button, string state, float cursorX, float cursorY, float worldX, float worldY, float worldZ, [[element]] clicked )&lt;br /&gt;
&lt;br /&gt;
void [[onClientMouseMove]] ( int absoluteX, int absoluteY )&lt;br /&gt;
&lt;br /&gt;
void [[onClientCursorMove]] ( float cursorX, float cursorY, int absoluteX, int absoluteY, float worldX, float worldY, float worldZ )&lt;br /&gt;
&lt;br /&gt;
void [[onClientGUIMove]] ()&lt;br /&gt;
&lt;br /&gt;
void [[onClientGUISize]] ()&lt;br /&gt;
&lt;br /&gt;
void [[onClientColShapeHit]] ( [[entity]] theEntity, bool matchingDimension )&lt;br /&gt;
&lt;br /&gt;
void [[onClientColShapeLeave]] ( [[entity]] theEntity, bool matchingDimension )&lt;br /&gt;
&lt;br /&gt;
void [[onClientElementColShapeHit]] ( [[colshape]] theShape, bool matchingDimension )&lt;br /&gt;
&lt;br /&gt;
void [[onClientElementColShapeLeave]] ( [[colshape]] theShape, bool matchingDimension )&lt;/div&gt;</summary>
		<author><name>MrJax</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=GetPlayerTask&amp;diff=11725</id>
		<title>GetPlayerTask</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=GetPlayerTask&amp;diff=11725"/>
		<updated>2007-09-05T15:32:07Z</updated>

		<summary type="html">&lt;p&gt;MrJax: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Client function}}&lt;br /&gt;
__NOTOC__&lt;br /&gt;
This function is used to get the name of the current task of a certain type for a player.&lt;br /&gt;
&lt;br /&gt;
==Syntax==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
string getPlayerTask ( player thePlayer, string priority, int taskType, [int index = 0] )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Required Arguments===&lt;br /&gt;
*'''thePlayer''': The [[player]] whose task you want to retrieve.&lt;br /&gt;
*'''priority''': A string determining which set of tasks you want to retrieve it from. This must be either &amp;quot;primary&amp;quot; or &amp;quot;secondary&amp;quot;.&lt;br /&gt;
*'''taskType''': An integer value representing the task type (or slot) you want to get the task from. Types can be:&lt;br /&gt;
**'''PRIMARY TASKS'''&lt;br /&gt;
***'''0:''' TASK_PHYSICAL_RESPONSE&lt;br /&gt;
***'''1:''' TASK_EVENT_RESPONSE_TEMP&lt;br /&gt;
***'''2:''' TASK_EVENT_RESPONSE_NONTEMP&lt;br /&gt;
***'''3:''' TASK_PRIMARY&lt;br /&gt;
***'''4:''' TASK_DEFAULT&lt;br /&gt;
**'''SECONDARY TASKS'''&lt;br /&gt;
***'''0:''' TASK_SECONDARY_ATTACK&lt;br /&gt;
***'''1:''' TASK_SECONDARY_DUCK&lt;br /&gt;
***'''2:''' TASK_SECONDARY_SAY&lt;br /&gt;
***'''3:''' TASK_SECONDARY_FACIAL_COMPLEX&lt;br /&gt;
***'''4:''' TASK_SECONDARY_PARTIAL_ANIM&lt;br /&gt;
***'''5:''' TASK_SECONDARY_IK&lt;br /&gt;
&lt;br /&gt;
===Optional Arguments===&lt;br /&gt;
*'''index''': An integer value representing how many sub tasks to go through. -1 to get the simplest task, 0 to get the most complex task.&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns a string containing the name of a task. See [[list of player tasks]] for valid strings. Returns ''false'' if invalid arguments are specified or if there is no task of the type or index specified.&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
&amp;lt;section name=&amp;quot;Client&amp;quot; class=&amp;quot;client&amp;quot; show=&amp;quot;true&amp;quot;&amp;gt;&lt;br /&gt;
This example prints the name of a player's task to the chat when they use the &amp;quot;task&amp;quot; command in the console.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function myTask ( commandName, priority, taskType )&lt;br /&gt;
    task = getPlayerTask ( source, priority, tonumber(taskType) )&lt;br /&gt;
    taskName = &amp;quot;none&amp;quot;&lt;br /&gt;
    if ( task ) then&lt;br /&gt;
        taskName = task&lt;br /&gt;
    end&lt;br /&gt;
    outputChatBox ( getClientName ( source ) .. &amp;quot;'s &amp;quot; .. priority .. &amp;quot;(&amp;quot; .. taskType .. &amp;quot;) task is: &amp;quot; .. taskName )&lt;br /&gt;
end    &lt;br /&gt;
addCommandHandler ( &amp;quot;task&amp;quot;, myTask )&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>MrJax</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=BindKey&amp;diff=11534</id>
		<title>BindKey</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=BindKey&amp;diff=11534"/>
		<updated>2007-08-29T11:50:05Z</updated>

		<summary type="html">&lt;p&gt;MrJax: &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, which will be called when the key is pressed. Keys that are bound to actual keyboard keys are displayed and can be modified by the user from the settings window.&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;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 ( source, key, keyState, [ var arguments, ... ] )&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
:The values passed to this function are:&lt;br /&gt;
:*'''source:''' 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;
&amp;lt;section name=&amp;quot;Client&amp;quot; class=&amp;quot;client&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;bindKey ( string key, string keyState, string bindName, 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;
*'''bindName:''' The name for this key bind when it appears in the client's settings dialog.&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 ( key, 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;
===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 ( source, 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 ( source ) .. &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 ( source )&lt;br /&gt;
  bindKey ( source, &amp;quot;F1&amp;quot;, &amp;quot;down&amp;quot;,, funcInput )   -- bind the player's F1 down key&lt;br /&gt;
  bindKey ( source, &amp;quot;F1&amp;quot;, &amp;quot;up&amp;quot;, funcInput )     -- bind the player's F1 up key&lt;br /&gt;
  bindKey ( source, &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;false&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 ( source )&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>MrJax</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=BindKey&amp;diff=11533</id>
		<title>BindKey</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=BindKey&amp;diff=11533"/>
		<updated>2007-08-29T11:49:23Z</updated>

		<summary type="html">&lt;p&gt;MrJax: &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, which will be called when the key is pressed. Keys that are bound to actual keyboard keys are displayed and can be modified by the user from the settings window.&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;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 ( source, key, keyState, [ var arguments, ... ] )&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
:The values passed to this function are:&lt;br /&gt;
:*'''source:''' 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;
&amp;lt;section name=&amp;quot;Client&amp;quot; class=&amp;quot;client&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;bindKey ( string key, string keyState, string bindName, 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;
*'''bindName:''' The name for this key bind when it appears in the client's settings dialog.&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 ( key, 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;
===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 ( source, 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 ( source ) .. &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 ( source )&lt;br /&gt;
  bindKey ( source, &amp;quot;F1&amp;quot;, &amp;quot;down&amp;quot;, &amp;quot;&amp;quot;, funcInput )   -- bind the player's F1 down key&lt;br /&gt;
  bindKey ( source, &amp;quot;F1&amp;quot;, &amp;quot;up&amp;quot;, &amp;quot;&amp;quot;, funcInput )     -- bind the player's F1 up key&lt;br /&gt;
  bindKey ( source, &amp;quot;fire&amp;quot;, &amp;quot;both&amp;quot;, &amp;quot;&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;false&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 ( source )&lt;br /&gt;
  bindKey ( &amp;quot;F1&amp;quot;, &amp;quot;down&amp;quot;, &amp;quot;&amp;quot;, funcInput )   -- bind the player's F1 down key&lt;br /&gt;
  bindKey ( &amp;quot;F1&amp;quot;, &amp;quot;up&amp;quot;, &amp;quot;&amp;quot;, funcInput )     -- bind the player's F1 up key&lt;br /&gt;
  bindKey ( &amp;quot;fire&amp;quot;, &amp;quot;both&amp;quot;, &amp;quot;&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>MrJax</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Template:Player_functions&amp;diff=10069</id>
		<title>Template:Player functions</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Template:Player_functions&amp;diff=10069"/>
		<updated>2007-08-11T11:06:11Z</updated>

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

		<summary type="html">&lt;p&gt;MrJax: New page: __NOTOC__  {{Client function}} &amp;lt;!-- Describe in plain english what this function does. Don't go into details, just give an overview --&amp;gt; This function detects the vehicle a player is standi...&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__ &lt;br /&gt;
{{Client 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 detects the vehicle a player is standing on.&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;
element getPlayerContactElement ( player thePlayer )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
&lt;br /&gt;
===Required Arguments=== &lt;br /&gt;
&amp;lt;!-- List each argument one per line. This should be the argument's name as in the argument list above, NOT the argument's data type --&amp;gt;&lt;br /&gt;
*'''thePlayer:''' The player you want to get the vehicle he is touching from.&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 [[vehicle]] if the player is touching one, ''false'' if he is touching none or is a invalid player.&lt;br /&gt;
&lt;br /&gt;
==Example== &lt;br /&gt;
&amp;lt;!-- Explain what the example is in a single sentance --&amp;gt;&lt;br /&gt;
This example shows the name of the vehicle the player is standing on. It will output 'false' if he is not.&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;
local vehicle = getPlayerContactVehicle ( getLocalPlayer() )&lt;br /&gt;
local name = getVehicleName(vehicle)&lt;br /&gt;
outputChatBox(tostring(name))&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;
{{Player functions}}&lt;/div&gt;</summary>
		<author><name>MrJax</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Template:Client_player_functions&amp;diff=9971</id>
		<title>Template:Client player functions</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Template:Client_player_functions&amp;diff=9971"/>
		<updated>2007-08-07T21:09:26Z</updated>

		<summary type="html">&lt;p&gt;MrJax: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;* [[doesPlayerHaveJetPack]]&lt;br /&gt;
* [[isPlayerDead]]&lt;br /&gt;
* [[isPlayerDoingTask]]&lt;br /&gt;
* [[isPlayerDucked]]&lt;br /&gt;
* [[isPlayerInVehicle]]&lt;br /&gt;
* [[isPlayerMuted]]&lt;br /&gt;
* [[isPlayerOnGround]]&lt;br /&gt;
* [[isPlayerUnderWater]]&lt;br /&gt;
* [[getLocalPlayer]]&lt;br /&gt;
* [[getPlayerAmmoInClip]]&lt;br /&gt;
* [[getPlayerArmor]]&lt;br /&gt;
* [[getPlayerHealth]]&lt;br /&gt;
* [[getPlayerName]]&lt;br /&gt;
* [[getPlayerOccupiedVehicle]]&lt;br /&gt;
* [[getPlayerPing]]&lt;br /&gt;
* [[getPlayerTarget]]&lt;br /&gt;
* [[getPlayerTargetStart]]&lt;br /&gt;
* [[getPlayerTargetEnd]]&lt;br /&gt;
* [[getPlayerTargetRange]]&lt;br /&gt;
* [[getPlayerTargetCollision]]&lt;br /&gt;
* [[getPlayerTeam]]&lt;br /&gt;
* [[getPlayerTotalAmmo]]&lt;br /&gt;
* [[getPlayerTask]]&lt;br /&gt;
* [[getPlayerSimplestTask]]&lt;br /&gt;
* [[getPlayerStat]]&lt;br /&gt;
* [[getPlayerWeaponSlot]]&lt;br /&gt;
* [[getPlayerWeapon]]&lt;br /&gt;
* [[getPlayerContactElement]]&lt;br /&gt;
* [[setPlayerWeaponSlot]]&lt;br /&gt;
* [[setPlayerSkin]]&lt;br /&gt;
* [[showPlayerHudComponent]]&lt;/div&gt;</summary>
		<author><name>MrJax</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=ToggleAllControls&amp;diff=9921</id>
		<title>ToggleAllControls</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=ToggleAllControls&amp;diff=9921"/>
		<updated>2007-08-06T08:43:25Z</updated>

		<summary type="html">&lt;p&gt;MrJax: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__ &lt;br /&gt;
Enables or disables the use of all GTA controls for a specified player.&lt;br /&gt;
&lt;br /&gt;
==Syntax== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;bool toggleAllControls ( player thePlayer, bool enabled, [bool gtaContols=true, bool mtaControls=true] ) &amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
&lt;br /&gt;
===Required Arguments=== &lt;br /&gt;
*'''thePlayer:''' The player you wish to toggle the control ability of.&lt;br /&gt;
*'''enable:''' A boolean value representing whether or not the controls will be usable or not.&lt;br /&gt;
&lt;br /&gt;
==Example==  &lt;br /&gt;
This function will disable the use of all controls in order to freeze a player, which will be used every time someone enters a vehicle.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function freezeThisDude ( thePlayer, time )&lt;br /&gt;
  toggleAllControls ( thePlayer, false ) -- disable this players controls&lt;br /&gt;
  setTimer ( &amp;quot;toggleAllControls&amp;quot;, time, 1, thePlayer, true ) -- enable this players controls after the specified time&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
addEventHandler ( &amp;quot;onPlayerEnterVehicle&amp;quot;, root, &amp;quot;onPlayerEnterVehicle&amp;quot; )&lt;br /&gt;
function onPlayerEnterVehicle ( theVehicle, seat, jacked )&lt;br /&gt;
  freezeThisDude ( source, 5000 ) -- 'freeze' him for 5000ms/5secs&lt;br /&gt;
end&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{Input functions}}&lt;/div&gt;</summary>
		<author><name>MrJax</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=TextCreateTextItem&amp;diff=9799</id>
		<title>TextCreateTextItem</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=TextCreateTextItem&amp;diff=9799"/>
		<updated>2007-08-04T16:18:25Z</updated>

		<summary type="html">&lt;p&gt;MrJax: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__&lt;br /&gt;
This function creates a text item. A text item represents a single area of text, much like a label does in standard GUI programming. A text item can only be seen by players if it is added to a [[textdisplay]] using [[textDisplayAddText]]. Each text item can be added to multiple displays, if need be.&lt;br /&gt;
&lt;br /&gt;
==Syntax==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
 textitem textCreateTextItem ( [string text, float x, float y, string priority, int red = 255, int green = 0, int blue = 0, int alpha = 255, float scale = 1, string alignX = &amp;quot;left&amp;quot;, string alignY = &amp;quot;top&amp;quot;] )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Required Arguments===&lt;br /&gt;
&lt;br /&gt;
''None.''&lt;br /&gt;
&lt;br /&gt;
===Optional Arguments===&lt;br /&gt;
{{OptionalArg}}&lt;br /&gt;
* '''text''': A string of text you want to display&lt;br /&gt;
* '''x''': A floating point number between 0.0 and 1.0 indicating how far across the screen the text should be shown, as a percentage of the width, from the left hand side.&lt;br /&gt;
* '''y''': A floating point number between 0.0 and 1.0 indicating how far down the screen the text should be shown, as a percentage of the height, from the top.&lt;br /&gt;
* '''priority''': How important it is that this text should be up to date on client's screens. Valid values are: &amp;quot;low&amp;quot;, &amp;quot;medium&amp;quot;, &amp;quot;high&amp;quot; which are aliases for 0, 1 and 2 respectively.&lt;br /&gt;
* '''red''': A value between 0 and 255 indicating how red the text should be.&lt;br /&gt;
* '''green''': A value between 0 and 255 indicating how green the text should be.&lt;br /&gt;
* '''blue''': A value between 0 and 255 indicating how blue the text should be.&lt;br /&gt;
* '''alpha''': A value between 0 and 255 indicating how transparent the text should be, with 0 being fully transparent, and 255 being opaque.&lt;br /&gt;
* '''scale''': A floating point value indicating the scale of the text. The default is 1.0, which is around 12pt.&lt;br /&gt;
* '''alignX''': A string representing the X-alignment of the text. (&amp;quot;left&amp;quot;, &amp;quot;center&amp;quot;, &amp;quot;right&amp;quot;)&lt;br /&gt;
* '''alignY''': A string representing the Y-alignment of the text. (&amp;quot;top&amp;quot;, &amp;quot;center&amp;quot;, &amp;quot;bottom&amp;quot;)&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns a [[textitem]] object.&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
myDisplay = textCreateDisplay () --created display&lt;br /&gt;
textDisplayAddObserver ( myDisplay, myPlayer ) --made display visible to player&lt;br /&gt;
myTextItem = textCreateTextItem ( &amp;quot;Hello world!&amp;quot;, 0.5, 0.5 ) --created item for the display&lt;br /&gt;
textDisplayAddText ( myDisplay, myTextItem ) --added created item for display to display&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{Text functions}}&lt;/div&gt;</summary>
		<author><name>MrJax</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=TextCreateTextItem&amp;diff=9797</id>
		<title>TextCreateTextItem</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=TextCreateTextItem&amp;diff=9797"/>
		<updated>2007-08-04T16:11:12Z</updated>

		<summary type="html">&lt;p&gt;MrJax: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__&lt;br /&gt;
This function creates a text item. A text item represents a single area of text, much like a label does in standard GUI programming. A text item can only be seen by players if it is added to a [[textdisplay]] using [[textDisplayAddText]]. Each text item can be added to multiple displays, if need be.&lt;br /&gt;
&lt;br /&gt;
==Syntax==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
 textitem textCreateTextItem ( [string text, float x, float y, string priority, int red = 255, int green = 0, int blue = 0, int alpha = 255, float scale = 1, int alignX = 0, int alignY = 0] )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Required Arguments===&lt;br /&gt;
&lt;br /&gt;
''None.''&lt;br /&gt;
&lt;br /&gt;
===Optional Arguments===&lt;br /&gt;
{{OptionalArg}}&lt;br /&gt;
* '''text''': A string of text you want to display&lt;br /&gt;
* '''x''': A floating point number between 0.0 and 1.0 indicating how far across the screen the text should be shown, as a percentage of the width, from the left hand side.&lt;br /&gt;
* '''y''': A floating point number between 0.0 and 1.0 indicating how far down the screen the text should be shown, as a percentage of the height, from the top.&lt;br /&gt;
* '''priority''': How important it is that this text should be up to date on client's screens. Valid values are: &amp;quot;low&amp;quot;, &amp;quot;medium&amp;quot;, &amp;quot;high&amp;quot; which are aliases for 0, 1 and 2 respectively.&lt;br /&gt;
* '''red''': A value between 0 and 255 indicating how red the text should be.&lt;br /&gt;
* '''green''': A value between 0 and 255 indicating how green the text should be.&lt;br /&gt;
* '''blue''': A value between 0 and 255 indicating how blue the text should be.&lt;br /&gt;
* '''alpha''': A value between 0 and 255 indicating how transparent the text should be, with 0 being fully transparent, and 255 being opaque.&lt;br /&gt;
* '''scale''': A floating point value indicating the scale of the text. The default is 1.0, which is around 12pt.&lt;br /&gt;
* '''alignX''': An integer representing the X-alignment of the text. (0=LEFT,1=CENTER,2=RIGHT)&lt;br /&gt;
* '''alignY''': An integer representing the Y-alignment of the text. (0=TOP,1=CENTER,2=BOTTOM)&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns a [[textitem]] object.&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
myDisplay = textCreateDisplay () --created display&lt;br /&gt;
textDisplayAddObserver ( myDisplay, myPlayer ) --made display visible to player&lt;br /&gt;
myTextItem = textCreateTextItem ( &amp;quot;Hello world!&amp;quot;, 0.5, 0.5 ) --created item for the display&lt;br /&gt;
textDisplayAddText ( myDisplay, myTextItem ) --added created item for display to display&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{Text functions}}&lt;/div&gt;</summary>
		<author><name>MrJax</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=SetPlayerBlurLevel&amp;diff=9744</id>
		<title>SetPlayerBlurLevel</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=SetPlayerBlurLevel&amp;diff=9744"/>
		<updated>2007-08-04T12:19:54Z</updated>

		<summary type="html">&lt;p&gt;MrJax: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Syntax==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
bool setPlayerBlurLevel ( player thePlayer, int level )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;/div&gt;</summary>
		<author><name>MrJax</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=GetPlayerBlurLevel&amp;diff=9743</id>
		<title>GetPlayerBlurLevel</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=GetPlayerBlurLevel&amp;diff=9743"/>
		<updated>2007-08-04T12:19:44Z</updated>

		<summary type="html">&lt;p&gt;MrJax: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Syntax==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
int getPlayerBlurLevel ( player thePlayer )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;/div&gt;</summary>
		<author><name>MrJax</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Template:Player_functions&amp;diff=9742</id>
		<title>Template:Player functions</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Template:Player_functions&amp;diff=9742"/>
		<updated>2007-08-04T12:18:33Z</updated>

		<summary type="html">&lt;p&gt;MrJax: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;* [[addPlayerClothes]]&lt;br /&gt;
* [[canPlayerUseFunction]]&lt;br /&gt;
* [[doesPlayerHaveJetPack]]&lt;br /&gt;
* [[getPlayerArmor]]&lt;br /&gt;
* [[getPlayerClothes]]&lt;br /&gt;
* [[getPlayerCount]]&lt;br /&gt;
* [[getPlayerWeapon]]&lt;br /&gt;
* [[getPlayerWeaponSlot]]&lt;br /&gt;
* [[getPlayerAmmoInClip]]&lt;br /&gt;
* [[getPlayerTotalAmmo]]&lt;br /&gt;
* [[getPlayerFromNick]]&lt;br /&gt;
* [[getPlayerHealth]]&lt;br /&gt;
* [[getPlayerLevel]]&lt;br /&gt;
* [[getPlayerMoney]]&lt;br /&gt;
* [[getPlayerOccupiedVehicle]]&lt;br /&gt;
* [[getPlayerOccupiedVehicleSeat]]&lt;br /&gt;
* [[getPlayerPing]]&lt;br /&gt;
* [[getPlayerRotation]]&lt;br /&gt;
* [[getPlayerSkin]]&lt;br /&gt;
* [[getPlayerStat]]&lt;br /&gt;
* [[getPlayerTarget]]&lt;br /&gt;
* [[getPlayerTeam]]&lt;br /&gt;
* [[getRandomPlayer]]&lt;br /&gt;
* [[getPlayerWantedLevel]]&lt;br /&gt;
* [[givePlayerJetPack]]&lt;br /&gt;
* [[givePlayerMoney]]&lt;br /&gt;
* [[isPlayerDead]]&lt;br /&gt;
* [[isPlayerDucked]]&lt;br /&gt;
* [[isPlayerInVehicle]]&lt;br /&gt;
* [[isPlayerMuted]]&lt;br /&gt;
* [[isPlayerOnGround]]&lt;br /&gt;
* [[isPlayerInWater]]&lt;br /&gt;
* [[isPlayerMapForced]]&lt;br /&gt;
* [[getAlivePlayers]]&lt;br /&gt;
* [[getDeadPlayers]]&lt;br /&gt;
* [[getPlayerTask]]&lt;br /&gt;
* [[getPlayerSimplestTask]]&lt;br /&gt;
* [[isPlayerDoingTask]]&lt;br /&gt;
* [[getPlayerNametagText]]&lt;br /&gt;
* [[getPlayerNametagColor]]&lt;br /&gt;
* [[isPlayerNametagShowing]]&lt;br /&gt;
* [[getPlayerFightingStyle]]&lt;br /&gt;
* [[getPlayerGravity]]&lt;br /&gt;
* [[getPlayerBlurLevel]]&lt;br /&gt;
* [[killPlayer]]&lt;br /&gt;
* [[removePlayerClothes]]&lt;br /&gt;
* [[removePlayerFromVehicle]]&lt;br /&gt;
* [[removePlayerJetPack]]&lt;br /&gt;
* [[setPlayerArmor]]&lt;br /&gt;
* [[setPlayerHealth]]&lt;br /&gt;
* [[setPlayerMoney]]&lt;br /&gt;
* [[setPlayerRotation]]&lt;br /&gt;
* [[setPlayerSkin]]&lt;br /&gt;
* [[setPlayerStat]]&lt;br /&gt;
* [[setPlayerWeaponSlot]]&lt;br /&gt;
* [[setPlayerWantedLevel]]&lt;br /&gt;
* [[showPlayerHudComponent]]&lt;br /&gt;
* [[spawnPlayer]]&lt;br /&gt;
* [[spawnPlayerAtSpawnpoint]]&lt;br /&gt;
* [[takePlayerMoney]]&lt;br /&gt;
* [[warpPlayerIntoVehicle]]&lt;br /&gt;
* [[forcePlayerMap]]&lt;br /&gt;
* [[setPlayerNametagText]]&lt;br /&gt;
* [[setPlayerNametagColor]]&lt;br /&gt;
* [[setPlayerNametagShowing]]&lt;br /&gt;
* [[setPlayerFightingStyle]]&lt;br /&gt;
* [[setPlayerGravity]]&lt;br /&gt;
* [[setPlayerBlurLevel]]&lt;/div&gt;</summary>
		<author><name>MrJax</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=CreateProjectile&amp;diff=9656</id>
		<title>CreateProjectile</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=CreateProjectile&amp;diff=9656"/>
		<updated>2007-08-03T09:54:38Z</updated>

		<summary type="html">&lt;p&gt;MrJax: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__&lt;br /&gt;
This creates a projectile of the specified type on the specified coords.&lt;br /&gt;
&lt;br /&gt;
==Usage==&lt;br /&gt;
Client-side only.&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 createProjectile ( element creator, int weapon, [ float posX, float posY, float posZ, float force = 1.0, element target = nil, float rotX, float rotY, float rotZ, float velX, float velY, float velZ ] )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Required Arguments==&lt;br /&gt;
*'''creator:''' The [[element]] representing creator of the projectile. In case you want the projectile to be synced for everybody creator must be [[getLocalPlayer]]().&lt;br /&gt;
*'''weapon:''' [[int]] representing the projectile weapon ID. Valid IDs are:&lt;br /&gt;
{{Projectiles}}&lt;br /&gt;
&lt;br /&gt;
==Optional Arguments==&lt;br /&gt;
{{OptionalArg}}&lt;br /&gt;
*'''posX''','''posY''','''posZ''': [[float]] starting coordinates for the projectile. They are coordinates of creator by default.&lt;br /&gt;
*'''force''': [[float]] representing the starting force of the projectile.&lt;br /&gt;
*'''target''': [[element]] target used for heat seeking rockets.&lt;br /&gt;
*'''rotX''','''rotY''','''rotZ''': [[float]] starting rotation for the projectile.&lt;br /&gt;
*'''velX''','''velY''','''velZ''': [[float]] starting velocity for the projectile.&lt;br /&gt;
&lt;br /&gt;
==Returns==&lt;br /&gt;
Returns ''true'' if projectile creation was succesfull. Returns ''false'' if unable to create a projectile (wrong weapon ID or projectiles limit was reached).&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
This example makes a rocket minigun (minigun shooting with rockets).&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
-- This function gets triggered everytime player shoots.&lt;br /&gt;
function onClientPlayerWeaponFireFunc(weapon,ammo,ammoInClip,hitX,hitY,hitZ,hitElement)&lt;br /&gt;
	if source == getLocalPlayer() and weapon == 38 then -- if source is a local player and he uses minigun...&lt;br /&gt;
		if not createProjectile(getLocalPlayer(),19,getElementPosition(getLocalPlayer()),200) then -- then we either create a projectile...&lt;br /&gt;
			outputChatBox ( &amp;quot;Rocket minigun overheated! Give it a rest pal!&amp;quot;, source ) -- or if projectile limit is reached we output player a chat message&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
end&lt;br /&gt;
-- Don't forget to add the onClientPlayerWeaponFireFunc function as a handler for onClientPlayerWeaponFire.&lt;br /&gt;
addEventHandler(&amp;quot;onClientPlayerWeaponFire&amp;quot;,getRootElement(),onClientPlayerWeaponFireFunc)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;/div&gt;</summary>
		<author><name>MrJax</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=IsElementOnScreen&amp;diff=9192</id>
		<title>IsElementOnScreen</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=IsElementOnScreen&amp;diff=9192"/>
		<updated>2007-07-24T18:27:33Z</updated>

		<summary type="html">&lt;p&gt;MrJax: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Syntax== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
bool isElementOnScreen ( element theElement )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;/div&gt;</summary>
		<author><name>MrJax</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Template:Client_element_functions&amp;diff=9191</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=9191"/>
		<updated>2007-07-24T18:26:32Z</updated>

		<summary type="html">&lt;p&gt;MrJax: &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;
*[[getElementInterior]]&lt;br /&gt;
*[[getElementsByType]]&lt;br /&gt;
*[[getElementType]]&lt;br /&gt;
*[[getElementParent]]&lt;br /&gt;
*[[getElementPosition]]&lt;br /&gt;
*[[getElementRadius]]&lt;br /&gt;
*[[getElementVelocity]]&lt;br /&gt;
*[[getRootElement]]&lt;br /&gt;
*[[isElement]]&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;
*[[setElementData]]&lt;br /&gt;
*[[setElementDimension]]&lt;br /&gt;
*[[setElementInterior]]&lt;br /&gt;
*[[setElementPosition]]&lt;br /&gt;
*[[setElementVelocity]]&lt;br /&gt;
*[[attachElementToElement]]&lt;br /&gt;
*[[detachElementFromElement]]&lt;br /&gt;
*[[getElementByID]]&lt;/div&gt;</summary>
		<author><name>MrJax</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=SetElementAlpha&amp;diff=9190</id>
		<title>SetElementAlpha</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=SetElementAlpha&amp;diff=9190"/>
		<updated>2007-07-24T17:09:04Z</updated>

		<summary type="html">&lt;p&gt;MrJax: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Syntax== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
bool setElementAlpha ( element theElement, int alpha )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;/div&gt;</summary>
		<author><name>MrJax</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=GetElementAlpha&amp;diff=9189</id>
		<title>GetElementAlpha</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=GetElementAlpha&amp;diff=9189"/>
		<updated>2007-07-24T17:08:56Z</updated>

		<summary type="html">&lt;p&gt;MrJax: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Syntax== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
int getElementAlpha ( element theElement )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;/div&gt;</summary>
		<author><name>MrJax</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Template:Element_functions&amp;diff=9188</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=9188"/>
		<updated>2007-07-24T17:07:44Z</updated>

		<summary type="html">&lt;p&gt;MrJax: &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;
*[[getElementByID]]&lt;br /&gt;
*[[getElementByIndex]]&lt;br /&gt;
*[[getElementChild]]&lt;br /&gt;
*[[getElementChildren]]&lt;br /&gt;
*[[getElementChildrenCount]]&lt;br /&gt;
*[[getElementData]]&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;
*[[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;
*[[attachElementToElement]]&lt;br /&gt;
*[[detachElementFromElement]]&lt;br /&gt;
*[[setElementAlpha]]&lt;/div&gt;</summary>
		<author><name>MrJax</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Template:Vehicle_functions&amp;diff=9186</id>
		<title>Template:Vehicle functions</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Template:Vehicle_functions&amp;diff=9186"/>
		<updated>2007-07-23T12:13:21Z</updated>

		<summary type="html">&lt;p&gt;MrJax: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;*[[blowVehicle]]&lt;br /&gt;
*[[createVehicle]]&lt;br /&gt;
*[[fixVehicle]]&lt;br /&gt;
*[[respawnVehicle]]&lt;br /&gt;
&lt;br /&gt;
*[[getVehicleColor]] &lt;br /&gt;
*[[getVehicleHealth]]&lt;br /&gt;
*[[getVehicleID]]&lt;br /&gt;
*[[getVehicleIDFromName]]&lt;br /&gt;
*[[getVehicleMaxPassengers]]&lt;br /&gt;
*[[getVehicleName]]&lt;br /&gt;
*[[getVehicleOccupant]]&lt;br /&gt;
*[[getVehicleController]]&lt;br /&gt;
*[[getVehicleRotation]] &lt;br /&gt;
*[[getVehicleTurnVelocity]]&lt;br /&gt;
*[[getVehicleTurretPosition]]&lt;br /&gt;
*[[getVehiclesOfType]]&lt;br /&gt;
*[[getVehicleUpgradeOnSlot]]&lt;br /&gt;
*[[getVehicleUpgrades]]&lt;br /&gt;
*[[getVehicleUpgradeSlotName]]&lt;br /&gt;
*[[getVehicleCompatibleUpgrades]]&lt;br /&gt;
*[[getVehicleDoorState]]&lt;br /&gt;
*[[getVehicleWheelStates]]&lt;br /&gt;
*[[getVehicleLightState]]&lt;br /&gt;
*[[getVehicleOverrideLights]]&lt;br /&gt;
*[[getVehicleTowedByVehicle]]&lt;br /&gt;
*[[getVehicleTowingVehicle]]&lt;br /&gt;
*[[getVehiclePaintjob]]&lt;br /&gt;
*[[getVehicleSirensOn]]&lt;br /&gt;
*[[getVehicleLandingGearDown]]&lt;br /&gt;
&lt;br /&gt;
*[[isVehicleFrozen]]&lt;br /&gt;
*[[isVehicleLocked]]&lt;br /&gt;
*[[isVehicleFuelTankExplodable]]&lt;br /&gt;
&lt;br /&gt;
*[[setVehicleColor]]&lt;br /&gt;
*[[setVehicleFrozen]]&lt;br /&gt;
*[[setVehicleHealth]]&lt;br /&gt;
*[[setVehicleLocked]]&lt;br /&gt;
*[[setVehicleDoorsUndamageable]]&lt;br /&gt;
*[[setVehicleRotation]]&lt;br /&gt;
*[[setVehicleTurnSpeed]]&lt;br /&gt;
*[[addVehicleUpgrade]]&lt;br /&gt;
*[[removeVehicleUpgrade]]&lt;br /&gt;
*[[setVehicleDoorState]]&lt;br /&gt;
*[[setVehicleWheelStates]]&lt;br /&gt;
*[[setVehicleLightState]]&lt;br /&gt;
*[[toggleVehicleRespawn]]&lt;br /&gt;
*[[setVehicleOverrideLights]]&lt;br /&gt;
*[[attachTrailerToVehicle]]&lt;br /&gt;
*[[detachTrailerFromVehicle]]&lt;br /&gt;
*[[setVehiclePaintjob]]&lt;br /&gt;
*[[setVehicleEngineState]]&lt;br /&gt;
*[[setVehicleFuelTankExplodable]]&lt;br /&gt;
*[[setVehicleSirensOn]]&lt;br /&gt;
*[[setVehicleLandingGearDown]]&lt;br /&gt;
*[[setVehicleMaxPassengers]]&lt;br /&gt;
*[[setVehicleDamageProof]]&lt;/div&gt;</summary>
		<author><name>MrJax</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=SetVehicleDamageProof&amp;diff=9185</id>
		<title>SetVehicleDamageProof</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=SetVehicleDamageProof&amp;diff=9185"/>
		<updated>2007-07-23T12:13:03Z</updated>

		<summary type="html">&lt;p&gt;MrJax: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Syntax== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
bool setVehicleDamageProof ( vehicle theVehicle, bool damageProof )              &lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;/div&gt;</summary>
		<author><name>MrJax</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=UnbanIP&amp;diff=9183</id>
		<title>UnbanIP</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=UnbanIP&amp;diff=9183"/>
		<updated>2007-07-22T11:34:03Z</updated>

		<summary type="html">&lt;p&gt;MrJax: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__ &lt;br /&gt;
This function will unban the specified IP.&lt;br /&gt;
&lt;br /&gt;
==Syntax== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
bool unbanIP ( string ipToUnban, [player unbanningPlayer = null] )         &lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
&lt;br /&gt;
===Required Arguments=== &lt;br /&gt;
*'''unbanningPlayer:''' The who is unbanning the ip&lt;br /&gt;
*'''ipToUnban:''' The IP that should be unbanned&lt;br /&gt;
&lt;br /&gt;
===Optional Arguments=== &lt;br /&gt;
{{OptionalArg}} &lt;br /&gt;
(none)&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns ''true'' if the unban was successful, ''false'' otherwise.&lt;br /&gt;
&lt;br /&gt;
==Example== &lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{Admin_functions}}&lt;/div&gt;</summary>
		<author><name>MrJax</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=SetMarkerType&amp;diff=9182</id>
		<title>SetMarkerType</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=SetMarkerType&amp;diff=9182"/>
		<updated>2007-07-22T09:06:50Z</updated>

		<summary type="html">&lt;p&gt;MrJax: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__&lt;br /&gt;
This function changes a marker's type.&lt;br /&gt;
&lt;br /&gt;
==Syntax==&lt;br /&gt;
server:&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;bool setMarkerType ( marker theMarker, string markerType )&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
client:&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;marker setMarkerType ( marker theMarker, string markerType )&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Required Arguments===&lt;br /&gt;
* '''theMarker''': A [[marker]] element referencing the specified marker.&lt;br /&gt;
* '''markerType''': A string denoting the marker type. Valid values are:&lt;br /&gt;
{{Marker types}}&lt;br /&gt;
&lt;br /&gt;
==Returns==&lt;br /&gt;
Returns ''true'' if the marker type was changed, ''false'' if it wasn't or marker values were invalid.&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
This function changes all existing markers' type to the specified one.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function changeAllMarkersType ( newMarkerType )&lt;br /&gt;
	-- we store a table with all markers&lt;br /&gt;
	local allMarkers = getElementsByType( &amp;quot;marker&amp;quot; )&lt;br /&gt;
	-- for each marker in it,&lt;br /&gt;
	for index, aMarker in ipairs(allMarkers) do&lt;br /&gt;
		-- set its type to the one passed to this function&lt;br /&gt;
		setMarkerType( aMarker, newMarkerType )&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;
{{Marker functions}}&lt;/div&gt;</summary>
		<author><name>MrJax</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=SpawnPlayer&amp;diff=9177</id>
		<title>SpawnPlayer</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=SpawnPlayer&amp;diff=9177"/>
		<updated>2007-07-21T12:00:29Z</updated>

		<summary type="html">&lt;p&gt;MrJax: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__ &lt;br /&gt;
This function spawns the player at an arbitary point on the map.&lt;br /&gt;
&lt;br /&gt;
==Syntax==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
bool spawnPlayer ( player thePlayer, float x, float y, float z, [ int rotation = 0, int skinID = 0, int interior = 0, int dimension = 0, team theTeam = nil ] )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Required Arguments===&lt;br /&gt;
*'''x:''' The x co-ordinate to spawn the player at&lt;br /&gt;
*'''y:''' The y co-ordinate to spawn the player at&lt;br /&gt;
*'''z:''' The z co-ordinate to spawn the player at&lt;br /&gt;
*'''rotation:''' rotation of the player on spawn&lt;br /&gt;
*'''skinID:''' players skin on spawn&lt;br /&gt;
&lt;br /&gt;
===Optional Arguments===&lt;br /&gt;
*'''interior:''' interior the player will spawn into&lt;br /&gt;
*'''dimension:''' The ID of the [[dimension]] that the player should be in&lt;br /&gt;
*'''theTeam:''' the team the player will join&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns ''true'' if the player was spawned successfully, ''false'' otherwise.&lt;br /&gt;
&lt;br /&gt;
==Example== &lt;br /&gt;
This example spawns all the players in the map at the first spawnpoint there is.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
-- Get a table of all the players&lt;br /&gt;
players = getElementsByType ( &amp;quot;player&amp;quot; )&lt;br /&gt;
-- Go through every player&lt;br /&gt;
for playerKey, playerValue in ipairs(players) do&lt;br /&gt;
	-- Spawn them at the desired coordinates&lt;br /&gt;
	spawnPlayer ( playerValue, 0.0, 0.0, 0.0, 90.0, 7 )&lt;br /&gt;
end&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{Player_functions}}&lt;/div&gt;</summary>
		<author><name>MrJax</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Template:Client_element_functions&amp;diff=8582</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=8582"/>
		<updated>2007-06-09T00:07:20Z</updated>

		<summary type="html">&lt;p&gt;MrJax: &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;
*[[getElementInterior]]&lt;br /&gt;
*[[getElementsByType]]&lt;br /&gt;
*[[getElementType]]&lt;br /&gt;
*[[getElementParent]]&lt;br /&gt;
*[[getElementPosition]]&lt;br /&gt;
*[[getElementRadius]]&lt;br /&gt;
*[[getElementVelocity]]&lt;br /&gt;
*[[getRootElement]]&lt;br /&gt;
*[[isElement]]&lt;br /&gt;
*[[isElementWithinColShape]]&lt;br /&gt;
*[[getElementsWithinColShape]]&lt;br /&gt;
*[[isElementAttached]]&lt;br /&gt;
*[[getElementAttachedTo]]&lt;br /&gt;
*[[getAttachedElements]]&lt;br /&gt;
*[[getElementDistanceFromCentreOfMassToBaseOfModel]]&lt;br /&gt;
*[[setElementData]]&lt;br /&gt;
*[[setElementDimension]]&lt;br /&gt;
*[[setElementInterior]]&lt;br /&gt;
*[[setElementPosition]]&lt;br /&gt;
*[[setElementVelocity]]&lt;br /&gt;
*[[attachElementToElement]]&lt;br /&gt;
*[[detachElementFromElement]]&lt;/div&gt;</summary>
		<author><name>MrJax</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=CreateProjectile&amp;diff=8581</id>
		<title>CreateProjectile</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=CreateProjectile&amp;diff=8581"/>
		<updated>2007-06-09T00:03:12Z</updated>

		<summary type="html">&lt;p&gt;MrJax: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Syntax==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
bool createProjectile ( element creator, int weapon, [ float x = x, float y = y, float z = z, float force = 1.0, element target = nil ] )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;/div&gt;</summary>
		<author><name>MrJax</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=CreateProjectile&amp;diff=8580</id>
		<title>CreateProjectile</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=CreateProjectile&amp;diff=8580"/>
		<updated>2007-06-09T00:02:47Z</updated>

		<summary type="html">&lt;p&gt;MrJax: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Syntax==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
bool createProjectile ( element creator, int weapon, [ float x=x, float y=y, float z=z, float force=1.0, element target=nil ] )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;/div&gt;</summary>
		<author><name>MrJax</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=CreateProjectile&amp;diff=8579</id>
		<title>CreateProjectile</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=CreateProjectile&amp;diff=8579"/>
		<updated>2007-06-09T00:02:02Z</updated>

		<summary type="html">&lt;p&gt;MrJax: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Syntax==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
bool createProjectile ( element creator, int weapon, [ float x, float y, float z, float force, element target ] )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;/div&gt;</summary>
		<author><name>MrJax</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=SetWaveHeight&amp;diff=8578</id>
		<title>SetWaveHeight</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=SetWaveHeight&amp;diff=8578"/>
		<updated>2007-06-09T00:01:27Z</updated>

		<summary type="html">&lt;p&gt;MrJax: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Syntax==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
bool setWaveHeight ( float height )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;/div&gt;</summary>
		<author><name>MrJax</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=GetWaveHeight&amp;diff=8577</id>
		<title>GetWaveHeight</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=GetWaveHeight&amp;diff=8577"/>
		<updated>2007-06-09T00:01:16Z</updated>

		<summary type="html">&lt;p&gt;MrJax: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Syntax==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
float getWaveHeight ( void )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;/div&gt;</summary>
		<author><name>MrJax</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=GetWorldFromScreenPosition&amp;diff=8576</id>
		<title>GetWorldFromScreenPosition</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=GetWorldFromScreenPosition&amp;diff=8576"/>
		<updated>2007-06-09T00:01:03Z</updated>

		<summary type="html">&lt;p&gt;MrJax: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Syntax==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
float float float getWorldFromScreenPosition ( float x, float y )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;/div&gt;</summary>
		<author><name>MrJax</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=GetScreenFromWorldPosition&amp;diff=8575</id>
		<title>GetScreenFromWorldPosition</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=GetScreenFromWorldPosition&amp;diff=8575"/>
		<updated>2007-06-09T00:00:44Z</updated>

		<summary type="html">&lt;p&gt;MrJax: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Syntax==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
float float getScreenFromWorldPosition ( float x, float y, float z )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;/div&gt;</summary>
		<author><name>MrJax</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Template:Client_world_functions&amp;diff=8574</id>
		<title>Template:Client world functions</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Template:Client_world_functions&amp;diff=8574"/>
		<updated>2007-06-09T00:00:06Z</updated>

		<summary type="html">&lt;p&gt;MrJax: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;*[[getGameSpeed]]&lt;br /&gt;
*[[getGravity]]&lt;br /&gt;
*[[getGroundPosition]]&lt;br /&gt;
*[[getScreenFromWorldPosition]]&lt;br /&gt;
*[[getTime]]&lt;br /&gt;
*[[getWaterLevel]]&lt;br /&gt;
*[[getWeather]]&lt;br /&gt;
*[[getWorldFromScreenPosition]]&lt;br /&gt;
*[[getZoneName]]&lt;br /&gt;
*[[isLineOfSightClear]]&lt;br /&gt;
*[[processLineOfSight]]&lt;br /&gt;
*[[getWaveHeight]]&lt;br /&gt;
&lt;br /&gt;
*[[setGameSpeed]]&lt;br /&gt;
*[[setGravity]]&lt;br /&gt;
*[[setSkyGradient]]&lt;br /&gt;
*[[setTime]]&lt;br /&gt;
*[[setWeather]]&lt;br /&gt;
*[[setWeatherBlended]]&lt;br /&gt;
*[[resetSkyGradient]]&lt;br /&gt;
*[[testLineAgainstWater]]&lt;br /&gt;
*[[setWaveHeight]]&lt;/div&gt;</summary>
		<author><name>MrJax</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=CreateProjectile&amp;diff=8573</id>
		<title>CreateProjectile</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=CreateProjectile&amp;diff=8573"/>
		<updated>2007-06-08T23:59:12Z</updated>

		<summary type="html">&lt;p&gt;MrJax: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Syntax==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
bool createProjectile ( element creator, int weapon, float x, float y, float z, float force, element target )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;/div&gt;</summary>
		<author><name>MrJax</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Template:Client_projectile_functions&amp;diff=8572</id>
		<title>Template:Client projectile functions</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Template:Client_projectile_functions&amp;diff=8572"/>
		<updated>2007-06-08T23:59:01Z</updated>

		<summary type="html">&lt;p&gt;MrJax: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;*[[createProjectile]]&lt;/div&gt;</summary>
		<author><name>MrJax</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=ShowChat&amp;diff=8571</id>
		<title>ShowChat</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=ShowChat&amp;diff=8571"/>
		<updated>2007-06-08T23:58:43Z</updated>

		<summary type="html">&lt;p&gt;MrJax: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Syntax==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
bool showChat ( bool show )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;/div&gt;</summary>
		<author><name>MrJax</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=GetElementDistanceFromCentreOfMassToBaseOfModel&amp;diff=8570</id>
		<title>GetElementDistanceFromCentreOfMassToBaseOfModel</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=GetElementDistanceFromCentreOfMassToBaseOfModel&amp;diff=8570"/>
		<updated>2007-06-08T23:58:29Z</updated>

		<summary type="html">&lt;p&gt;MrJax: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Syntax==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
float getElementDistanceFromCentreOfMassToBaseOfModel ( element theElement )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;/div&gt;</summary>
		<author><name>MrJax</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Template:Client_projectile_functions&amp;diff=8569</id>
		<title>Template:Client projectile functions</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Template:Client_projectile_functions&amp;diff=8569"/>
		<updated>2007-06-08T23:57:18Z</updated>

		<summary type="html">&lt;p&gt;MrJax: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Syntax==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
bool createProjectile ( element creator, int weapon, float x, float y, float z, float force, element target )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;/div&gt;</summary>
		<author><name>MrJax</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Client_Scripting_Functions&amp;diff=8568</id>
		<title>Client Scripting Functions</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Client_Scripting_Functions&amp;diff=8568"/>
		<updated>2007-06-08T23:53:46Z</updated>

		<summary type="html">&lt;p&gt;MrJax: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This page lists all the '''client-side''' scripting functions that have been implemented and are available as native functions from the Deathmatch mod. To request a function or event, use [[Requested Functions and Events]]&lt;br /&gt;
__TOC__&lt;br /&gt;
'''Please check all the client side functions work and mark them on this page - [[Temp_Log]], the list on that page should be upto date with newly added functions copied from the server with the same syntax.'''&lt;br /&gt;
&lt;br /&gt;
==Audio functions==&lt;br /&gt;
{{Client_audio_functions}}&lt;br /&gt;
&lt;br /&gt;
==Blip functions==&lt;br /&gt;
{{Client_blip_functions}}&lt;br /&gt;
&lt;br /&gt;
==Camera functions==&lt;br /&gt;
{{Client_camera_functions}}&lt;br /&gt;
&lt;br /&gt;
==Collision shape functions==&lt;br /&gt;
{{Client_collision_shape_functions}}&lt;br /&gt;
&lt;br /&gt;
==Element functions==&lt;br /&gt;
{{Client_element_functions}}&lt;br /&gt;
&lt;br /&gt;
==Event functions==&lt;br /&gt;
{{Client_event_functions}}&lt;br /&gt;
&lt;br /&gt;
==Explosion functions==&lt;br /&gt;
{{Client_explosion_functions}}&lt;br /&gt;
&lt;br /&gt;
==GUI functions==&lt;br /&gt;
{{GUI_functions}}&lt;br /&gt;
&lt;br /&gt;
==Input functions==&lt;br /&gt;
{{Client_input_functions}}&lt;br /&gt;
&lt;br /&gt;
==Marker functions==&lt;br /&gt;
{{Client_marker_functions}}&lt;br /&gt;
&lt;br /&gt;
==Object functions==&lt;br /&gt;
{{Client_object_functions}}&lt;br /&gt;
&lt;br /&gt;
==Output functions==&lt;br /&gt;
{{Client_output_functions}}&lt;br /&gt;
&lt;br /&gt;
==Pickup functions==&lt;br /&gt;
{{Client_pickup_functions}}&lt;br /&gt;
&lt;br /&gt;
==Player functions==&lt;br /&gt;
{{Client_player_functions}}&lt;br /&gt;
&lt;br /&gt;
==Projectile functions==&lt;br /&gt;
{{Client_projectile_functions}}&lt;br /&gt;
&lt;br /&gt;
==Radar-area functions==&lt;br /&gt;
{{Client_radar-area_functions}}&lt;br /&gt;
&lt;br /&gt;
==Resource functions==&lt;br /&gt;
{{Client_resource_functions}}&lt;br /&gt;
&lt;br /&gt;
==Team functions==&lt;br /&gt;
{{Client_team_functions}}&lt;br /&gt;
&lt;br /&gt;
==Utility functions==&lt;br /&gt;
{{Client_utility_functions}}&lt;br /&gt;
&lt;br /&gt;
==Vehicle functions==&lt;br /&gt;
{{Client_vehicle_functions}}&lt;br /&gt;
&lt;br /&gt;
==Weapon functions==&lt;br /&gt;
{{Client_weapon_functions}}&lt;br /&gt;
&lt;br /&gt;
==World functions==&lt;br /&gt;
{{Client_world_functions}}&lt;br /&gt;
&lt;br /&gt;
==XML functions==&lt;br /&gt;
{{Client_xml_functions}}&lt;/div&gt;</summary>
		<author><name>MrJax</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Template:Client_output_functions&amp;diff=8565</id>
		<title>Template:Client output functions</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Template:Client_output_functions&amp;diff=8565"/>
		<updated>2007-06-08T21:09:29Z</updated>

		<summary type="html">&lt;p&gt;MrJax: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;* [[outputChatBox]]&lt;br /&gt;
* [[outputConsole]]&lt;br /&gt;
* [[showChat]]&lt;/div&gt;</summary>
		<author><name>MrJax</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Template:Client_world_functions&amp;diff=8562</id>
		<title>Template:Client world functions</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Template:Client_world_functions&amp;diff=8562"/>
		<updated>2007-06-08T18:40:46Z</updated>

		<summary type="html">&lt;p&gt;MrJax: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;*[[getGameSpeed]]&lt;br /&gt;
*[[getGravity]]&lt;br /&gt;
*[[getGroundPosition]]&lt;br /&gt;
*[[getScreenFromWorldPosition]]&lt;br /&gt;
*[[getTime]]&lt;br /&gt;
*[[getWaterLevel]]&lt;br /&gt;
*[[getWeather]]&lt;br /&gt;
*[[getWorldFromScreenPosition]]&lt;br /&gt;
*[[getZoneName]]&lt;br /&gt;
*[[getWaveHeight]]&lt;br /&gt;
*[[isLineOfSightClear]]&lt;br /&gt;
*[[processLineOfSight]]&lt;br /&gt;
*[[getWaveHeight]]&lt;br /&gt;
&lt;br /&gt;
*[[setGameSpeed]]&lt;br /&gt;
*[[setGravity]]&lt;br /&gt;
*[[setSkyGradient]]&lt;br /&gt;
*[[setTime]]&lt;br /&gt;
*[[setWeather]]&lt;br /&gt;
*[[setWeatherBlended]]&lt;br /&gt;
*[[resetSkyGradient]]&lt;br /&gt;
*[[testLineAgainstWater]]&lt;br /&gt;
*[[setWaveHeight]]&lt;/div&gt;</summary>
		<author><name>MrJax</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Template:World_functions&amp;diff=8561</id>
		<title>Template:World functions</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Template:World_functions&amp;diff=8561"/>
		<updated>2007-06-08T18:40:12Z</updated>

		<summary type="html">&lt;p&gt;MrJax: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;*[[getGameSpeed]]&lt;br /&gt;
*[[getGravity]]&lt;br /&gt;
*[[getTime]]&lt;br /&gt;
*[[getWeather]]&lt;br /&gt;
*[[getZoneName]]&lt;br /&gt;
*[[getWaveHeight]]&lt;br /&gt;
&lt;br /&gt;
*[[setGameSpeed]]&lt;br /&gt;
*[[setGravity]]&lt;br /&gt;
*[[setTime]]&lt;br /&gt;
*[[setWeather]]&lt;br /&gt;
*[[setWeatherBlended]]&lt;br /&gt;
*[[setWaveHeight]]&lt;/div&gt;</summary>
		<author><name>MrJax</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=OnClientPlayerWeaponSwitch&amp;diff=8550</id>
		<title>OnClientPlayerWeaponSwitch</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=OnClientPlayerWeaponSwitch&amp;diff=8550"/>
		<updated>2007-06-06T20:41:33Z</updated>

		<summary type="html">&lt;p&gt;MrJax: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:Incomplete Event]]&lt;br /&gt;
&lt;br /&gt;
__NOTOC__ &lt;br /&gt;
This event is blahblah and is used for blahblah.&lt;br /&gt;
&lt;br /&gt;
==Syntax== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
void onClientPlayerWeaponSwitch ( int previous, int current )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
&lt;br /&gt;
==Example== &lt;br /&gt;
This example does...&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
--This line does...&lt;br /&gt;
blabhalbalhb --abababa&lt;br /&gt;
--This line does this...&lt;br /&gt;
mooo&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;/div&gt;</summary>
		<author><name>MrJax</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Client_Scripting_Events&amp;diff=8549</id>
		<title>Client Scripting Events</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Client_Scripting_Events&amp;diff=8549"/>
		<updated>2007-06-06T20:40:47Z</updated>

		<summary type="html">&lt;p&gt;MrJax: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This is a list of client-side scripting events that currently exist. More will come soon.&lt;br /&gt;
&lt;br /&gt;
===Client Events===&lt;br /&gt;
void [[onClientResourceStart]] ( [[resource]] resource )&lt;br /&gt;
&lt;br /&gt;
void [[onClientResourceStop]] ( [[resource]] resource )&lt;br /&gt;
&lt;br /&gt;
void [[onClientElementDataChange]] ( string name )&lt;br /&gt;
&lt;br /&gt;
void [[onClientPlayerJoin]] ( void )&lt;br /&gt;
&lt;br /&gt;
void [[onClientPlayerQuit]] ( string reason )&lt;br /&gt;
&lt;br /&gt;
void [[onClientPlayerWeaponFire]] ( int weapon, int ammo, int ammoInClip, float hitX, float hitY, float hitZ, [[element]] hitElement )&lt;br /&gt;
&lt;br /&gt;
void [[onClientPlayerWeaponSwitch]] ( int previous, int current )&lt;br /&gt;
&lt;br /&gt;
void [[onClientPlayerTarget]] ( [[element]] target )&lt;br /&gt;
&lt;br /&gt;
void [[onClientPlayerDamage]] ( [[element]] attacker, int weapon, int bodypart )&lt;br /&gt;
&lt;br /&gt;
void [[onClientPlayerSpawn]] ( [[team]] hisTeam )&lt;br /&gt;
&lt;br /&gt;
void [[onClientPlayerWasted]] ( [[element]] attacker, int weapon, int bodypart )&lt;br /&gt;
&lt;br /&gt;
void [[onClientPlayerVehicleEnter]] ( [[vehicle]] theVehicle, int seat )&lt;br /&gt;
&lt;br /&gt;
void [[onClientPlayerVehicleExit]] ( [[vehicle]] theVehicle, int seat )&lt;br /&gt;
&lt;br /&gt;
void [[onClientPlayerChangeNick]] ( string oldNick )&lt;br /&gt;
&lt;br /&gt;
void [[onClientPlayerTask]] ( string priority, int type, string name )&lt;br /&gt;
&lt;br /&gt;
void [[onClientVehicleRespawn]] ( void )&lt;br /&gt;
&lt;br /&gt;
void [[onClientVehicleEnter]] ( [[player]] thePlayer, int seat )&lt;br /&gt;
&lt;br /&gt;
void [[onClientVehicleExit]] ( [[player]] thePlayer, int seat )&lt;br /&gt;
&lt;br /&gt;
void [[onClientVehicleStartEnter]] ( [[player]] thePlayer, int seat )&lt;br /&gt;
&lt;br /&gt;
void [[onClientVehicleStartExit]] ( [[player]] thePlayer, int seat )&lt;br /&gt;
&lt;br /&gt;
void [[onClientTrailerAttach]] ( [[vehicle]] towedBy )&lt;br /&gt;
&lt;br /&gt;
void [[onClientTrailerDetach]] ( [[vehicle]] towedBy )&lt;br /&gt;
&lt;br /&gt;
void [[onClientGUIClicked]] ( [[element]] theElement )&lt;br /&gt;
&lt;br /&gt;
void [[onClientGUIDoubleClicked]] ( [[element]] theElement )&lt;br /&gt;
&lt;br /&gt;
void [[onClientGUIChanged]] ( [[element]] theElement )&lt;br /&gt;
&lt;br /&gt;
void [[onClientGUIAccepted]] ( [[element]] theElement )&lt;br /&gt;
&lt;br /&gt;
void [[onClientGUIClose]] ( [[element]] theElement )&lt;br /&gt;
&lt;br /&gt;
void [[onClientGUIKeyDown]] ( [[element]] theElement )&lt;br /&gt;
&lt;br /&gt;
void [[onClientConsole]] ( text )&lt;br /&gt;
&lt;br /&gt;
void [[onClientRender]] ( )&lt;br /&gt;
&lt;br /&gt;
void [[onClientClick]] ( string button, string state, float cursorX, float cursorY, float worldX, float worldY, float worldZ, [[element]] clicked )&lt;br /&gt;
&lt;br /&gt;
void [[onClientCursorMove]] ( float cursorX, float cursorY, int absoluteX, int absoluteY, float worldX, float worldY, float worldZ )&lt;br /&gt;
&lt;br /&gt;
void [[onClientColShapeHit]] ( [[entity]] theEntity, bool matchingDimension )&lt;br /&gt;
&lt;br /&gt;
void [[onClientColShapeLeave]] ( [[entity]] theEntity, bool matchingDimension )&lt;br /&gt;
&lt;br /&gt;
void [[onClientElementColShapeHit]] ( [[colshape]] theShape, bool matchingDimension )&lt;br /&gt;
&lt;br /&gt;
void [[onClientElementColShapeLeave]] ( [[colshape]] theShape, bool matchingDimension )&lt;/div&gt;</summary>
		<author><name>MrJax</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Template:Client_player_functions&amp;diff=8548</id>
		<title>Template:Client player functions</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Template:Client_player_functions&amp;diff=8548"/>
		<updated>2007-06-06T20:34:56Z</updated>

		<summary type="html">&lt;p&gt;MrJax: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;* [[doesPlayerHaveJetPack]]&lt;br /&gt;
* [[isPlayerDead]]&lt;br /&gt;
* [[isPlayerDoingTask]]&lt;br /&gt;
* [[isPlayerDucked]]&lt;br /&gt;
* [[isPlayerInVehicle]]&lt;br /&gt;
* [[isPlayerMuted]]&lt;br /&gt;
* [[isPlayerOnGround]]&lt;br /&gt;
* [[isPlayerUnderWater]]&lt;br /&gt;
* [[getLocalPlayer]]&lt;br /&gt;
* [[getPlayerAmmoInClip]]&lt;br /&gt;
* [[getPlayerArmor]]&lt;br /&gt;
* [[getPlayerHealth]]&lt;br /&gt;
* [[getPlayerName]]&lt;br /&gt;
* [[getPlayerOccupiedVehicle]]&lt;br /&gt;
* [[getPlayerPing]]&lt;br /&gt;
* [[getPlayerTarget]]&lt;br /&gt;
* [[getPlayerTargetStart]]&lt;br /&gt;
* [[getPlayerTargetEnd]]&lt;br /&gt;
* [[getPlayerTargetRange]]&lt;br /&gt;
* [[getPlayerTargetCollision]]&lt;br /&gt;
* [[getPlayerTeam]]&lt;br /&gt;
* [[getPlayerTotalAmmo]]&lt;br /&gt;
* [[getPlayerTask]]&lt;br /&gt;
* [[getPlayerSimplestTask]]&lt;br /&gt;
* [[getPlayerStat]]&lt;br /&gt;
* [[getPlayerWeaponSlot]]&lt;br /&gt;
* [[getPlayerWeapon]]&lt;br /&gt;
* [[getPlayerContactVehicle]]&lt;br /&gt;
* [[setPlayerWeaponSlot]]&lt;br /&gt;
* [[setPlayerSkin]]&lt;br /&gt;
* [[showPlayerHudComponent]]&lt;/div&gt;</summary>
		<author><name>MrJax</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Server_Scripting_Events&amp;diff=8539</id>
		<title>Server Scripting Events</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Server_Scripting_Events&amp;diff=8539"/>
		<updated>2007-06-06T17:27:21Z</updated>

		<summary type="html">&lt;p&gt;MrJax: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This is a list of server-side scripting events that currently exist. More will come soon.&lt;br /&gt;
&lt;br /&gt;
===Server Events===&lt;br /&gt;
void [[onClientLogin]] ( [[account]] previous_account, [[account]] current_account, bool auto-login )&lt;br /&gt;
&lt;br /&gt;
void [[onClientLogout]] ( [[account]] previous_account, [[account]] current_account )&lt;br /&gt;
&lt;br /&gt;
void [[onColShapeHit]] ( [[player]] player, bool matchingDimension )&lt;br /&gt;
&lt;br /&gt;
void [[onColShapeLeave]] ( [[player]] player, bool matchingDimension )&lt;br /&gt;
&lt;br /&gt;
void [[onConsole]] ( string message )&lt;br /&gt;
&lt;br /&gt;
void [[onElementDataChange]] ( string name )&lt;br /&gt;
&lt;br /&gt;
void [[onElementColShapeHit]] ( [[colshape]] hitcolshape, bool matchingDimension )&lt;br /&gt;
&lt;br /&gt;
void [[onElementColShapeLeave]] ( [[colshape]] leftcolshape, bool matchingDimension )&lt;br /&gt;
&lt;br /&gt;
void [[onElementClicked]] ( string button, string state, [[player]] clicker, float posX, float posY, float posZ )&lt;br /&gt;
&lt;br /&gt;
void [[onMarkerHit]] ( [[player]] hitplayer, bool matchingDimension )&lt;br /&gt;
&lt;br /&gt;
void [[onMarkerLeave]] ( [[player]] leftplayer, bool matchingDimension )&lt;br /&gt;
&lt;br /&gt;
void [[onPickupSpawn]] ()&lt;br /&gt;
&lt;br /&gt;
void [[onPickupHit]] ( [[player]] player, bool matchingDimension )&lt;br /&gt;
&lt;br /&gt;
void [[onPickupLeave]] ( [[player]] player, bool matchingDimension )&lt;br /&gt;
&lt;br /&gt;
void [[onPickupUse]] ( [[player]] player )&lt;br /&gt;
&lt;br /&gt;
void [[onPlayerChat]] ( string message, int type )&lt;br /&gt;
&lt;br /&gt;
void [[onPlayerDamage]] ( [[element]] attacker, int attackerweapon, int bodypart, float loss )&lt;br /&gt;
&lt;br /&gt;
void [[onPlayerJoin]] ()&lt;br /&gt;
&lt;br /&gt;
void [[onPlayerQuit]] ( string reason )&lt;br /&gt;
&lt;br /&gt;
void [[onPlayerSpawn]] ( [[spawnpoint]] spawnpoint, team )&lt;br /&gt;
&lt;br /&gt;
void [[onPlayerWasted]] ( int ammo, [[element]] killer, int killerweapon, int bodypart )&lt;br /&gt;
&lt;br /&gt;
void [[onPlayerTarget]] ( [[element]] targetedElement )&lt;br /&gt;
&lt;br /&gt;
void [[onPlayerEnterVehicle]] ( [[vehicle]] vehicle, int seat, [[player]] jacked )&lt;br /&gt;
&lt;br /&gt;
void [[onPlayerExitVehicle]] ( [[vehicle]] vehicle, int seat, [[player]] jacker )&lt;br /&gt;
&lt;br /&gt;
void [[onPlayerWeaponSwitch]] ( int previousWeaponID, int currentWeaponID )&lt;br /&gt;
&lt;br /&gt;
void [[onPlayerTask]] ( string priority, int type, string name )&lt;br /&gt;
&lt;br /&gt;
void [[onPlayerMarkerHit]] ( [[marker]] hitmarker, bool matchingDimension )&lt;br /&gt;
&lt;br /&gt;
void [[onPlayerMarkerLeave]] ( [[marker]] leftmarker, bool matchingDimension )&lt;br /&gt;
&lt;br /&gt;
void [[onPlayerPickupHit]] ( [[pickup]] hitpickup, bool matchingDimension )&lt;br /&gt;
&lt;br /&gt;
void [[onPlayerPickupLeave]] ( [[pickup]] leftpickup, bool matchingDimension )&lt;br /&gt;
&lt;br /&gt;
void [[onPlayerPickupUse]] ( [[pickup]] usedpickup )&lt;br /&gt;
&lt;br /&gt;
void [[onPlayerClick]] ( string button, string state, [[element]] clickedElement, float posX, float posY, float posZ )&lt;br /&gt;
&lt;br /&gt;
void [[onResourceStart]] ( [[resource]] resource )&lt;br /&gt;
&lt;br /&gt;
void [[onResourceStop]] ( [[resource]] resource )&lt;br /&gt;
&lt;br /&gt;
void [[onSpawnpointUse]] ( [[player]] player )&lt;br /&gt;
&lt;br /&gt;
void [[onTrailerAttach]] ( [[vehicle]] towedBy )&lt;br /&gt;
&lt;br /&gt;
void [[onTrailerDetach]] ( [[vehicle]] towedBy )&lt;br /&gt;
&lt;br /&gt;
void [[onVehicleDamage]] ( float loss )&lt;br /&gt;
&lt;br /&gt;
void [[onVehicleRespawn]] ( bool explosion )&lt;br /&gt;
&lt;br /&gt;
void [[onVehicleStartEnter]] ( [[player]] player, int seat, [[player]] jacked )&lt;br /&gt;
&lt;br /&gt;
void [[onVehicleStartExit]] ( [[player]] player, int seat, [[player]] jacker )&lt;br /&gt;
&lt;br /&gt;
void [[onVehicleEnter]] ( [[player]] player, int seat, [[player]] jacked )&lt;br /&gt;
&lt;br /&gt;
void [[onVehicleExit]] ( [[player]] player, int seat, [[player]] jacker )&lt;br /&gt;
&lt;br /&gt;
void [[onVehicleExplode]] ()&lt;/div&gt;</summary>
		<author><name>MrJax</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=OnClientClick&amp;diff=8538</id>
		<title>OnClientClick</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=OnClientClick&amp;diff=8538"/>
		<updated>2007-06-06T16:40:14Z</updated>

		<summary type="html">&lt;p&gt;MrJax: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:Incomplete Event]]&lt;br /&gt;
&lt;br /&gt;
__NOTOC__ &lt;br /&gt;
This event is blahblah and is used for blahblah.&lt;br /&gt;
&lt;br /&gt;
==Syntax== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
void onClientClick ( string button, string state, cursorX, cursorY, worldX, worldY, worldZ, element clickedWorld, element clickedGUI )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
&lt;br /&gt;
==Example== &lt;br /&gt;
This example does...&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
--This line does...&lt;br /&gt;
blabhalbalhb --abababa&lt;br /&gt;
--This line does this...&lt;br /&gt;
mooo&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;/div&gt;</summary>
		<author><name>MrJax</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Template:Client_player_functions&amp;diff=8461</id>
		<title>Template:Client player functions</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Template:Client_player_functions&amp;diff=8461"/>
		<updated>2007-06-01T09:06:01Z</updated>

		<summary type="html">&lt;p&gt;MrJax: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;* [[doesPlayerHaveJetPack]]&lt;br /&gt;
* [[isPlayerDead]]&lt;br /&gt;
* [[isPlayerDoingTask]]&lt;br /&gt;
* [[isPlayerDucked]]&lt;br /&gt;
* [[isPlayerInVehicle]]&lt;br /&gt;
* [[isPlayerMuted]]&lt;br /&gt;
* [[isPlayerOnGround]]&lt;br /&gt;
* [[isPlayerUnderWater]]&lt;br /&gt;
* [[getLocalPlayer]]&lt;br /&gt;
* [[getPlayerAmmoInClip]]&lt;br /&gt;
* [[getPlayerArmor]]&lt;br /&gt;
* [[getPlayerHealth]]&lt;br /&gt;
* [[getPlayerName]]&lt;br /&gt;
* [[getPlayerOccupiedVehicle]]&lt;br /&gt;
* [[getPlayerPing]]&lt;br /&gt;
* [[getPlayerTarget]]&lt;br /&gt;
* [[getPlayerTargetStart]]&lt;br /&gt;
* [[getPlayerTargetEnd]]&lt;br /&gt;
* [[getPlayerTargetRange]]&lt;br /&gt;
* [[getPlayerTargetCollision]]&lt;br /&gt;
* [[getPlayerTeam]]&lt;br /&gt;
* [[getPlayerTotalAmmo]]&lt;br /&gt;
* [[getPlayerTask]]&lt;br /&gt;
* [[getPlayerSimplestTask]]&lt;br /&gt;
* [[getPlayerStat]]&lt;br /&gt;
* [[getPlayerWeaponSlot]]&lt;br /&gt;
* [[getPlayerContactVehicle]]&lt;br /&gt;
* [[setPlayerWeaponSlot]]&lt;br /&gt;
* [[setPlayerSkin]]&lt;br /&gt;
* [[showPlayerHudComponent]]&lt;/div&gt;</summary>
		<author><name>MrJax</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Template:Client_input_functions&amp;diff=8450</id>
		<title>Template:Client input functions</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Template:Client_input_functions&amp;diff=8450"/>
		<updated>2007-05-31T20:57:06Z</updated>

		<summary type="html">&lt;p&gt;MrJax: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;*[[bindKey]]&lt;br /&gt;
*[[unbindKey]]&lt;br /&gt;
*[[getKeyState]]&lt;br /&gt;
*[[getControlState]]&lt;br /&gt;
*[[isControlEnabled]]&lt;br /&gt;
*[[setControlState]]&lt;br /&gt;
*[[toggleControl]]&lt;br /&gt;
*[[toggleAllControls]]&lt;br /&gt;
*[[getCursorPosition]]&lt;br /&gt;
*[[addCommandHandler]]&lt;br /&gt;
*[[removeCommandHandler]]&lt;br /&gt;
*[[executeCommandHandler]]&lt;/div&gt;</summary>
		<author><name>MrJax</name></author>
	</entry>
</feed>