<?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=Aeron</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=Aeron"/>
	<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/wiki/Special:Contributions/Aeron"/>
	<updated>2026-05-17T17:36:48Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.39.3</generator>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=GetPlayerTarget&amp;diff=4516</id>
		<title>GetPlayerTarget</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=GetPlayerTarget&amp;diff=4516"/>
		<updated>2006-08-22T08:53:07Z</updated>

		<summary type="html">&lt;p&gt;Aeron: /* Syntax */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__&lt;br /&gt;
This function is used to get the current entity a [[player]] is targeting.&lt;br /&gt;
&lt;br /&gt;
==Syntax==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
float getPlayerTarget ( player thePlayer )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Required Arguments===&lt;br /&gt;
*'''element''': The [[player]] whose target you want to retrieve.&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns the [[element]] that's being targeted, or ''false'' if there isn't one.&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
This example blows up any vehicle a specified player targets (aims at)&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function playerTargetCheck ( thePlayer ) -- called on a timer&lt;br /&gt;
  target = getPlayerTarget ( thePlayer ) -- get the current target of the player&lt;br /&gt;
  if ( target ) then -- if there was a target&lt;br /&gt;
    if ( getElementType ( target ) == &amp;quot;vehicle&amp;quot; ) then -- if the target is a vehicle&lt;br /&gt;
      blowVehicle ( target ) -- blow the vehicle&lt;br /&gt;
    end&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;
{{Player functions}}&lt;/div&gt;</summary>
		<author><name>Aeron</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=GetElementData&amp;diff=4300</id>
		<title>GetElementData</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=GetElementData&amp;diff=4300"/>
		<updated>2006-08-14T10:54:46Z</updated>

		<summary type="html">&lt;p&gt;Aeron: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Elements can contain data values. These are accessable via names, and their value can be retrieved using [[getElementData]] and set using [[setElementData]]. These values are also loaded from the attributes in the XML map files, and as such can provide a powerful way to store and retrieve data in XML for each element.&lt;br /&gt;
&lt;br /&gt;
==Syntax==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;var getElementData ( element theElement, string name )&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
This example will return the version of the map, generally this will be ''2.0'' in the final release.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;map = getRootElement ( )&lt;br /&gt;
mapVersion = getElementData ( map, &amp;quot;version&amp;quot; )&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{Element functions}}&lt;/div&gt;</summary>
		<author><name>Aeron</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=GetObjectModel&amp;diff=4238</id>
		<title>GetObjectModel</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=GetObjectModel&amp;diff=4238"/>
		<updated>2006-08-13T15:44:42Z</updated>

		<summary type="html">&lt;p&gt;Aeron: /* Example */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__ &lt;br /&gt;
This function retrieves the model ID of a specified object&lt;br /&gt;
&lt;br /&gt;
==Syntax== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
int getObjectModel ( element object )       &lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
&lt;br /&gt;
===Required Arguments=== &lt;br /&gt;
*'''object:''' The object which you wish to retrieve the model ID of&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns an integer of the object ID. &lt;br /&gt;
&lt;br /&gt;
==Example== &lt;br /&gt;
This example destroys a haystack when a player targets it&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
addEventHandler ( &amp;quot;onPlayerTargeted&amp;quot;, root, &amp;quot;onPlayerTargeted&amp;quot; )&lt;br /&gt;
function onPlayerTargeted ( element )&lt;br /&gt;
    if ( getElementType ( element ) == &amp;quot;object&amp;quot; ) and ( getObjectModel ( element ) == 3374 ) then&lt;br /&gt;
        destroyElement ( element )&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;
{{Object functions}}&lt;/div&gt;</summary>
		<author><name>Aeron</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=User:Aeron&amp;diff=3845</id>
		<title>User:Aeron</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=User:Aeron&amp;diff=3845"/>
		<updated>2006-07-05T14:44:21Z</updated>

		<summary type="html">&lt;p&gt;Aeron: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Plx find seagull model eAi!!!!&lt;/div&gt;</summary>
		<author><name>Aeron</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=CreateMarker&amp;diff=2708</id>
		<title>CreateMarker</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=CreateMarker&amp;diff=2708"/>
		<updated>2006-05-19T11:13:57Z</updated>

		<summary type="html">&lt;p&gt;Aeron: /* Example */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__&lt;br /&gt;
This function creates a marker and returns a handle to the created marker. If it fails, it will return false.&lt;br /&gt;
&lt;br /&gt;
A marker is a 3D model in the world that can highlight a particular point or area, often used to instruct players where to go to perform actions such as entering buildings.&lt;br /&gt;
&lt;br /&gt;
See also [[createCheckpoint]].&lt;br /&gt;
&lt;br /&gt;
==Syntax==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
marker createMarker ( float x, float y, float z, [string type, int size, int r, int g, int b, int a] )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Required Arguments===&lt;br /&gt;
* '''x''': A floating point number representing the X coordinate on the map.&lt;br /&gt;
* '''y''': A floating point number representing the Y coordinate on the map.&lt;br /&gt;
* '''z''': A floating point number representing the Z coordinate on the map.&lt;br /&gt;
* '''type''': The visual type of the marker to be created. Possible values:&lt;br /&gt;
** '''&amp;quot;checkpoint&amp;quot;''': Checkpoint&lt;br /&gt;
** '''&amp;quot;ring&amp;quot;''': Ring (doughnut-shaped)&lt;br /&gt;
** '''&amp;quot;cylinder&amp;quot;''': Cylinder&lt;br /&gt;
** '''&amp;quot;arrow&amp;quot;''': Animated arrow pointing down&lt;br /&gt;
** '''&amp;quot;corona&amp;quot;''': A glowing area&lt;br /&gt;
* '''size''': The diameter of the marker to be created, in meters.&lt;br /&gt;
* '''r''': An integer number representing the amount of red to use in the colouring of the marker (0 - 255).&lt;br /&gt;
* '''g''': An integer number representing the amount of green to use in the colouring of the marker (0 - 255).&lt;br /&gt;
* '''b''': An integer number representing the amount of blue to use in the colouring of the marker (0 - 255).&lt;br /&gt;
* '''a''': An integer number representing the amount of alpha to use in the colouring of the marker (0 - 255).&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
''Example 1:'' This example creates a marker at the player's position when they type !createmarker in the chat box.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
addEventHandler ( &amp;quot;onPlayerChat&amp;quot;, getRootElement(), &amp;quot;onPlayerChat&amp;quot; )&lt;br /&gt;
function onPlayerChat ( chat )&lt;br /&gt;
	if ( strtok ( chat, 1, 32 ) == &amp;quot;!createmarker&amp;quot; ) then&lt;br /&gt;
		x, y, z = getPlayerPosition ( source )&lt;br /&gt;
		createMarker ( x, y, z, 0, &amp;quot;checkpoint&amp;quot;, 255, 0, 0, 255 )&lt;br /&gt;
		outputChatBox ( &amp;quot;You got a red marker&amp;quot;, source )&lt;br /&gt;
	end&lt;br /&gt;
end&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
''Example 2:'' Create a marker at the coordinates 0, 0, 20:&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
createMarker ( 0, 0, 20 )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;/div&gt;</summary>
		<author><name>Aeron</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=CreateMarker&amp;diff=2707</id>
		<title>CreateMarker</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=CreateMarker&amp;diff=2707"/>
		<updated>2006-05-19T11:13:30Z</updated>

		<summary type="html">&lt;p&gt;Aeron: /* Syntax */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__&lt;br /&gt;
This function creates a marker and returns a handle to the created marker. If it fails, it will return false.&lt;br /&gt;
&lt;br /&gt;
A marker is a 3D model in the world that can highlight a particular point or area, often used to instruct players where to go to perform actions such as entering buildings.&lt;br /&gt;
&lt;br /&gt;
See also [[createCheckpoint]].&lt;br /&gt;
&lt;br /&gt;
==Syntax==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
marker createMarker ( float x, float y, float z, [string type, int size, int r, int g, int b, int a] )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Required Arguments===&lt;br /&gt;
* '''x''': A floating point number representing the X coordinate on the map.&lt;br /&gt;
* '''y''': A floating point number representing the Y coordinate on the map.&lt;br /&gt;
* '''z''': A floating point number representing the Z coordinate on the map.&lt;br /&gt;
* '''type''': The visual type of the marker to be created. Possible values:&lt;br /&gt;
** '''&amp;quot;checkpoint&amp;quot;''': Checkpoint&lt;br /&gt;
** '''&amp;quot;ring&amp;quot;''': Ring (doughnut-shaped)&lt;br /&gt;
** '''&amp;quot;cylinder&amp;quot;''': Cylinder&lt;br /&gt;
** '''&amp;quot;arrow&amp;quot;''': Animated arrow pointing down&lt;br /&gt;
** '''&amp;quot;corona&amp;quot;''': A glowing area&lt;br /&gt;
* '''size''': The diameter of the marker to be created, in meters.&lt;br /&gt;
* '''r''': An integer number representing the amount of red to use in the colouring of the marker (0 - 255).&lt;br /&gt;
* '''g''': An integer number representing the amount of green to use in the colouring of the marker (0 - 255).&lt;br /&gt;
* '''b''': An integer number representing the amount of blue to use in the colouring of the marker (0 - 255).&lt;br /&gt;
* '''a''': An integer number representing the amount of alpha to use in the colouring of the marker (0 - 255).&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
''Example 1:'' This example creates a marker at the player's position when they type !createmarker in the chat box.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
addEventHandler ( &amp;quot;onPlayerChat&amp;quot;, getRootElement(), &amp;quot;onPlayerChat&amp;quot; )&lt;br /&gt;
function onPlayerChat ( chat )&lt;br /&gt;
	if ( strtok ( chat, 1, 32 ) == &amp;quot;!createmarker&amp;quot; ) then&lt;br /&gt;
		x, y, z = getPlayerPosition ( source )&lt;br /&gt;
		createMarker ( x, y, z, 0, 1, 255, 0, 0, 255 )&lt;br /&gt;
		outputChatBox ( &amp;quot;You got a red marker&amp;quot;, source )&lt;br /&gt;
	end&lt;br /&gt;
end&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
''Example 2:'' Create a marker at the coordinates 0, 0, 20:&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
createMarker ( 0, 0, 20 )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;/div&gt;</summary>
		<author><name>Aeron</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Server_Scripting_Functions&amp;diff=2516</id>
		<title>Server Scripting Functions</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Server_Scripting_Functions&amp;diff=2516"/>
		<updated>2006-05-18T15:04:39Z</updated>

		<summary type="html">&lt;p&gt;Aeron: /* Utility functions */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This page lists all the scripting functions that have been implemented and are available as native functions from the Deathmatch mod. To request a function or event, use [[Requested Functions and Events]]&lt;br /&gt;
&lt;br /&gt;
Please note that the scripting functions can now be extended by loading in dynamic modules that provide new functionality, such as MySQL database access. These scripting functions are non-native and require the module to be loaded in order to work.&lt;br /&gt;
&lt;br /&gt;
Head over to [[Module functions]] for a list of non-native functions and modules that are available.&lt;br /&gt;
&lt;br /&gt;
==Blip functions==&lt;br /&gt;
[[blip]] [[createBlip]] ( [[float]] x, [[float]] y, [[float]] z, [ [[int]] icon=0, [[int]] size=2, [[int]] r=255, [[int]] g=0, [[int]] b=0, [[int]] a=255, visibleTo=[[getRootElement]]() ] )&lt;br /&gt;
&lt;br /&gt;
[[blip]] [[createBlipAttachedTo]] ( [[entity]] entity, [ [[int]] icon=0, [[int]] size=2, [[int]] r=255, [[int]] g=0, [[int]] b=0, [[int]] a=255, visibleTo=[[getRootElement]]() ] )&lt;br /&gt;
&lt;br /&gt;
[[bool]] [[destroyBlipAttachedTo]] ( [[entity]] entity )&lt;br /&gt;
&lt;br /&gt;
&amp;lt;del&amp;gt;[[bool]] [[destroyAllBlips]] ()&amp;lt;/del&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[int]] [[getBlipIcon]] ( [[blip]] blip )&lt;br /&gt;
&lt;br /&gt;
[[int]] [[getBlipSize]] ( [[blip]] blip )&lt;br /&gt;
&lt;br /&gt;
[[int]] [[int]] [[int]] [[int]] [[getBlipColor]] ( [[blip]] blip )&lt;br /&gt;
&lt;br /&gt;
[[blip]] [[getBlipAttachedTo]] ( [[entity]] entity )&lt;br /&gt;
&lt;br /&gt;
[[bool]] [[setBlipIcon]] ( [[element]] blip, [[int]] icon )&lt;br /&gt;
&lt;br /&gt;
[[bool]] [[setBlipSize]] ( [[element]] blip, [[int]] size )&lt;br /&gt;
&lt;br /&gt;
[[bool]] [[setBlipColor]] ( [[element]] blip, [[int]] red, [[int]] green, [[int]] blue, [[int]] alpha )&lt;br /&gt;
&lt;br /&gt;
[[bool]] [[attachBlipToEntity]] ( [[blip]] blip, [[entity]] entity )&lt;br /&gt;
&lt;br /&gt;
==Element functions==&lt;br /&gt;
[[bool]] [[destroyElement]] ( [[element]] element )&lt;br /&gt;
&lt;br /&gt;
[[element]] [[getRootElement]] ()&lt;br /&gt;
&lt;br /&gt;
[[element]] [[getElementChild]] ( [[element]] parent, [[int]] index )&lt;br /&gt;
&lt;br /&gt;
[[int]] [[getElementChildrenCount]] ( [[element]] parent )&lt;br /&gt;
&lt;br /&gt;
[[string]] [[getElementID]] ( [[element]] element )&lt;br /&gt;
&lt;br /&gt;
[[element]] [[getElementByID]] ( [[string]] name, [[int]] id )&lt;br /&gt;
&lt;br /&gt;
[[element]] [[getElementByIndex]] ( [[string]] type, [[int]] index )&lt;br /&gt;
&lt;br /&gt;
[[var]] [[getElementData]] ( [[string]] name )&lt;br /&gt;
&lt;br /&gt;
[[element]] [[getElementParent]] ( [[element]] element )&lt;br /&gt;
&lt;br /&gt;
[[string]] [[getElementType]] ( [[element]] element )&lt;br /&gt;
&lt;br /&gt;
[[table]] [[getElementsByType]] ( [[string]] type )&lt;br /&gt;
&lt;br /&gt;
[[bool]] [[setElementID]] ( [[element]] element, [[string]] name )&lt;br /&gt;
&lt;br /&gt;
[[bool]] [[setElementData]] ( [[element]] element, [[string]] name, [[var]] data )&lt;br /&gt;
&lt;br /&gt;
[[bool]] [[setElementParent]] ( [[element]] element, [[element]] parent )&lt;br /&gt;
&lt;br /&gt;
==Entity functions==&lt;br /&gt;
[[float]] [[float]] [[float]] [[getEntityPosition]] ( [[entity]] entity )&lt;br /&gt;
&lt;br /&gt;
[[bool]] [[setEntityPosition]] ( [[element]] entity, [[float]] x, [[float]] y, [[float]] z )&lt;br /&gt;
&lt;br /&gt;
[[bool]] [[addEntityVisibleTo]] ( [[element]] entity, [[element]] visibleTo )&lt;br /&gt;
&lt;br /&gt;
[[bool]] [[removeEntityVisibleTo]] ( [[element]] entity, [[element]] visibleTo )&lt;br /&gt;
&lt;br /&gt;
[[bool]] [[clearEntityVisibleTo]] ( [[element]] entity )&lt;br /&gt;
&lt;br /&gt;
==Event functions==&lt;br /&gt;
[[bool]] [[addEvent]] ( [[string]] name, [[string]] arguments )&lt;br /&gt;
&lt;br /&gt;
[[bool]] [[addEventHandler]] ( [[string]] name, [[element]] element, [[string]] handler )&lt;br /&gt;
&lt;br /&gt;
[[bool]] [[triggerEvent]] ( [[string]] name, [[element]] element, [ [[var]] argument1, [[var]] argument2, ... ] )&lt;br /&gt;
&lt;br /&gt;
==Map functions==&lt;br /&gt;
[[string]] [[getLoadedMapName]] ()&lt;br /&gt;
&lt;br /&gt;
[[xmlnode]] [[getLoadedMapXMLRoot]] ()&lt;br /&gt;
&lt;br /&gt;
[[bool]] [[startMap]] ( [[string]] name )&lt;br /&gt;
&lt;br /&gt;
[[bool]] [[endMap]] ()&lt;br /&gt;
&lt;br /&gt;
[[element]] [[loadMapData]] ( [[xmlnode]] node, [[element]] parent )&lt;br /&gt;
&lt;br /&gt;
==Marker functions==&lt;br /&gt;
A marker is a 3D model in the world that can highlight a particular point or area, often used to instruct players where to go to perform actions such as entering buildings.&lt;br /&gt;
&lt;br /&gt;
[[element]] [[createMarker]] ( [[float]] x, [[float]] y, [[float]] z, [ [[string]] type, [[float]] size, [[int]] r, [[int]] g, [[int]] b, [[int]] a, visibleTo=[[getRootElement]] () ] )&lt;br /&gt;
&lt;br /&gt;
[[bool]] [[destroyAllMarkers]] ()&lt;br /&gt;
&lt;br /&gt;
[[int]] [[getMarkerCount]] ()&lt;br /&gt;
&lt;br /&gt;
[[string]] [[getMarkerType]] ( [[element]] marker )&lt;br /&gt;
&lt;br /&gt;
[[float]] [[getMarkerSize]] ( [[element]] marker )&lt;br /&gt;
&lt;br /&gt;
[[int]] [[int]] [[int]] [[int]] [[getMarkerColor]] ( [[element]] marker )&lt;br /&gt;
&lt;br /&gt;
[[float]] [[float]] [[float]] [[getMarkerTarget]] ( [[element]] marker )&lt;br /&gt;
&lt;br /&gt;
[[bool]] [[setMarkerType]] ( [[element]] marker, [[string]] type )&lt;br /&gt;
&lt;br /&gt;
[[bool]] [[setMarkerSize]] ( [[element]] marker, [[float]] size )&lt;br /&gt;
&lt;br /&gt;
[[bool]] [[setMarkerColor]] ( [[element]] marker, [[int]] r, [[int]] g, [[int]] b, [[int]] a )&lt;br /&gt;
&lt;br /&gt;
[[bool]] [[setMarkerTarget]] ( [[element]] marker, [[bool]] false )&lt;br /&gt;
&lt;br /&gt;
[[bool]] [[setMarkerTarget]] ( [[element]] marker, [[float]] x, [[float]] y, [[float]] z )&lt;br /&gt;
&lt;br /&gt;
==Object functions==&lt;br /&gt;
An object is a model in the world. These have collision models and can be moved and rotated at will. Any existing GTA model can be used.&lt;br /&gt;
&lt;br /&gt;
[[element]] [[createObject]] ( [[int]] id, [[float]] x, [[float]] y, [[float]] z, [ [[float]] rx, [[float]] ry, [[float]] rz] )&lt;br /&gt;
&lt;br /&gt;
[[bool]] [[destroyAllObjects]] ()&lt;br /&gt;
&lt;br /&gt;
[[int]] [[getObjectModel]] ( [[element]] object )&lt;br /&gt;
&lt;br /&gt;
[[float]] [[float]] [[float]] [[getObjectRotation]] ( [[element]] object )&lt;br /&gt;
&lt;br /&gt;
[[bool]] [[setObjectModel]] ( [[element]] object, [[int]] id )&lt;br /&gt;
&lt;br /&gt;
[[bool]] [[setObjectRotation]] ( [[element]] object, [[float]] x, [[float]] y, [[float]] z )&lt;br /&gt;
&lt;br /&gt;
[[bool]] [[moveObject]] ( [[element]] object, [[int]] time, [[float]] x, [[float]] y, [[float]] z, [[float]] rx, [[float]] ry, [[float]] rz )&lt;br /&gt;
&lt;br /&gt;
==Pickup functions==&lt;br /&gt;
[[pickup]] [[createPickup]] ( [[float]] x, [[float]] y, [[float]] z, [[int]] type, [[int]] amount/weapon, [ [[int]] ammo ] )&lt;br /&gt;
&lt;br /&gt;
[[bool]] [[destroyAllPickups]] ()&lt;br /&gt;
&lt;br /&gt;
[[int]] [[getPickupType]] ( [[pickup]] pickup )&lt;br /&gt;
&lt;br /&gt;
[[int]] [[getPickupWeapon]] ( [[pickup]] pickup )&lt;br /&gt;
&lt;br /&gt;
[[int]] [[getPickupHealth]] ( [[pickup]] pickup )&lt;br /&gt;
&lt;br /&gt;
[[int]] [[getPickupAmmo]] ( [[pickup]] pickup )&lt;br /&gt;
&lt;br /&gt;
[[bool]] [[setPickupType]] ( [[element]] pickup, [[int]] type, [[int]] amount/weapon, [ [[int]] ammo ] )&lt;br /&gt;
&lt;br /&gt;
==Player functions==&lt;br /&gt;
[[int]] [[getPlayerCount]] ()&lt;br /&gt;
&lt;br /&gt;
[[int]] [[getPlayerCurrentWeaponAmmoInClip]] ( [[player]] player )&lt;br /&gt;
&lt;br /&gt;
[[int]] [[getPlayerCurrentWeaponID]] ( [[player]] player )&lt;br /&gt;
&lt;br /&gt;
[[player]] [[getPlayerFromNick]] ( [[string]] nick )&lt;br /&gt;
&lt;br /&gt;
[[float]] [[getPlayerHealth]] ( [[player]] player )&lt;br /&gt;
&lt;br /&gt;
[[float]] [[getPlayerArmor]] ( [[player]] player )&lt;br /&gt;
&lt;br /&gt;
[[int]] [[getPlayerLevel]] ( [[player]] player )&lt;br /&gt;
&lt;br /&gt;
[[int]] [[getPlayerMoney]] ( [[player]] player )&lt;br /&gt;
&lt;br /&gt;
[[float]] [[float]] [[float]] [[getPlayerMoveSpeed]] ( [[player]] player )&lt;br /&gt;
&lt;br /&gt;
[[string]] [[getPlayerName]] ( [[player]] player )&lt;br /&gt;
&lt;br /&gt;
[[vehicle]] [[getPlayerOccupiedVehicle]] ( [[player]] player )&lt;br /&gt;
&lt;br /&gt;
[[int]] [[getPlayerOccupiedVehicleSeat]] ( [[player]] player )&lt;br /&gt;
&lt;br /&gt;
[[int]] [[getPlayerPing]] ( [[player]] player )&lt;br /&gt;
&lt;br /&gt;
[[float]] [[getPlayerRotation]] ( [[player]] player )&lt;br /&gt;
&lt;br /&gt;
[[int]] [[getPlayerSkin]] ( [[player]] player )&lt;br /&gt;
&lt;br /&gt;
[[string]] [[getPlayerSourceIP]] ( [[player]] player )&lt;br /&gt;
&lt;br /&gt;
[[player]] [[getRandomPlayer]] ()&lt;br /&gt;
&lt;br /&gt;
[[bool]] [[isPlayerDead]] ( [[player]] player )&lt;br /&gt;
&lt;br /&gt;
[[bool]] [[isPlayerDucked]] ( [[player]] player )&lt;br /&gt;
&lt;br /&gt;
[[bool]] [[isPlayerMuted]] ( [[player]] player )&lt;br /&gt;
&lt;br /&gt;
[[bool]] [[setPlayerRotation]] ( [[element]] player, [[float]] rotation )&lt;br /&gt;
&lt;br /&gt;
[[bool]] [[setPlayerSkin]] ( [[element]] player, [[int]] id )&lt;br /&gt;
&lt;br /&gt;
[[bool]] [[setPlayerHealth]] ( [[element]] player, [[float]] health )&lt;br /&gt;
&lt;br /&gt;
[[bool]] [[setPlayerArmor]] ( [[element]] player, [[float]] armor )&lt;br /&gt;
&lt;br /&gt;
[[bool]] [[setPlayerMoney]] ( [[element]] player, [[int]] money )&lt;br /&gt;
&lt;br /&gt;
[[bool]] [[givePlayerMoney]] ( [[element]] player, [[int]] money )&lt;br /&gt;
&lt;br /&gt;
[[bool]] [[takePlayerMoney]] ( [[element]] player, [[int]] money )&lt;br /&gt;
&lt;br /&gt;
[[bool]] [[killPlayer]] ( [[element]] player )&lt;br /&gt;
&lt;br /&gt;
[[bool]] [[warpPlayerintoVehicle]] ( [[player]] player, [[vehicle]] vehicle, [ [[int]] seat=0 ] )&lt;br /&gt;
&lt;br /&gt;
[[bool]] [[removePlayerFromVehicle]] ( [[element]] player )&lt;br /&gt;
&lt;br /&gt;
[[bool]] [[spawnPlayer]] ( [[player]] player, [[spawnpoint]] spawnpoint )&lt;br /&gt;
&lt;br /&gt;
[[bool]] [[spawnPlayer]] ( [[player]] player, [[float]] x, [[float]] y, [[float]] z, [[float]] rotation, [[int]] skin )&lt;br /&gt;
&lt;br /&gt;
==Radar area functions==&lt;br /&gt;
[[radararea]] [[createRadarArea]] ( [[float]] x, [[float]] y, [[float]] sizex, [[float]] sizey, [[int]] r, [[int]] g, [[int]] b, [[int]] a, [ visibleTo=[[getRootElement]] () ] )&lt;br /&gt;
&lt;br /&gt;
[[bool]] [[destroyAllRadarAreas]] ()&lt;br /&gt;
&lt;br /&gt;
[[float]] [[float]] [[getRadarAreaSize]] ( [[radararea]] radararea )&lt;br /&gt;
&lt;br /&gt;
[[int]] [[int]] [[int]] [[int]] [[getRadarAreaColor]] ( [[radararea]] radararea )&lt;br /&gt;
&lt;br /&gt;
[[bool]] [[isRadarAreaFlashing]] ( [[radararea]] radararea )&lt;br /&gt;
&lt;br /&gt;
[[bool]] [[setRadarAreaSize]] ( [[element]] radararea, [[float]] x, [[float]] y )&lt;br /&gt;
&lt;br /&gt;
[[bool]] [[setRadarAreaColor]] ( [[element]] radararea, [[int]] r, [[int]] g, [[int]] b, [[int]] a )&lt;br /&gt;
&lt;br /&gt;
[[bool]] [[setRadarAreaFlashing]] ( [[element]] radararea, [[bool]] flash )&lt;br /&gt;
&lt;br /&gt;
==Scoreboard functions==&lt;br /&gt;
[[bool]] [[addScoreboardColumn]] ( [[string]] id, [[string]] name, [[float]] width )&lt;br /&gt;
&lt;br /&gt;
[[bool]] [[removeScoreboardColumn]] ( [[string]] id )&lt;br /&gt;
&lt;br /&gt;
==Server functions==&lt;br /&gt;
[[int]] [[getMaxPlayers]] ()&lt;br /&gt;
&lt;br /&gt;
[[bool]] [[serverLoggerPrint]] ( [[string]] text )&lt;br /&gt;
&lt;br /&gt;
[[bool]] [[serverChat]] ( [[string]] text, [ [[int]] r, [[int]] g, [[int]] b ] )&lt;br /&gt;
&lt;br /&gt;
[[bool]] [[playerPM]] ( [[element]] player, [[string]] text, [ [[int]] r, [[int]] g, [[int]] b ] )&lt;br /&gt;
&lt;br /&gt;
[[bool]] [[outputDebugString]] ( [[string]] text, [ [[int]] level=3 ] )&lt;br /&gt;
&lt;br /&gt;
[[bool]] [[addCommandHandler]] ( [[string]] key, [[string]] handler )&lt;br /&gt;
&lt;br /&gt;
[[bool]] [[removeCommandHandler]] ( [[string]] key )&lt;br /&gt;
&lt;br /&gt;
==Spawnpoint functions==&lt;br /&gt;
[[float]] [[getspawnpointRotation]] ( [[spawnpoint]] spawn )&lt;br /&gt;
&lt;br /&gt;
[[int]] [[getspawnpointSkin]] ( [[spawnpoint]] spawn )&lt;br /&gt;
&lt;br /&gt;
[[bool]] [[setspawnpointRotation]] ( [[element]] spawn, [[float]] rotation )&lt;br /&gt;
&lt;br /&gt;
[[bool]] [[setspawnpointSkin]] ( [[element]] spawn, [[int]] skin )&lt;br /&gt;
&lt;br /&gt;
==Text Functions==&lt;br /&gt;
[[textdisplay]] [[textCreateDisplay]] ()&lt;br /&gt;
&lt;br /&gt;
[[void]] [[textDestroyDisplay]] ( [[textdisplay]] textdisplay )&lt;br /&gt;
&lt;br /&gt;
[[textitem]] [[textCreateTextItem]] ( [ [[string]] text, [[float]] x, [[float]] y, [[int]] priority, [[int]] r, [[int]] g, [[int]] b, [[int]] a, [[float]] scale ] )&lt;br /&gt;
&lt;br /&gt;
[[void]] [[textDestroyTextItem]] ( [[textitem]] textitem )&lt;br /&gt;
&lt;br /&gt;
[[void]] [[textDisplayAddText]] ( [[textdisplay]] textdisplay, [[textitem]] textitem )&lt;br /&gt;
&lt;br /&gt;
[[void]] [[textDisplayAddObserver]] ( [[textdisplay]] textdisplay, [[player]] player )&lt;br /&gt;
&lt;br /&gt;
[[void]] [[textItemSetText]] ( [[textitem]] textitem, [[string]] text )&lt;br /&gt;
&lt;br /&gt;
[[string]] [[textItemGetText]] ( [[textitem]] textitem )&lt;br /&gt;
&lt;br /&gt;
[[void]]] [[textItemSetScale]] ( [[textitem]] textitem, [[float]] scale )&lt;br /&gt;
&lt;br /&gt;
[[float]] [[textItemGetScale]] ( [[textitem]] textitem )&lt;br /&gt;
&lt;br /&gt;
[[void]] [[textItemSetPosition]] ( [[textitem]] textitem, [[float]] x, [[float]] y )&lt;br /&gt;
&lt;br /&gt;
[[float]] [[float]] [[textItemGetPosition]] ( [[textitem]] textitem )&lt;br /&gt;
&lt;br /&gt;
[[void]] [[textItemSetColor]] ( [[textitem]] textitem, [[int]] r, [[int]] g, [[int]] b, [[int]] a )&lt;br /&gt;
&lt;br /&gt;
[[int]] [[int]] [[int]] [[int]] [[textItemGetColor]] ( [[textitem]] textitem )&lt;br /&gt;
&lt;br /&gt;
[[void]] [[textItemSetPriority]] ( [[textitem]] textitem, [[int]] priority )&lt;br /&gt;
&lt;br /&gt;
[[int]] [[textItemGetPriority]] ( [[textitem]] textitem )&lt;br /&gt;
&lt;br /&gt;
==Utility functions==&lt;br /&gt;
[[float]] [[getDistanceBetweenPoints2D]] ( [[float]] x1, [[float]] y1, [[float]] x2, [[float]] y2 )&lt;br /&gt;
&lt;br /&gt;
[[float]] [[getDistanceBetweenPoints3D]] ( [[float]] x1, [[float]] y1, [[float]] z1, [[float]] x2, [[float]] y2, [[float]] z2 )&lt;br /&gt;
&lt;br /&gt;
[[int]] [[randInt]] ( [[int]] lowerbound, [[int]] upperbound )&lt;br /&gt;
&lt;br /&gt;
[[float]] [[randFloat]] ()&lt;br /&gt;
&lt;br /&gt;
[[int]] [[getTickCount]] ()&lt;br /&gt;
&lt;br /&gt;
[[string]] [[gettok]] ( [[string]] text, [[int]] index, [[int]] separator )&lt;br /&gt;
&lt;br /&gt;
[[bool]] [[setTimer]] ( [[string]] function, [[int]] time, [ [[var]] argument1, [[var]] argument2, ... ] )&lt;br /&gt;
&lt;br /&gt;
==Vehicle functions==&lt;br /&gt;
[[vehicle]] [[createVehicle]] ( [[int]] id, [[float]] x, [[float]] y, [[float]] z, [ [[float]] rx, [[float]] ry, [[float]] rz ] )&lt;br /&gt;
&lt;br /&gt;
[[bool]] [[destroyAllVehicles]] ()&lt;br /&gt;
&lt;br /&gt;
[[int]] [[int]] [[int]] [[int]] [[getVehicleColor]] ( [[vehicle]] vehicle )&lt;br /&gt;
&lt;br /&gt;
[[float]] [[getVehicleHealth]] ( [[vehicle]] vehicle )&lt;br /&gt;
&lt;br /&gt;
[[int]] [[getVehicleID]] ( [[vehicle]] vehicle )&lt;br /&gt;
&lt;br /&gt;
[[int]] [[getVehicleIDFromName]] ( [[string]] name )&lt;br /&gt;
&lt;br /&gt;
[[int]] [[getVehicleIndex]] ( [[vehicle]] vehicle )&lt;br /&gt;
&lt;br /&gt;
[[float]] [[float]] [[float]] [[getVehicleMoveSpeed]] ( [[string]] vehicle )&lt;br /&gt;
&lt;br /&gt;
[[string]] [[getVehicleName]] ( [[string]] vehicle )&lt;br /&gt;
&lt;br /&gt;
[[string]] [[getVehicleNameFromID]] ( [[int]] id )&lt;br /&gt;
&lt;br /&gt;
[[player]] [[getVehicleOccupant]] ( [[vehicle]] vehicle, [ [[int]] seat=0 ] )&lt;br /&gt;
&lt;br /&gt;
[[float]] [[float]] [[float]] [[getVehicleRotation]] ( [[vehicle]] vehicle )&lt;br /&gt;
&lt;br /&gt;
[[float]] [[float]] [[float]] [[getVehicleTurnSpeed]] ( [[vehicle]] vehicle )&lt;br /&gt;
&lt;br /&gt;
[[float]] [[float]] [[getVehicleTurretPosition]] ( [[vehicle]] vehicle )&lt;br /&gt;
&lt;br /&gt;
[[int]] [[getVehicleMaxPassengers]] ( [[vehicle]] vehicle )&lt;br /&gt;
&lt;br /&gt;
[[bool]] [[isVehicleLocked]] ( [[vehicle]] vehicle )&lt;br /&gt;
&lt;br /&gt;
[[bool]] [[fixVehicle]] ( [[element]] vehicle )&lt;br /&gt;
&lt;br /&gt;
[[bool]] [[blowVehicle]] ( [[element]] vehicle, [ [[bool]] explode=true ] )&lt;br /&gt;
&lt;br /&gt;
[[bool]] [[setVehicleRotation]] ( [[element]] vehicle, [[float]] rx, [[float]] ry, [[float]] rz )&lt;br /&gt;
&lt;br /&gt;
[[bool]] [[setVehicleMoveSpeed]] ( [[element]] vehicle, [[float]] x, [[float]] y, [[float]] z )&lt;br /&gt;
&lt;br /&gt;
[[bool]] [[setVehicleTurnSpeed]] ( [[element]] vehicle, [[float]] rx, [[float]] ry, [[float]] rz )&lt;br /&gt;
&lt;br /&gt;
[[bool]] [[setVehicleHealth]] ( [[element]] vehicle, [[float]] health )&lt;br /&gt;
&lt;br /&gt;
[[bool]] [[setVehicleColor]] ( [[element]] vehicle, [[int]] color1, [[int]] color2, [[int]] color3, [[int]] color4 )&lt;br /&gt;
&lt;br /&gt;
[[bool]] [[setVehicleLocked]] ( [[element]] vehicle, [[bool]] locked )&lt;br /&gt;
&lt;br /&gt;
==Weapon functions==&lt;br /&gt;
[[string]] [[getWeaponNameFromID]] ( [[int]] id )&lt;br /&gt;
&lt;br /&gt;
[[int]] [[getWeaponIDFromName]] ( [[string]] name )&lt;br /&gt;
&lt;br /&gt;
[[bool]] [[giveWeapon]] ( [[element]] player, [[int]] [[weapon]], [ [[int]] ammo=30 ] )&lt;br /&gt;
&lt;br /&gt;
[[bool]] [[takeWeapon]] ( [[element]] player, [[int]] [[weapon]] )&lt;br /&gt;
&lt;br /&gt;
[[bool]] [[takeAllWeapons]] ( [[element]] player )&lt;br /&gt;
&lt;br /&gt;
==World functions==&lt;br /&gt;
[[int]] [[int]] [[getTime]] ()&lt;br /&gt;
&lt;br /&gt;
[[int]] [[getWeather]] ()&lt;br /&gt;
&lt;br /&gt;
[[bool]] [[setTime]] ( [[int]] hour, [[int]] min )&lt;br /&gt;
&lt;br /&gt;
[[bool]] [[setWeather]] ( [[int]] id )&lt;br /&gt;
&lt;br /&gt;
[[bool]] [[setWeatherBlended]] ( [[int]] id )&lt;br /&gt;
&lt;br /&gt;
==XML functions==&lt;br /&gt;
[[xmlnode]] [[xmlFindSubNode]] ( [[xmlnode]] parent, [[string]] subnode, [[int]] index )&lt;br /&gt;
&lt;br /&gt;
[[string]] [[xmlNodeGetValue]] ( [[xmlnode]] xmlnode )&lt;br /&gt;
&lt;br /&gt;
[[bool]] [[xmlNodeSetValue]] ( [[xmlnode]] xmlnode, [[var]] value )&lt;br /&gt;
&lt;br /&gt;
[[string]] [[xmlNodeGetAttribute]] ( [[xmlnode]] xmlnode, [[string]] name )&lt;br /&gt;
&lt;br /&gt;
[[bool]] [[xmlNodeSetAttribute]] ( [[xmlnode]] xmlnode, [[string]] name, [[var]] value )&lt;br /&gt;
&lt;br /&gt;
[[xmlnode]] [[xmlLoadFile]] ( [[string]] filename )&lt;br /&gt;
&lt;br /&gt;
[[bool]] [[xmlUnloadFile]] ( [[xmlnode]] xmlnode )&lt;/div&gt;</summary>
		<author><name>Aeron</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Server_Scripting_Functions&amp;diff=2499</id>
		<title>Server Scripting Functions</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Server_Scripting_Functions&amp;diff=2499"/>
		<updated>2006-05-18T10:01:07Z</updated>

		<summary type="html">&lt;p&gt;Aeron: /* Text Functions */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This page lists all the scripting functions that have been implemented and are available as native functions from the Deathmatch mod. To request a function or event, use [[Requested Functions and Events]]&lt;br /&gt;
&lt;br /&gt;
Please note that the scripting functions can now be extended by loading in dynamic modules that provide new functionality, such as MySQL database access. These scripting functions are non-native and require the module to be loaded in order to work.&lt;br /&gt;
&lt;br /&gt;
Head over to [[Module functions]] for a list of non-native functions and modules that are available.&lt;br /&gt;
&lt;br /&gt;
==Blip functions==&lt;br /&gt;
[[blip]] [[createBlip]] ( [[float]] x, [[float]] y, [[float]] z, [ [[int]] icon=0, [[int]] size=2, [[int]] r=255, [[int]] g=0, [[int]] b=0, [[int]] a=255, visibleTo=[[getRootElement]]() ] )&lt;br /&gt;
&lt;br /&gt;
[[blip]] [[createBlipAttachedTo]] ( [[entity]] entity, [ [[int]] icon=0, [[int]] size=2, [[int]] r=255, [[int]] g=0, [[int]] b=0, [[int]] a=255, visibleTo=[[getRootElement]]() ] )&lt;br /&gt;
&lt;br /&gt;
[[bool]] [[destroyBlipAttachedTo]] ( [[entity]] entity )&lt;br /&gt;
&lt;br /&gt;
[[bool]] [[destroyAllBlips]] ()&lt;br /&gt;
&lt;br /&gt;
[[int]] [[getBlipIcon]] ( [[blip]] blip )&lt;br /&gt;
&lt;br /&gt;
[[int]] [[getBlipSize]] ( [[blip]] blip )&lt;br /&gt;
&lt;br /&gt;
[[int]] [[int]] [[int]] [[int]] [[getBlipColor]] ( [[blip]] blip )&lt;br /&gt;
&lt;br /&gt;
[[blip]] [[getBlipAttachedTo]] ( [[entity]] entity )&lt;br /&gt;
&lt;br /&gt;
[[bool]] [[setBlipIcon]] ( [[element]] blip, [[int]] icon )&lt;br /&gt;
&lt;br /&gt;
[[bool]] [[setBlipSize]] ( [[element]] blip, [[int]] size )&lt;br /&gt;
&lt;br /&gt;
[[bool]] [[setBlipColor]] ( [[element]] blip, [[int]] red, [[int]] green, [[int]] blue, [[int]] alpha )&lt;br /&gt;
&lt;br /&gt;
[[bool]] [[attachBlipToEntity]] ( [[blip]] blip, [[entity]] entity )&lt;br /&gt;
&lt;br /&gt;
==Element functions==&lt;br /&gt;
[[bool]] [[destroyElement]] ( [[element]] element )&lt;br /&gt;
&lt;br /&gt;
[[element]] [[getRootElement]] ()&lt;br /&gt;
&lt;br /&gt;
[[element]] [[getElementChild]] ( [[element]] parent, [[int]] index )&lt;br /&gt;
&lt;br /&gt;
[[int]] [[getElementChildrenCount]] ( [[element]] parent )&lt;br /&gt;
&lt;br /&gt;
[[string]] [[getElementID]] ( [[element]] element )&lt;br /&gt;
&lt;br /&gt;
[[element]] [[getElementByID]] ( [[string]] name, [[int]] id )&lt;br /&gt;
&lt;br /&gt;
[[element]] [[getElementByIndex]] ( [[string]] type, [[int]] index )&lt;br /&gt;
&lt;br /&gt;
[[var]] [[getElementData]] ( [[string]] name )&lt;br /&gt;
&lt;br /&gt;
[[element]] [[getElementParent]] ( [[element]] element )&lt;br /&gt;
&lt;br /&gt;
[[string]] [[getElementType]] ( [[element]] element )&lt;br /&gt;
&lt;br /&gt;
[[table]] [[getElementsByType]] ( [[string]] type )&lt;br /&gt;
&lt;br /&gt;
[[bool]] [[setElementID]] ( [[element]] element, [[string]] name )&lt;br /&gt;
&lt;br /&gt;
[[bool]] [[setElementData]] ( [[element]] element, [[string]] name, [[var]] data )&lt;br /&gt;
&lt;br /&gt;
[[bool]] [[setElementParent]] ( [[element]] element, [[element]] parent )&lt;br /&gt;
&lt;br /&gt;
==Entity functions==&lt;br /&gt;
[[float]] [[float]] [[float]] [[getEntityPosition]] ( [[entity]] entity )&lt;br /&gt;
&lt;br /&gt;
[[bool]] [[setEntityPosition]] ( [[element]] entity, [[float]] x, [[float]] y, [[float]] z )&lt;br /&gt;
&lt;br /&gt;
[[bool]] [[addEntityVisibleTo]] ( [[element]] entity, [[element]] visibleTo )&lt;br /&gt;
&lt;br /&gt;
[[bool]] [[removeEntityVisibleTo]] ( [[element]] entity, [[element]] visibleTo )&lt;br /&gt;
&lt;br /&gt;
[[bool]] [[clearEntityVisibleTo]] ( [[element]] entity )&lt;br /&gt;
&lt;br /&gt;
==Event functions==&lt;br /&gt;
[[bool]] [[addEvent]] ( [[string]] name, [[string]] arguments )&lt;br /&gt;
&lt;br /&gt;
[[bool]] [[addEventHandler]] ( [[string]] name, [[element]] element, [[string]] handler )&lt;br /&gt;
&lt;br /&gt;
[[bool]] [[triggerEvent]] ( [[string]] name, [[element]] element, [ [[var]] argument1, [[var]] argument2, ... ] )&lt;br /&gt;
&lt;br /&gt;
==Map functions==&lt;br /&gt;
[[string]] [[getLoadedMapName]] ()&lt;br /&gt;
&lt;br /&gt;
[[xmlnode]] [[getLoadedMapXMLRoot]] ()&lt;br /&gt;
&lt;br /&gt;
[[bool]] [[startMap]] ( [[string]] name )&lt;br /&gt;
&lt;br /&gt;
[[bool]] [[endMap]] ()&lt;br /&gt;
&lt;br /&gt;
[[element]] [[loadMapData]] ( [[xmlnode]] node, [[element]] parent )&lt;br /&gt;
&lt;br /&gt;
==Marker functions==&lt;br /&gt;
A marker is a 3D model in the world that can highlight a particular point or area, often used to instruct players where to go to perform actions such as entering buildings.&lt;br /&gt;
&lt;br /&gt;
[[element]] [[createMarker]] ( [[float]] x, [[float]] y, [[float]] z, [ [[string]] type, [[float]] size, [[int]] r, [[int]] g, [[int]] b, [[int]] a, visibleTo=[[getRootElement]] () ] )&lt;br /&gt;
&lt;br /&gt;
[[bool]] [[destroyAllMarkers]] ()&lt;br /&gt;
&lt;br /&gt;
[[int]] [[getMarkerCount]] ()&lt;br /&gt;
&lt;br /&gt;
[[string]] [[getMarkerType]] ( [[element]] marker )&lt;br /&gt;
&lt;br /&gt;
[[float]] [[getMarkerSize]] ( [[element]] marker )&lt;br /&gt;
&lt;br /&gt;
[[int]] [[int]] [[int]] [[int]] [[getMarkerColor]] ( [[element]] marker )&lt;br /&gt;
&lt;br /&gt;
[[float]] [[float]] [[float]] [[getMarkerTarget]] ( [[element]] marker )&lt;br /&gt;
&lt;br /&gt;
[[bool]] [[setMarkerType]] ( [[element]] marker, [[string]] type )&lt;br /&gt;
&lt;br /&gt;
[[bool]] [[setMarkerSize]] ( [[element]] marker, [[float]] size )&lt;br /&gt;
&lt;br /&gt;
[[bool]] [[setMarkerColor]] ( [[element]] marker, [[int]] r, [[int]] g, [[int]] b, [[int]] a )&lt;br /&gt;
&lt;br /&gt;
[[bool]] [[setMarkerTarget]] ( [[element]] marker, [[bool]] false )&lt;br /&gt;
&lt;br /&gt;
[[bool]] [[setMarkerTarget]] ( [[element]] marker, [[float]] x, [[float]] y, [[float]] z )&lt;br /&gt;
&lt;br /&gt;
==Object functions==&lt;br /&gt;
An object is a model in the world. These have collision models and can be moved and rotated at will. Any existing GTA model can be used.&lt;br /&gt;
&lt;br /&gt;
[[element]] [[createObject]] ( [[int]] id, [[float]] x, [[float]] y, [[float]] z, [ [[float]] rx, [[float]] ry, [[float]] rz] )&lt;br /&gt;
&lt;br /&gt;
[[bool]] [[destroyAllObjects]] ()&lt;br /&gt;
&lt;br /&gt;
[[int]] [[getObjectModel]] ( [[element]] object )&lt;br /&gt;
&lt;br /&gt;
[[float]] [[float]] [[float]] [[getObjectRotation]] ( [[element]] object )&lt;br /&gt;
&lt;br /&gt;
[[bool]] [[setObjectModel]] ( [[element]] object, [[int]] id )&lt;br /&gt;
&lt;br /&gt;
[[bool]] [[setObjectRotation]] ( [[element]] object, [[float]] x, [[float]] y, [[float]] z )&lt;br /&gt;
&lt;br /&gt;
[[bool]] [[moveObject]] ( [[element]] object, [[int]] time, [[float]] x, [[float]] y, [[float]] z, [[float]] rx, [[float]] ry, [[float]] rz )&lt;br /&gt;
&lt;br /&gt;
==Pickup functions==&lt;br /&gt;
[[pickup]] [[createPickup]] ( [[float]] x, [[float]] y, [[float]] z, [[int]] type, [[int]] amount/weapon, [ [[int]] ammo ] )&lt;br /&gt;
&lt;br /&gt;
[[bool]] [[destroyAllPickups]] ()&lt;br /&gt;
&lt;br /&gt;
[[int]] [[getPickupType]] ( [[pickup]] pickup )&lt;br /&gt;
&lt;br /&gt;
[[int]] [[getPickupWeapon]] ( [[pickup]] pickup )&lt;br /&gt;
&lt;br /&gt;
[[int]] [[getPickupHealth]] ( [[pickup]] pickup )&lt;br /&gt;
&lt;br /&gt;
[[int]] [[getPickupAmmo]] ( [[pickup]] pickup )&lt;br /&gt;
&lt;br /&gt;
[[bool]] [[setPickupType]] ( [[element]] pickup, [[int]] type, [[int]] amount/weapon, [ [[int]] ammo ] )&lt;br /&gt;
&lt;br /&gt;
==Player functions==&lt;br /&gt;
[[int]] [[getPlayerCount]] ()&lt;br /&gt;
&lt;br /&gt;
[[int]] [[getPlayerCurrentWeaponAmmoInClip]] ( [[player]] player )&lt;br /&gt;
&lt;br /&gt;
[[int]] [[getPlayerCurrentWeaponID]] ( [[player]] player )&lt;br /&gt;
&lt;br /&gt;
[[player]] [[getPlayerFromNick]] ( [[string]] nick )&lt;br /&gt;
&lt;br /&gt;
[[float]] [[getPlayerHealth]] ( [[player]] player )&lt;br /&gt;
&lt;br /&gt;
[[float]] [[getPlayerArmor]] ( [[player]] player )&lt;br /&gt;
&lt;br /&gt;
[[int]] [[getPlayerLevel]] ( [[player]] player )&lt;br /&gt;
&lt;br /&gt;
[[int]] [[getPlayerMoney]] ( [[player]] player )&lt;br /&gt;
&lt;br /&gt;
[[float]] [[float]] [[float]] [[getPlayerMoveSpeed]] ( [[player]] player )&lt;br /&gt;
&lt;br /&gt;
[[string]] [[getPlayerName]] ( [[player]] player )&lt;br /&gt;
&lt;br /&gt;
[[vehicle]] [[getPlayerOccupiedVehicle]] ( [[player]] player )&lt;br /&gt;
&lt;br /&gt;
[[int]] [[getPlayerOccupiedVehicleSeat]] ( [[player]] player )&lt;br /&gt;
&lt;br /&gt;
[[int]] [[getPlayerPing]] ( [[player]] player )&lt;br /&gt;
&lt;br /&gt;
[[float]] [[getPlayerRotation]] ( [[player]] player )&lt;br /&gt;
&lt;br /&gt;
[[int]] [[getPlayerSkin]] ( [[player]] player )&lt;br /&gt;
&lt;br /&gt;
[[string]] [[getPlayerSourceIP]] ( [[player]] player )&lt;br /&gt;
&lt;br /&gt;
[[player]] [[getRandomPlayer]] ()&lt;br /&gt;
&lt;br /&gt;
[[bool]] [[isPlayerDead]] ( [[player]] player )&lt;br /&gt;
&lt;br /&gt;
[[bool]] [[isPlayerDucked]] ( [[player]] player )&lt;br /&gt;
&lt;br /&gt;
[[bool]] [[isPlayerMuted]] ( [[player]] player )&lt;br /&gt;
&lt;br /&gt;
[[bool]] [[setPlayerRotation]] ( [[element]] player, [[float]] rotation )&lt;br /&gt;
&lt;br /&gt;
[[bool]] [[setPlayerSkin]] ( [[element]] player, [[int]] id )&lt;br /&gt;
&lt;br /&gt;
[[bool]] [[setPlayerHealth]] ( [[element]] player, [[float]] health )&lt;br /&gt;
&lt;br /&gt;
[[bool]] [[setPlayerArmor]] ( [[element]] player, [[float]] armor )&lt;br /&gt;
&lt;br /&gt;
[[bool]] [[setPlayerMoney]] ( [[element]] player, [[int]] money )&lt;br /&gt;
&lt;br /&gt;
[[bool]] [[givePlayerMoney]] ( [[element]] player, [[int]] money )&lt;br /&gt;
&lt;br /&gt;
[[bool]] [[takePlayerMoney]] ( [[element]] player, [[int]] money )&lt;br /&gt;
&lt;br /&gt;
[[bool]] [[killPlayer]] ( [[element]] player )&lt;br /&gt;
&lt;br /&gt;
[[bool]] [[warpPlayerintoVehicle]] ( [[player]] player, [[vehicle]] vehicle, [ [[int]] seat=0 ] )&lt;br /&gt;
&lt;br /&gt;
[[bool]] [[removePlayerFromVehicle]] ( [[element]] player )&lt;br /&gt;
&lt;br /&gt;
[[bool]] [[spawnPlayer]] ( [[player]] player, [[spawnpoint]] spawnpoint )&lt;br /&gt;
&lt;br /&gt;
[[bool]] [[spawnPlayer]] ( [[player]] player, [[float]] x, [[float]] y, [[float]] z, [[float]] rotation, [[int]] skin )&lt;br /&gt;
&lt;br /&gt;
==Radar area functions==&lt;br /&gt;
[[radararea]] [[createRadarArea]] ( [[float]] x, [[float]] y, [[float]] sizex, [[float]] sizey, [[int]] r, [[int]] g, [[int]] b, [[int]] a, [ visibleTo=[[getRootElement]] () ] )&lt;br /&gt;
&lt;br /&gt;
[[bool]] [[destroyAllRadarAreas]] ()&lt;br /&gt;
&lt;br /&gt;
[[float]] [[float]] [[getRadarAreaSize]] ( [[radararea]] radararea )&lt;br /&gt;
&lt;br /&gt;
[[int]] [[int]] [[int]] [[int]] [[getRadarAreaColor]] ( [[radararea]] radararea )&lt;br /&gt;
&lt;br /&gt;
[[bool]] [[isRadarAreaFlashing]] ( [[radararea]] radararea )&lt;br /&gt;
&lt;br /&gt;
[[bool]] [[setRadarAreaSize]] ( [[element]] radararea, [[float]] x, [[float]] y )&lt;br /&gt;
&lt;br /&gt;
[[bool]] [[setRadarAreaColor]] ( [[element]] radararea, [[int]] r, [[int]] g, [[int]] b, [[int]] a )&lt;br /&gt;
&lt;br /&gt;
[[bool]] [[setRadarAreaFlashing]] ( [[element]] radararea, [[bool]] flash )&lt;br /&gt;
&lt;br /&gt;
==Scoreboard functions==&lt;br /&gt;
[[bool]] [[addScoreboardColumn]] ( [[string]] id, [[string]] name, [[float]] width )&lt;br /&gt;
&lt;br /&gt;
[[bool]] [[removeScoreboardColumn]] ( [[string]] id )&lt;br /&gt;
&lt;br /&gt;
==Server functions==&lt;br /&gt;
[[int]] [[getMaxPlayers]] ()&lt;br /&gt;
&lt;br /&gt;
[[bool]] [[serverLoggerPrint]] ( [[string]] text )&lt;br /&gt;
&lt;br /&gt;
[[bool]] [[serverChat]] ( [[string]] text, [ [[int]] r, [[int]] g, [[int]] b ] )&lt;br /&gt;
&lt;br /&gt;
[[bool]] [[playerPM]] ( [[element]] player, [[string]] text, [ [[int]] r, [[int]] g, [[int]] b ] )&lt;br /&gt;
&lt;br /&gt;
[[bool]] [[outputDebugString]] ( [[string]] text, [ [[int]] level=3 ] )&lt;br /&gt;
&lt;br /&gt;
[[bool]] [[addCommandHandler]] ( [[string]] key, [[string]] handler )&lt;br /&gt;
&lt;br /&gt;
[[bool]] [[removeCommandHandler]] ( [[string]] key )&lt;br /&gt;
&lt;br /&gt;
==Spawnpoint functions==&lt;br /&gt;
[[float]] [[getspawnpointRotation]] ( [[spawnpoint]] spawn )&lt;br /&gt;
&lt;br /&gt;
[[int]] [[getspawnpointSkin]] ( [[spawnpoint]] spawn )&lt;br /&gt;
&lt;br /&gt;
[[bool]] [[setspawnpointRotation]] ( [[element]] spawn, [[float]] rotation )&lt;br /&gt;
&lt;br /&gt;
[[bool]] [[setspawnpointSkin]] ( [[element]] spawn, [[int]] skin )&lt;br /&gt;
&lt;br /&gt;
==Text Functions==&lt;br /&gt;
[[textdisplay]] [[textCreateDisplay]] ()&lt;br /&gt;
&lt;br /&gt;
[[void]] [[textDestroyDisplay]] ( [[textdisplay]] textdisplay )&lt;br /&gt;
&lt;br /&gt;
[[textitem]] [[textCreateTextItem]] ( [ [[string]] text, [[float]] x, [[float]] y, [[int]] priority, [[int]] r, [[int]] g, [[int]] b, [[int]] a, [[float]] scale ] )&lt;br /&gt;
&lt;br /&gt;
[[void]] [[textDestroyTextItem]] ( [[textitem]] textitem )&lt;br /&gt;
&lt;br /&gt;
[[void]] [[textDisplayAddText]] ( [[textdisplay]] textdisplay, [[textitem]] textitem )&lt;br /&gt;
&lt;br /&gt;
[[void]] [[textDisplayAddObserver]] ( [[textdisplay]] textdisplay, [[player]] player )&lt;br /&gt;
&lt;br /&gt;
[[void]] [[textItemSetText]] ( [[textitem]] textitem, [[string]] text )&lt;br /&gt;
&lt;br /&gt;
[[string]] [[textItemGetText]] ( [[textitem]] textitem )&lt;br /&gt;
&lt;br /&gt;
[[void]]] [[textItemSetScale]] ( [[textitem]] textitem, [[float]] scale )&lt;br /&gt;
&lt;br /&gt;
[[float]] [[textItemGetScale]] ( [[textitem]] textitem )&lt;br /&gt;
&lt;br /&gt;
[[void]] [[textItemSetPosition]] ( [[textitem]] textitem, [[float]] x, [[float]] y )&lt;br /&gt;
&lt;br /&gt;
[[float]] [[float]] [[textItemGetPosition]] ( [[textitem]] textitem )&lt;br /&gt;
&lt;br /&gt;
[[void]] [[textItemSetColor]] ( [[textitem]] textitem, [[int]] r, [[int]] g, [[int]] b, [[int]] a )&lt;br /&gt;
&lt;br /&gt;
[[int]] [[int]] [[int]] [[int]] [[textItemGetColor]] ( [[textitem]] textitem )&lt;br /&gt;
&lt;br /&gt;
[[void]] [[textItemSetPriority]] ( [[textitem]] textitem, [[int]] priority )&lt;br /&gt;
&lt;br /&gt;
[[int]] [[textItemGetPriority]] ( [[textitem]] textitem )&lt;br /&gt;
&lt;br /&gt;
==Utility functions==&lt;br /&gt;
[[float]] [[getDistanceBetweenpoints2D]] ( [[float]] x1, [[float]] y1, [[float]] x2, [[float]] y2 )&lt;br /&gt;
&lt;br /&gt;
[[float]] [[getDistanceBetweenpoints3D]] ( [[float]] x1, [[float]] y1, [[float]] z1, [[float]] x2, [[float]] y2, [[float]] z2 )&lt;br /&gt;
&lt;br /&gt;
[[int]] [[randInt]] ( [[int]] lowerbound, [[int]] upperbound )&lt;br /&gt;
&lt;br /&gt;
[[float]] [[randFloat]] ()&lt;br /&gt;
&lt;br /&gt;
[[int]] [[getTickCount]] ()&lt;br /&gt;
&lt;br /&gt;
[[string]] [[gettok]] ( [[string]] text, [[int]] index, [[int]] separator )&lt;br /&gt;
&lt;br /&gt;
[[bool]] [[setTimer]] ( [[string]] function, [[int]] time, [ [[var]] argument1, [[var]] argument2, ... ] )&lt;br /&gt;
&lt;br /&gt;
==Vehicle functions==&lt;br /&gt;
[[vehicle]] [[createVehicle]] ( [[int]] id, [[float]] x, [[float]] y, [[float]] z, [ [[float]] rx, [[float]] ry, [[float]] rz ] )&lt;br /&gt;
&lt;br /&gt;
[[bool]] [[destroyAllVehicles]] ()&lt;br /&gt;
&lt;br /&gt;
[[int]] [[int]] [[int]] [[int]] [[getVehicleColor]] ( [[vehicle]] vehicle )&lt;br /&gt;
&lt;br /&gt;
[[float]] [[getVehicleHealth]] ( [[vehicle]] vehicle )&lt;br /&gt;
&lt;br /&gt;
[[int]] [[getVehicleID]] ( [[vehicle]] vehicle )&lt;br /&gt;
&lt;br /&gt;
[[int]] [[getVehicleIDFromName]] ( [[string]] name )&lt;br /&gt;
&lt;br /&gt;
[[int]] [[getVehicleIndex]] ( [[vehicle]] vehicle )&lt;br /&gt;
&lt;br /&gt;
[[float]] [[float]] [[float]] [[getVehicleMoveSpeed]] ( [[string]] vehicle )&lt;br /&gt;
&lt;br /&gt;
[[string]] [[getVehicleName]] ( [[string]] vehicle )&lt;br /&gt;
&lt;br /&gt;
[[string]] [[getVehicleNameFromID]] ( [[int]] id )&lt;br /&gt;
&lt;br /&gt;
[[player]] [[getVehicleOccupant]] ( [[vehicle]] vehicle, [ [[int]] seat=0 ] )&lt;br /&gt;
&lt;br /&gt;
[[float]] [[float]] [[float]] [[getVehicleRotation]] ( [[vehicle]] vehicle )&lt;br /&gt;
&lt;br /&gt;
[[float]] [[float]] [[float]] [[getVehicleTurnSpeed]] ( [[vehicle]] vehicle )&lt;br /&gt;
&lt;br /&gt;
[[float]] [[float]] [[getVehicleTurretPosition]] ( [[vehicle]] vehicle )&lt;br /&gt;
&lt;br /&gt;
[[int]] [[getVehicleMaxPassengers]] ( [[vehicle]] vehicle )&lt;br /&gt;
&lt;br /&gt;
[[bool]] [[isVehicleLocked]] ( [[vehicle]] vehicle )&lt;br /&gt;
&lt;br /&gt;
[[bool]] [[fixVehicle]] ( [[element]] vehicle )&lt;br /&gt;
&lt;br /&gt;
[[bool]] [[blowVehicle]] ( [[element]] vehicle, [ [[bool]] explode=true ] )&lt;br /&gt;
&lt;br /&gt;
[[bool]] [[setVehicleRotation]] ( [[element]] vehicle, [[float]] rx, [[float]] ry, [[float]] rz )&lt;br /&gt;
&lt;br /&gt;
[[bool]] [[setVehicleMoveSpeed]] ( [[element]] vehicle, [[float]] x, [[float]] y, [[float]] z )&lt;br /&gt;
&lt;br /&gt;
[[bool]] [[setVehicleTurnSpeed]] ( [[element]] vehicle, [[float]] rx, [[float]] ry, [[float]] rz )&lt;br /&gt;
&lt;br /&gt;
[[bool]] [[setVehicleHealth]] ( [[element]] vehicle, [[float]] health )&lt;br /&gt;
&lt;br /&gt;
[[bool]] [[setVehicleColor]] ( [[element]] vehicle, [[int]] color1, [[int]] color2, [[int]] color3, [[int]] color4 )&lt;br /&gt;
&lt;br /&gt;
[[bool]] [[setVehicleLocked]] ( [[element]] vehicle, [[bool]] locked )&lt;br /&gt;
&lt;br /&gt;
==Weapon functions==&lt;br /&gt;
[[string]] [[getWeaponNameFromID]] ( [[int]] id )&lt;br /&gt;
&lt;br /&gt;
[[int]] [[getWeaponIDFromName]] ( [[string]] name )&lt;br /&gt;
&lt;br /&gt;
[[bool]] [[giveWeapon]] ( [[element]] player, [[int]] [[weapon]], [ [[int]] ammo=30 ] )&lt;br /&gt;
&lt;br /&gt;
[[bool]] [[takeWeapon]] ( [[element]] player, [[int]] [[weapon]] )&lt;br /&gt;
&lt;br /&gt;
[[bool]] [[takeAllWeapons]] ( [[element]] player )&lt;br /&gt;
&lt;br /&gt;
==World functions==&lt;br /&gt;
[[int]] [[int]] [[getTime]] ()&lt;br /&gt;
&lt;br /&gt;
[[int]] [[getWeather]] ()&lt;br /&gt;
&lt;br /&gt;
[[bool]] [[setTime]] ( [[int]] hour, [[int]] min )&lt;br /&gt;
&lt;br /&gt;
[[bool]] [[setWeather]] ( [[int]] id )&lt;br /&gt;
&lt;br /&gt;
[[bool]] [[setWeatherBlended]] ( [[int]] id )&lt;br /&gt;
&lt;br /&gt;
==XML functions==&lt;br /&gt;
[[xmlnode]] [[xmlFindSubNode]] ( [[xmlnode]] parent, [[string]] subnode, [[int]] index )&lt;br /&gt;
&lt;br /&gt;
[[string]] [[xmlNodeGetValue]] ( [[xmlnode]] xmlnode )&lt;br /&gt;
&lt;br /&gt;
[[bool]] [[xmlNodeSetValue]] ( [[xmlnode]] xmlnode, [[var]] value )&lt;br /&gt;
&lt;br /&gt;
[[string]] [[xmlNodeGetAttribute]] ( [[xmlnode]] xmlnode, [[string]] name )&lt;br /&gt;
&lt;br /&gt;
[[bool]] [[xmlNodeSetAttribute]] ( [[xmlnode]] xmlnode, [[string]] name, [[var]] value )&lt;br /&gt;
&lt;br /&gt;
[[xmlnode]] [[xmlLoadFile]] ( [[string]] filename )&lt;br /&gt;
&lt;br /&gt;
[[bool]] [[xmlUnloadFile]] ( [[xmlnode]] xmlnode )&lt;/div&gt;</summary>
		<author><name>Aeron</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Server_Scripting_Functions&amp;diff=2498</id>
		<title>Server Scripting Functions</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Server_Scripting_Functions&amp;diff=2498"/>
		<updated>2006-05-18T09:58:51Z</updated>

		<summary type="html">&lt;p&gt;Aeron: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This page lists all the scripting functions that have been implemented and are available as native functions from the Deathmatch mod. To request a function or event, use [[Requested Functions and Events]]&lt;br /&gt;
&lt;br /&gt;
Please note that the scripting functions can now be extended by loading in dynamic modules that provide new functionality, such as MySQL database access. These scripting functions are non-native and require the module to be loaded in order to work.&lt;br /&gt;
&lt;br /&gt;
Head over to [[Module functions]] for a list of non-native functions and modules that are available.&lt;br /&gt;
&lt;br /&gt;
==Blip functions==&lt;br /&gt;
[[blip]] [[createBlip]] ( [[float]] x, [[float]] y, [[float]] z, [ [[int]] icon=0, [[int]] size=2, [[int]] r=255, [[int]] g=0, [[int]] b=0, [[int]] a=255, visibleTo=[[getRootElement]]() ] )&lt;br /&gt;
&lt;br /&gt;
[[blip]] [[createBlipAttachedTo]] ( [[entity]] entity, [ [[int]] icon=0, [[int]] size=2, [[int]] r=255, [[int]] g=0, [[int]] b=0, [[int]] a=255, visibleTo=[[getRootElement]]() ] )&lt;br /&gt;
&lt;br /&gt;
[[bool]] [[destroyBlipAttachedTo]] ( [[entity]] entity )&lt;br /&gt;
&lt;br /&gt;
[[bool]] [[destroyAllBlips]] ()&lt;br /&gt;
&lt;br /&gt;
[[int]] [[getBlipIcon]] ( [[blip]] blip )&lt;br /&gt;
&lt;br /&gt;
[[int]] [[getBlipSize]] ( [[blip]] blip )&lt;br /&gt;
&lt;br /&gt;
[[int]] [[int]] [[int]] [[int]] [[getBlipColor]] ( [[blip]] blip )&lt;br /&gt;
&lt;br /&gt;
[[blip]] [[getBlipAttachedTo]] ( [[entity]] entity )&lt;br /&gt;
&lt;br /&gt;
[[bool]] [[setBlipIcon]] ( [[element]] blip, [[int]] icon )&lt;br /&gt;
&lt;br /&gt;
[[bool]] [[setBlipSize]] ( [[element]] blip, [[int]] size )&lt;br /&gt;
&lt;br /&gt;
[[bool]] [[setBlipColor]] ( [[element]] blip, [[int]] red, [[int]] green, [[int]] blue, [[int]] alpha )&lt;br /&gt;
&lt;br /&gt;
[[bool]] [[attachBlipToEntity]] ( [[blip]] blip, [[entity]] entity )&lt;br /&gt;
&lt;br /&gt;
==Element functions==&lt;br /&gt;
[[bool]] [[destroyElement]] ( [[element]] element )&lt;br /&gt;
&lt;br /&gt;
[[element]] [[getRootElement]] ()&lt;br /&gt;
&lt;br /&gt;
[[element]] [[getElementChild]] ( [[element]] parent, [[int]] index )&lt;br /&gt;
&lt;br /&gt;
[[int]] [[getElementChildrenCount]] ( [[element]] parent )&lt;br /&gt;
&lt;br /&gt;
[[string]] [[getElementID]] ( [[element]] element )&lt;br /&gt;
&lt;br /&gt;
[[element]] [[getElementByID]] ( [[string]] name, [[int]] id )&lt;br /&gt;
&lt;br /&gt;
[[element]] [[getElementByIndex]] ( [[string]] type, [[int]] index )&lt;br /&gt;
&lt;br /&gt;
[[var]] [[getElementData]] ( [[string]] name )&lt;br /&gt;
&lt;br /&gt;
[[element]] [[getElementParent]] ( [[element]] element )&lt;br /&gt;
&lt;br /&gt;
[[string]] [[getElementType]] ( [[element]] element )&lt;br /&gt;
&lt;br /&gt;
[[table]] [[getElementsByType]] ( [[string]] type )&lt;br /&gt;
&lt;br /&gt;
[[bool]] [[setElementID]] ( [[element]] element, [[string]] name )&lt;br /&gt;
&lt;br /&gt;
[[bool]] [[setElementData]] ( [[element]] element, [[string]] name, [[var]] data )&lt;br /&gt;
&lt;br /&gt;
[[bool]] [[setElementParent]] ( [[element]] element, [[element]] parent )&lt;br /&gt;
&lt;br /&gt;
==Entity functions==&lt;br /&gt;
[[float]] [[float]] [[float]] [[getEntityPosition]] ( [[entity]] entity )&lt;br /&gt;
&lt;br /&gt;
[[bool]] [[setEntityPosition]] ( [[element]] entity, [[float]] x, [[float]] y, [[float]] z )&lt;br /&gt;
&lt;br /&gt;
[[bool]] [[addEntityVisibleTo]] ( [[element]] entity, [[element]] visibleTo )&lt;br /&gt;
&lt;br /&gt;
[[bool]] [[removeEntityVisibleTo]] ( [[element]] entity, [[element]] visibleTo )&lt;br /&gt;
&lt;br /&gt;
[[bool]] [[clearEntityVisibleTo]] ( [[element]] entity )&lt;br /&gt;
&lt;br /&gt;
==Event functions==&lt;br /&gt;
[[bool]] [[addEvent]] ( [[string]] name, [[string]] arguments )&lt;br /&gt;
&lt;br /&gt;
[[bool]] [[addEventHandler]] ( [[string]] name, [[element]] element, [[string]] handler )&lt;br /&gt;
&lt;br /&gt;
[[bool]] [[triggerEvent]] ( [[string]] name, [[element]] element, [ [[var]] argument1, [[var]] argument2, ... ] )&lt;br /&gt;
&lt;br /&gt;
==Map functions==&lt;br /&gt;
[[string]] [[getLoadedMapName]] ()&lt;br /&gt;
&lt;br /&gt;
[[xmlnode]] [[getLoadedMapXMLRoot]] ()&lt;br /&gt;
&lt;br /&gt;
[[bool]] [[startMap]] ( [[string]] name )&lt;br /&gt;
&lt;br /&gt;
[[bool]] [[endMap]] ()&lt;br /&gt;
&lt;br /&gt;
[[element]] [[loadMapData]] ( [[xmlnode]] node, [[element]] parent )&lt;br /&gt;
&lt;br /&gt;
==Marker functions==&lt;br /&gt;
A marker is a 3D model in the world that can highlight a particular point or area, often used to instruct players where to go to perform actions such as entering buildings.&lt;br /&gt;
&lt;br /&gt;
[[element]] [[createMarker]] ( [[float]] x, [[float]] y, [[float]] z, [ [[string]] type, [[float]] size, [[int]] r, [[int]] g, [[int]] b, [[int]] a, visibleTo=[[getRootElement]] () ] )&lt;br /&gt;
&lt;br /&gt;
[[bool]] [[destroyAllMarkers]] ()&lt;br /&gt;
&lt;br /&gt;
[[int]] [[getMarkerCount]] ()&lt;br /&gt;
&lt;br /&gt;
[[string]] [[getMarkerType]] ( [[element]] marker )&lt;br /&gt;
&lt;br /&gt;
[[float]] [[getMarkerSize]] ( [[element]] marker )&lt;br /&gt;
&lt;br /&gt;
[[int]] [[int]] [[int]] [[int]] [[getMarkerColor]] ( [[element]] marker )&lt;br /&gt;
&lt;br /&gt;
[[float]] [[float]] [[float]] [[getMarkerTarget]] ( [[element]] marker )&lt;br /&gt;
&lt;br /&gt;
[[bool]] [[setMarkerType]] ( [[element]] marker, [[string]] type )&lt;br /&gt;
&lt;br /&gt;
[[bool]] [[setMarkerSize]] ( [[element]] marker, [[float]] size )&lt;br /&gt;
&lt;br /&gt;
[[bool]] [[setMarkerColor]] ( [[element]] marker, [[int]] r, [[int]] g, [[int]] b, [[int]] a )&lt;br /&gt;
&lt;br /&gt;
[[bool]] [[setMarkerTarget]] ( [[element]] marker, [[bool]] false )&lt;br /&gt;
&lt;br /&gt;
[[bool]] [[setMarkerTarget]] ( [[element]] marker, [[float]] x, [[float]] y, [[float]] z )&lt;br /&gt;
&lt;br /&gt;
==Object functions==&lt;br /&gt;
An object is a model in the world. These have collision models and can be moved and rotated at will. Any existing GTA model can be used.&lt;br /&gt;
&lt;br /&gt;
[[element]] [[createObject]] ( [[int]] id, [[float]] x, [[float]] y, [[float]] z, [ [[float]] rx, [[float]] ry, [[float]] rz] )&lt;br /&gt;
&lt;br /&gt;
[[bool]] [[destroyAllObjects]] ()&lt;br /&gt;
&lt;br /&gt;
[[int]] [[getObjectModel]] ( [[element]] object )&lt;br /&gt;
&lt;br /&gt;
[[float]] [[float]] [[float]] [[getObjectRotation]] ( [[element]] object )&lt;br /&gt;
&lt;br /&gt;
[[bool]] [[setObjectModel]] ( [[element]] object, [[int]] id )&lt;br /&gt;
&lt;br /&gt;
[[bool]] [[setObjectRotation]] ( [[element]] object, [[float]] x, [[float]] y, [[float]] z )&lt;br /&gt;
&lt;br /&gt;
[[bool]] [[moveObject]] ( [[element]] object, [[int]] time, [[float]] x, [[float]] y, [[float]] z, [[float]] rx, [[float]] ry, [[float]] rz )&lt;br /&gt;
&lt;br /&gt;
==Pickup functions==&lt;br /&gt;
[[pickup]] [[createPickup]] ( [[float]] x, [[float]] y, [[float]] z, [[int]] type, [[int]] amount/weapon, [ [[int]] ammo ] )&lt;br /&gt;
&lt;br /&gt;
[[bool]] [[destroyAllPickups]] ()&lt;br /&gt;
&lt;br /&gt;
[[int]] [[getPickupType]] ( [[pickup]] pickup )&lt;br /&gt;
&lt;br /&gt;
[[int]] [[getPickupWeapon]] ( [[pickup]] pickup )&lt;br /&gt;
&lt;br /&gt;
[[int]] [[getPickupHealth]] ( [[pickup]] pickup )&lt;br /&gt;
&lt;br /&gt;
[[int]] [[getPickupAmmo]] ( [[pickup]] pickup )&lt;br /&gt;
&lt;br /&gt;
[[bool]] [[setPickupType]] ( [[element]] pickup, [[int]] type, [[int]] amount/weapon, [ [[int]] ammo ] )&lt;br /&gt;
&lt;br /&gt;
==Player functions==&lt;br /&gt;
[[int]] [[getPlayerCount]] ()&lt;br /&gt;
&lt;br /&gt;
[[int]] [[getPlayerCurrentWeaponAmmoInClip]] ( [[player]] player )&lt;br /&gt;
&lt;br /&gt;
[[int]] [[getPlayerCurrentWeaponID]] ( [[player]] player )&lt;br /&gt;
&lt;br /&gt;
[[player]] [[getPlayerFromNick]] ( [[string]] nick )&lt;br /&gt;
&lt;br /&gt;
[[float]] [[getPlayerHealth]] ( [[player]] player )&lt;br /&gt;
&lt;br /&gt;
[[float]] [[getPlayerArmor]] ( [[player]] player )&lt;br /&gt;
&lt;br /&gt;
[[int]] [[getPlayerLevel]] ( [[player]] player )&lt;br /&gt;
&lt;br /&gt;
[[int]] [[getPlayerMoney]] ( [[player]] player )&lt;br /&gt;
&lt;br /&gt;
[[float]] [[float]] [[float]] [[getPlayerMoveSpeed]] ( [[player]] player )&lt;br /&gt;
&lt;br /&gt;
[[string]] [[getPlayerName]] ( [[player]] player )&lt;br /&gt;
&lt;br /&gt;
[[vehicle]] [[getPlayerOccupiedVehicle]] ( [[player]] player )&lt;br /&gt;
&lt;br /&gt;
[[int]] [[getPlayerOccupiedVehicleSeat]] ( [[player]] player )&lt;br /&gt;
&lt;br /&gt;
[[int]] [[getPlayerPing]] ( [[player]] player )&lt;br /&gt;
&lt;br /&gt;
[[float]] [[getPlayerRotation]] ( [[player]] player )&lt;br /&gt;
&lt;br /&gt;
[[int]] [[getPlayerSkin]] ( [[player]] player )&lt;br /&gt;
&lt;br /&gt;
[[string]] [[getPlayerSourceIP]] ( [[player]] player )&lt;br /&gt;
&lt;br /&gt;
[[player]] [[getRandomPlayer]] ()&lt;br /&gt;
&lt;br /&gt;
[[bool]] [[isPlayerDead]] ( [[player]] player )&lt;br /&gt;
&lt;br /&gt;
[[bool]] [[isPlayerDucked]] ( [[player]] player )&lt;br /&gt;
&lt;br /&gt;
[[bool]] [[isPlayerMuted]] ( [[player]] player )&lt;br /&gt;
&lt;br /&gt;
[[bool]] [[setPlayerRotation]] ( [[element]] player, [[float]] rotation )&lt;br /&gt;
&lt;br /&gt;
[[bool]] [[setPlayerSkin]] ( [[element]] player, [[int]] id )&lt;br /&gt;
&lt;br /&gt;
[[bool]] [[setPlayerHealth]] ( [[element]] player, [[float]] health )&lt;br /&gt;
&lt;br /&gt;
[[bool]] [[setPlayerArmor]] ( [[element]] player, [[float]] armor )&lt;br /&gt;
&lt;br /&gt;
[[bool]] [[setPlayerMoney]] ( [[element]] player, [[int]] money )&lt;br /&gt;
&lt;br /&gt;
[[bool]] [[givePlayerMoney]] ( [[element]] player, [[int]] money )&lt;br /&gt;
&lt;br /&gt;
[[bool]] [[takePlayerMoney]] ( [[element]] player, [[int]] money )&lt;br /&gt;
&lt;br /&gt;
[[bool]] [[killPlayer]] ( [[element]] player )&lt;br /&gt;
&lt;br /&gt;
[[bool]] [[warpPlayerintoVehicle]] ( [[player]] player, [[vehicle]] vehicle, [ [[int]] seat=0 ] )&lt;br /&gt;
&lt;br /&gt;
[[bool]] [[removePlayerFromVehicle]] ( [[element]] player )&lt;br /&gt;
&lt;br /&gt;
[[bool]] [[spawnPlayer]] ( [[player]] player, [[spawnpoint]] spawnpoint )&lt;br /&gt;
&lt;br /&gt;
[[bool]] [[spawnPlayer]] ( [[player]] player, [[float]] x, [[float]] y, [[float]] z, [[float]] rotation, [[int]] skin )&lt;br /&gt;
&lt;br /&gt;
==Radar area functions==&lt;br /&gt;
[[radararea]] [[createRadarArea]] ( [[float]] x, [[float]] y, [[float]] sizex, [[float]] sizey, [[int]] r, [[int]] g, [[int]] b, [[int]] a, [ visibleTo=[[getRootElement]] () ] )&lt;br /&gt;
&lt;br /&gt;
[[bool]] [[destroyAllRadarAreas]] ()&lt;br /&gt;
&lt;br /&gt;
[[float]] [[float]] [[getRadarAreaSize]] ( [[radararea]] radararea )&lt;br /&gt;
&lt;br /&gt;
[[int]] [[int]] [[int]] [[int]] [[getRadarAreaColor]] ( [[radararea]] radararea )&lt;br /&gt;
&lt;br /&gt;
[[bool]] [[isRadarAreaFlashing]] ( [[radararea]] radararea )&lt;br /&gt;
&lt;br /&gt;
[[bool]] [[setRadarAreaSize]] ( [[element]] radararea, [[float]] x, [[float]] y )&lt;br /&gt;
&lt;br /&gt;
[[bool]] [[setRadarAreaColor]] ( [[element]] radararea, [[int]] r, [[int]] g, [[int]] b, [[int]] a )&lt;br /&gt;
&lt;br /&gt;
[[bool]] [[setRadarAreaFlashing]] ( [[element]] radararea, [[bool]] flash )&lt;br /&gt;
&lt;br /&gt;
==Scoreboard functions==&lt;br /&gt;
[[bool]] [[addScoreboardColumn]] ( [[string]] id, [[string]] name, [[float]] width )&lt;br /&gt;
&lt;br /&gt;
[[bool]] [[removeScoreboardColumn]] ( [[string]] id )&lt;br /&gt;
&lt;br /&gt;
==Server functions==&lt;br /&gt;
[[int]] [[getMaxPlayers]] ()&lt;br /&gt;
&lt;br /&gt;
[[bool]] [[serverLoggerPrint]] ( [[string]] text )&lt;br /&gt;
&lt;br /&gt;
[[bool]] [[serverChat]] ( [[string]] text, [ [[int]] r, [[int]] g, [[int]] b ] )&lt;br /&gt;
&lt;br /&gt;
[[bool]] [[playerPM]] ( [[element]] player, [[string]] text, [ [[int]] r, [[int]] g, [[int]] b ] )&lt;br /&gt;
&lt;br /&gt;
[[bool]] [[outputDebugString]] ( [[string]] text, [ [[int]] level=3 ] )&lt;br /&gt;
&lt;br /&gt;
[[bool]] [[addCommandHandler]] ( [[string]] key, [[string]] handler )&lt;br /&gt;
&lt;br /&gt;
[[bool]] [[removeCommandHandler]] ( [[string]] key )&lt;br /&gt;
&lt;br /&gt;
==Spawnpoint functions==&lt;br /&gt;
[[float]] [[getspawnpointRotation]] ( [[spawnpoint]] spawn )&lt;br /&gt;
&lt;br /&gt;
[[int]] [[getspawnpointSkin]] ( [[spawnpoint]] spawn )&lt;br /&gt;
&lt;br /&gt;
[[bool]] [[setspawnpointRotation]] ( [[element]] spawn, [[float]] rotation )&lt;br /&gt;
&lt;br /&gt;
[[bool]] [[setspawnpointSkin]] ( [[element]] spawn, [[int]] skin )&lt;br /&gt;
&lt;br /&gt;
==Text Functions==&lt;br /&gt;
[[textdisplay]] [[textCreateDisplay]] ()&lt;br /&gt;
&lt;br /&gt;
[[void]] [[textDestroyDisplay]] ( [[textdisplay]] textdisplay )&lt;br /&gt;
&lt;br /&gt;
[[textitem]] [[textCreateTextItem]] ( [ [[string]] text, [[float]] x, [[float]] y, [[int]] priority, [[int]] r, [[int]] g, [[int]] b, [[int]] a, [[float]] scale ] )&lt;br /&gt;
&lt;br /&gt;
[[void]] [[textDestroyTextItem]] ( [[textitem]] textitem )&lt;br /&gt;
&lt;br /&gt;
[[void]] [[textDisplayAddText]] ( [[textdisplay]] textdisplay, [[textitem]] textitem )&lt;br /&gt;
&lt;br /&gt;
[[void]] [[textDisplayAddObserver]] ( [[textdisplay]] textdisplay, [[player]] player )&lt;br /&gt;
&lt;br /&gt;
[[void]] [[textItemSetText]] ( [[textitem]] textitem, [[string]] text )&lt;br /&gt;
&lt;br /&gt;
[[string]] [[textItemGetText]] ( [[textitem]] textitem )&lt;br /&gt;
&lt;br /&gt;
[[void]]] [[textItemSetScale]] ( [[textitem]] textitem, [[float]] scale )&lt;br /&gt;
&lt;br /&gt;
[[float]] [[textItemGetScale]] ( [[textitem]] textitem )&lt;br /&gt;
&lt;br /&gt;
[[void]] [[textItemSetPosition]] ( [[textitem]] textitem, [[float]] x, [[float]] y )&lt;br /&gt;
&lt;br /&gt;
[[float]] [[float]] [[textItemGetPosition]] ( textitem )&lt;br /&gt;
&lt;br /&gt;
[[void]] [[textItemSetColor]] ( [[textitem]] textitem, [[int]] r, [[int]] g, [[int]] b, [[int]] a )&lt;br /&gt;
&lt;br /&gt;
[[int]] [[int]] [[int]] [[int]] [[textItemGetColor]] ( [[textitem]] textitem )&lt;br /&gt;
&lt;br /&gt;
[[void]] [[textItemSetPriority]] ( [[textitem]] textitem, [[int]] priority )&lt;br /&gt;
&lt;br /&gt;
[[int]] [[textItemGetPriority]] ( [[textitem]] textitem )&lt;br /&gt;
&lt;br /&gt;
==Utility functions==&lt;br /&gt;
[[float]] [[getDistanceBetweenpoints2D]] ( [[float]] x1, [[float]] y1, [[float]] x2, [[float]] y2 )&lt;br /&gt;
&lt;br /&gt;
[[float]] [[getDistanceBetweenpoints3D]] ( [[float]] x1, [[float]] y1, [[float]] z1, [[float]] x2, [[float]] y2, [[float]] z2 )&lt;br /&gt;
&lt;br /&gt;
[[int]] [[randInt]] ( [[int]] lowerbound, [[int]] upperbound )&lt;br /&gt;
&lt;br /&gt;
[[float]] [[randFloat]] ()&lt;br /&gt;
&lt;br /&gt;
[[int]] [[getTickCount]] ()&lt;br /&gt;
&lt;br /&gt;
[[string]] [[gettok]] ( [[string]] text, [[int]] index, [[int]] separator )&lt;br /&gt;
&lt;br /&gt;
[[bool]] [[setTimer]] ( [[string]] function, [[int]] time, [ [[var]] argument1, [[var]] argument2, ... ] )&lt;br /&gt;
&lt;br /&gt;
==Vehicle functions==&lt;br /&gt;
[[vehicle]] [[createVehicle]] ( [[int]] id, [[float]] x, [[float]] y, [[float]] z, [ [[float]] rx, [[float]] ry, [[float]] rz ] )&lt;br /&gt;
&lt;br /&gt;
[[bool]] [[destroyAllVehicles]] ()&lt;br /&gt;
&lt;br /&gt;
[[int]] [[int]] [[int]] [[int]] [[getVehicleColor]] ( [[vehicle]] vehicle )&lt;br /&gt;
&lt;br /&gt;
[[float]] [[getVehicleHealth]] ( [[vehicle]] vehicle )&lt;br /&gt;
&lt;br /&gt;
[[int]] [[getVehicleID]] ( [[vehicle]] vehicle )&lt;br /&gt;
&lt;br /&gt;
[[int]] [[getVehicleIDFromName]] ( [[string]] name )&lt;br /&gt;
&lt;br /&gt;
[[int]] [[getVehicleIndex]] ( [[vehicle]] vehicle )&lt;br /&gt;
&lt;br /&gt;
[[float]] [[float]] [[float]] [[getVehicleMoveSpeed]] ( [[string]] vehicle )&lt;br /&gt;
&lt;br /&gt;
[[string]] [[getVehicleName]] ( [[string]] vehicle )&lt;br /&gt;
&lt;br /&gt;
[[string]] [[getVehicleNameFromID]] ( [[int]] id )&lt;br /&gt;
&lt;br /&gt;
[[player]] [[getVehicleOccupant]] ( [[vehicle]] vehicle, [ [[int]] seat=0 ] )&lt;br /&gt;
&lt;br /&gt;
[[float]] [[float]] [[float]] [[getVehicleRotation]] ( [[vehicle]] vehicle )&lt;br /&gt;
&lt;br /&gt;
[[float]] [[float]] [[float]] [[getVehicleTurnSpeed]] ( [[vehicle]] vehicle )&lt;br /&gt;
&lt;br /&gt;
[[float]] [[float]] [[getVehicleTurretPosition]] ( [[vehicle]] vehicle )&lt;br /&gt;
&lt;br /&gt;
[[int]] [[getVehicleMaxPassengers]] ( [[vehicle]] vehicle )&lt;br /&gt;
&lt;br /&gt;
[[bool]] [[isVehicleLocked]] ( [[vehicle]] vehicle )&lt;br /&gt;
&lt;br /&gt;
[[bool]] [[fixVehicle]] ( [[element]] vehicle )&lt;br /&gt;
&lt;br /&gt;
[[bool]] [[blowVehicle]] ( [[element]] vehicle, [ [[bool]] explode=true ] )&lt;br /&gt;
&lt;br /&gt;
[[bool]] [[setVehicleRotation]] ( [[element]] vehicle, [[float]] rx, [[float]] ry, [[float]] rz )&lt;br /&gt;
&lt;br /&gt;
[[bool]] [[setVehicleMoveSpeed]] ( [[element]] vehicle, [[float]] x, [[float]] y, [[float]] z )&lt;br /&gt;
&lt;br /&gt;
[[bool]] [[setVehicleTurnSpeed]] ( [[element]] vehicle, [[float]] rx, [[float]] ry, [[float]] rz )&lt;br /&gt;
&lt;br /&gt;
[[bool]] [[setVehicleHealth]] ( [[element]] vehicle, [[float]] health )&lt;br /&gt;
&lt;br /&gt;
[[bool]] [[setVehicleColor]] ( [[element]] vehicle, [[int]] color1, [[int]] color2, [[int]] color3, [[int]] color4 )&lt;br /&gt;
&lt;br /&gt;
[[bool]] [[setVehicleLocked]] ( [[element]] vehicle, [[bool]] locked )&lt;br /&gt;
&lt;br /&gt;
==Weapon functions==&lt;br /&gt;
[[string]] [[getWeaponNameFromID]] ( [[int]] id )&lt;br /&gt;
&lt;br /&gt;
[[int]] [[getWeaponIDFromName]] ( [[string]] name )&lt;br /&gt;
&lt;br /&gt;
[[bool]] [[giveWeapon]] ( [[element]] player, [[int]] [[weapon]], [ [[int]] ammo=30 ] )&lt;br /&gt;
&lt;br /&gt;
[[bool]] [[takeWeapon]] ( [[element]] player, [[int]] [[weapon]] )&lt;br /&gt;
&lt;br /&gt;
[[bool]] [[takeAllWeapons]] ( [[element]] player )&lt;br /&gt;
&lt;br /&gt;
==World functions==&lt;br /&gt;
[[int]] [[int]] [[getTime]] ()&lt;br /&gt;
&lt;br /&gt;
[[int]] [[getWeather]] ()&lt;br /&gt;
&lt;br /&gt;
[[bool]] [[setTime]] ( [[int]] hour, [[int]] min )&lt;br /&gt;
&lt;br /&gt;
[[bool]] [[setWeather]] ( [[int]] id )&lt;br /&gt;
&lt;br /&gt;
[[bool]] [[setWeatherBlended]] ( [[int]] id )&lt;br /&gt;
&lt;br /&gt;
==XML functions==&lt;br /&gt;
[[xmlnode]] [[xmlFindSubNode]] ( [[xmlnode]] parent, [[string]] subnode, [[int]] index )&lt;br /&gt;
&lt;br /&gt;
[[string]] [[xmlNodeGetValue]] ( [[xmlnode]] xmlnode )&lt;br /&gt;
&lt;br /&gt;
[[bool]] [[xmlNodeSetValue]] ( [[xmlnode]] xmlnode, [[var]] value )&lt;br /&gt;
&lt;br /&gt;
[[string]] [[xmlNodeGetAttribute]] ( [[xmlnode]] xmlnode, [[string]] name )&lt;br /&gt;
&lt;br /&gt;
[[bool]] [[xmlNodeSetAttribute]] ( [[xmlnode]] xmlnode, [[string]] name, [[var]] value )&lt;br /&gt;
&lt;br /&gt;
[[xmlnode]] [[xmlLoadFile]] ( [[string]] filename )&lt;br /&gt;
&lt;br /&gt;
[[bool]] [[xmlUnloadFile]] ( [[xmlnode]] xmlnode )&lt;/div&gt;</summary>
		<author><name>Aeron</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Advanced_Topics&amp;diff=2198</id>
		<title>Advanced Topics</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Advanced_Topics&amp;diff=2198"/>
		<updated>2006-05-08T16:48:42Z</updated>

		<summary type="html">&lt;p&gt;Aeron: /* Custom element types */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This page explains some advanced things you can do with scripts, this page should probably be changed later, depending how useful it is.&lt;br /&gt;
&lt;br /&gt;
==Custom element types==&lt;br /&gt;
One of the most powerful areas of MTA scripting is custom element types. These types can be defined in map files and their functionality implemented by scripts. In this example, we're going to look at a custom ''flag'' element, such as you would use in a ''capture-the-flag'' game-mode, though this same method could be used for many different things.&lt;br /&gt;
&lt;br /&gt;
First of all you need to decide what format you want the element to be defined in, we're going to use the following:&lt;br /&gt;
 &amp;lt;flag id=&amp;quot;redFlag&amp;quot; name=&amp;quot;red team flag&amp;quot; posX=&amp;quot;1210.0&amp;quot; posY=&amp;quot;-2241.34&amp;quot; posZ=&amp;quot;18.4332&amp;quot; /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Now you can define the flag element in the map file.&lt;br /&gt;
&lt;br /&gt;
Next, you can write some code to handle your flag element. First of all, lets add an event that happens when you pick it up, called ''onFlagPickup''. We should do this in an external script file, lets call this ''capture-the-flag.lua''. At the top of the file (outside any functions), define the event:&lt;br /&gt;
&lt;br /&gt;
 [[addEvent]] ( &amp;quot;onFlagPickup&amp;quot;, &amp;quot;player&amp;quot; )&lt;br /&gt;
&lt;br /&gt;
Easy enough! We've added an event that will have a parameter called ''player''. We'll use this to say which player picked up the flag. Next, we have a choice. Either we can add an event handler to the root of the map, and capture every flag pickup event, or we can add it to the individual flag. Its easiest if we use the root of the map, so lets do this here:&lt;br /&gt;
&lt;br /&gt;
 mapRoot = [[getRootElement]] ( )&lt;br /&gt;
 [[addEventHandler]] ( &amp;quot;onFlagPickup&amp;quot;, mapRoot, &amp;quot;flagPickup&amp;quot; )&lt;br /&gt;
&lt;br /&gt;
This says that we want to direct all ''onFlagPickup'' events to our function called ''flagPickup'', that we're about to define on the following line:&lt;br /&gt;
&lt;br /&gt;
 function flagPickup ( player )&lt;br /&gt;
    flagName = [[getElementData]] ( source, &amp;quot;name&amp;quot; )&lt;br /&gt;
    playerName = [[getPlayerName]] ( player )&lt;br /&gt;
    [[serverChat]] ( playerName .. &amp;quot; picked up the flag &amp;quot; .. flagName )&lt;br /&gt;
 end&lt;br /&gt;
&lt;br /&gt;
The final part of the puzzle is to make it so that the event is triggered at the correct time. To do this, we'll need to create a timer that will be used to check if a player is trying to pick up the flag. Put the following code below your previous [[addEventHandler]] call:&lt;br /&gt;
&lt;br /&gt;
 [[setTimer]] ( &amp;quot;flagCheckPulse&amp;quot;, 1000 )&lt;br /&gt;
&lt;br /&gt;
This will make our soon-to-be-defined function ''flagCheckPulse'' be called every second. Now we'll define this function:&lt;br /&gt;
&lt;br /&gt;
 function flagCheckPulse ( )&lt;br /&gt;
    local flags = [[getElementsByType]] ( &amp;quot;flag&amp;quot; )&lt;br /&gt;
    local players = [[getElementsByType]] ( &amp;quot;player&amp;quot; )&lt;br /&gt;
    local flagPositionX, flagPositionY, flagPositionZ&lt;br /&gt;
    for flagKey,flagValue in flags do&lt;br /&gt;
       flagPositionX = [[getElementData]] ( flagValue, &amp;quot;posX&amp;quot; )&lt;br /&gt;
       flagPositionY = [[getElementData]] ( flagValue, &amp;quot;posY&amp;quot; )&lt;br /&gt;
       flagPositionZ = [[getElementData]] ( flagValue, &amp;quot;posZ&amp;quot; )       &lt;br /&gt;
       for playerKey,playerValue in players do&lt;br /&gt;
          if ([[getDistanceBetweenPoints3D]] ( flagPositionX, flagPostionY, flagPositionZ, [[getEntityPosition]] ( playerValue ) ) &amp;lt; 1) then&lt;br /&gt;
             [[triggerEvent]] ( &amp;quot;onFlagPickup&amp;quot;, flagValue, playerValue )&lt;br /&gt;
          end&lt;br /&gt;
       end&lt;br /&gt;
    end&lt;br /&gt;
    [[setTimer]] ( &amp;quot;flagCheckPulse&amp;quot;, 1000 )&lt;br /&gt;
 end&lt;br /&gt;
&lt;br /&gt;
And thats it!&lt;br /&gt;
&lt;br /&gt;
Note: Although this should work, its not tested. Some things could be improved if better support was provided by us, for example, theres no getPlayerByIndex, no getElementCount(type), an onPlayerPulse event would be useful. This currently only works for one flag, as theres I'm not sure how to find how many flags getElementByType ( &amp;quot;flag&amp;quot; ) returned.&lt;br /&gt;
&lt;br /&gt;
Next: representing the flag in the world - spawning an object at the flags position.&lt;/div&gt;</summary>
		<author><name>Aeron</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Advanced_Topics&amp;diff=2195</id>
		<title>Advanced Topics</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Advanced_Topics&amp;diff=2195"/>
		<updated>2006-05-08T16:07:37Z</updated>

		<summary type="html">&lt;p&gt;Aeron: /* Custom element types */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This page explains some advanced things you can do with scripts, this page should probably be changed later, depending how useful it is.&lt;br /&gt;
&lt;br /&gt;
==Custom element types==&lt;br /&gt;
One of the most powerful areas of MTA scripting is custom element types. These types can be defined in map files and their functionality implemented by scripts. In this example, we're going to look at a custom ''flag'' element, such as you would use in a ''capture-the-flag'' game-mode, though this same method could be used for many different things.&lt;br /&gt;
&lt;br /&gt;
First of all you need to decide what format you want the element to be defined in, we're going to use the following:&lt;br /&gt;
 &amp;lt;flag id=&amp;quot;redFlag&amp;quot; name=&amp;quot;red team flag&amp;quot; posX=&amp;quot;1210.0&amp;quot; posY=&amp;quot;-2241.34&amp;quot; posZ=&amp;quot;18.4332&amp;quot; /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Now you can define the flag element in the map file.&lt;br /&gt;
&lt;br /&gt;
Next, you can write some code to handle your flag element. First of all, lets add an event that happens when you pick it up, called ''onFlagPickup''. We should do this in an external script file, lets call this ''capture-the-flag.lua''. At the top of the file (outside any functions), define the event:&lt;br /&gt;
&lt;br /&gt;
 [[addEvent]] ( &amp;quot;onFlagPickup&amp;quot;, &amp;quot;player&amp;quot; )&lt;br /&gt;
&lt;br /&gt;
Easy enough! We've added an event that will have a parameter called ''player''. We'll use this to say which player picked up the flag. Next, we have a choice. Either we can add an event handler to the root of the map, and capture every flag pickup event, or we can add it to the individual flag. Its easiest if we use the root of the map, so lets do this here:&lt;br /&gt;
&lt;br /&gt;
 mapRoot = [[getRootElement]] ( )&lt;br /&gt;
 [[addEventHandler]] ( &amp;quot;onFlagPickup&amp;quot;, mapRoot, &amp;quot;flagPickup&amp;quot; )&lt;br /&gt;
&lt;br /&gt;
This says that we want to direct all ''onFlagPickup'' events to our function called ''flagPickup'', that we're about to define on the following line:&lt;br /&gt;
&lt;br /&gt;
 function flagPickup ( player )&lt;br /&gt;
    flagName = [[getElementData]] ( source, &amp;quot;name&amp;quot; )&lt;br /&gt;
    playerName = [[getPlayerName]] ( player )&lt;br /&gt;
    serverChat ( playerName .. &amp;quot; picked up the flag &amp;quot; .. flagName )&lt;br /&gt;
 end&lt;br /&gt;
&lt;br /&gt;
The final part of the puzzle is to make it so that the event is triggered at the correct time. To do this, we'll need to create a timer that will be used to check if a player is trying to pick up the flag. Put the following code below your previous [[addEventHandler]] call:&lt;br /&gt;
&lt;br /&gt;
 [[setTimer]] ( &amp;quot;flagCheckPulse&amp;quot;, 1000 )&lt;br /&gt;
&lt;br /&gt;
This will make our soon-to-be-defined function ''flagCheckPulse'' be called every second. Now we'll define this function:&lt;br /&gt;
&lt;br /&gt;
 function flagCheckPulse ( )&lt;br /&gt;
    local flags = [[getElementsByType]] ( &amp;quot;flag&amp;quot; )&lt;br /&gt;
    local players = [[getElementsByType]] ( &amp;quot;player&amp;quot; )&lt;br /&gt;
    local flagPositionX, flagPositionY, flagPositionZ&lt;br /&gt;
    for flagKey,flagValue in flags do&lt;br /&gt;
       flagPositionX = [[getElementData]] ( flagValue, &amp;quot;posX&amp;quot; )&lt;br /&gt;
       flagPositionY = [[getElementData]] ( flagValue, &amp;quot;posY&amp;quot; )&lt;br /&gt;
       flagPositionZ = [[getElementData]] ( flagValue, &amp;quot;posZ&amp;quot; )       &lt;br /&gt;
       for playerKey,playerValue in players do&lt;br /&gt;
          if ([[getDistanceBetweenPoints3D]] ( flagPositionX, flagPostionY, flagPositionZ, [[getEntityPosition]] ( playerValue ) ) &amp;lt; 1) then&lt;br /&gt;
             [[triggerEvent]] ( &amp;quot;onFlagPickup&amp;quot;, flagValue, playerValue )&lt;br /&gt;
          end&lt;br /&gt;
       end&lt;br /&gt;
    end&lt;br /&gt;
    [[setTimer]] ( &amp;quot;flagCheckPulse&amp;quot;, 1000 )&lt;br /&gt;
 end&lt;br /&gt;
&lt;br /&gt;
And thats it!&lt;br /&gt;
&lt;br /&gt;
Note: Although this should work, its not tested. Some things could be improved if better support was provided by us, for example, theres no getPlayerByIndex, no getElementCount(type), an onPlayerPulse event would be useful. This currently only works for one flag, as theres I'm not sure how to find how many flags getElementByType ( &amp;quot;flag&amp;quot; ) returned.&lt;br /&gt;
&lt;br /&gt;
Next: representing the flag in the world - spawning an object at the flags position.&lt;/div&gt;</summary>
		<author><name>Aeron</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Advanced_Topics&amp;diff=2193</id>
		<title>Advanced Topics</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Advanced_Topics&amp;diff=2193"/>
		<updated>2006-05-08T16:04:02Z</updated>

		<summary type="html">&lt;p&gt;Aeron: /* Custom element types */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This page explains some advanced things you can do with scripts, this page should probably be changed later, depending how useful it is.&lt;br /&gt;
&lt;br /&gt;
==Custom element types==&lt;br /&gt;
One of the most powerful areas of MTA scripting is custom element types. These types can be defined in map files and their functionality implemented by scripts. In this example, we're going to look at a custom ''flag'' element, such as you would use in a ''capture-the-flag'' game-mode, though this same method could be used for many different things.&lt;br /&gt;
&lt;br /&gt;
First of all you need to decide what format you want the element to be defined in, we're going to use the following:&lt;br /&gt;
 &amp;lt;flag id=&amp;quot;redFlag&amp;quot; name=&amp;quot;red team flag&amp;quot; posX=&amp;quot;1210.0&amp;quot; posY=&amp;quot;-2241.34&amp;quot; posZ=&amp;quot;18.4332&amp;quot; /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Now you can define the flag element in the map file.&lt;br /&gt;
&lt;br /&gt;
Next, you can write some code to handle your flag element. First of all, lets add an event that happens when you pick it up, called ''onFlagPickup''. We should do this in an external script file, lets call this ''capture-the-flag.lua''. At the top of the file (outside any functions), define the event:&lt;br /&gt;
&lt;br /&gt;
 [[addEvent]] ( &amp;quot;onFlagPickup&amp;quot;, &amp;quot;player&amp;quot; )&lt;br /&gt;
&lt;br /&gt;
Easy enough! We've added an event that will have a parameter called ''player''. We'll use this to say which player picked up the flag. Next, we have a choice. Either we can add an event handler to the root of the map, and capture every flag pickup event, or we can add it to the individual flag. Its easiest if we use the root of the map, so lets do this here:&lt;br /&gt;
&lt;br /&gt;
 mapRoot = [[getRootElement]] ( )&lt;br /&gt;
 [[addEventHandler]] ( &amp;quot;onFlagPickup&amp;quot;, mapRoot, &amp;quot;flagPickup&amp;quot; )&lt;br /&gt;
&lt;br /&gt;
This says that we want to direct all ''onFlagPickup'' events to our function called ''flagPickup'', that we're about to define on the following line:&lt;br /&gt;
&lt;br /&gt;
 function flagPickup ( player )&lt;br /&gt;
    flagName = [[getElementData]] ( source, &amp;quot;name&amp;quot; )&lt;br /&gt;
    playerName = [[getPlayerName]] ( player )&lt;br /&gt;
    serverChat ( playerName .. &amp;quot; picked up the flag &amp;quot; .. flagName )&lt;br /&gt;
 end&lt;br /&gt;
&lt;br /&gt;
The final part of the puzzle is to make it so that the event is triggered at the correct time. To do this, we'll need to create a timer that will be used to check if a player is trying to pick up the flag. Put the following code below your previous [[addEventHandler]] call:&lt;br /&gt;
&lt;br /&gt;
 [[setTimer]] ( &amp;quot;flagCheckPulse&amp;quot;, 1000 )&lt;br /&gt;
&lt;br /&gt;
This will make our soon-to-be-defined function ''flagCheckPulse'' be called every second. Now we'll define this function:&lt;br /&gt;
&lt;br /&gt;
 function flagCheckPulse ( )&lt;br /&gt;
    local flags = [[getElementsByType]] ( &amp;quot;flag&amp;quot; )&lt;br /&gt;
    local players = [[getElementsByType]] ( &amp;quot;player&amp;quot; )&lt;br /&gt;
    local flagPositionX, flagPositionY, flagPositionZ&lt;br /&gt;
    for flagKey,flagValue in flags do&lt;br /&gt;
       flagPositionX = [[getElementData]] ( flagValue, &amp;quot;posX&amp;quot; )&lt;br /&gt;
       flagPositionY = [[getElementData]] ( flagValue, &amp;quot;posY&amp;quot; )&lt;br /&gt;
       flagPositionZ = [[getElementData]] ( flagValue, &amp;quot;posZ&amp;quot; )       &lt;br /&gt;
       for playerKey,playerValue in players do&lt;br /&gt;
          if (getDistanceBetweenPoints3D ( flagPositionX, flagPostionY, flagPositionZ, getEntityPosition ( playerValue ) ) &amp;lt; 1) then&lt;br /&gt;
             [[triggerEvent]] ( &amp;quot;onFlagPickup&amp;quot;, flagValue, playerValue )&lt;br /&gt;
          end&lt;br /&gt;
       end&lt;br /&gt;
    end&lt;br /&gt;
    [[setTimer]] ( &amp;quot;flagCheckPulse&amp;quot;, 1000 )&lt;br /&gt;
 end&lt;br /&gt;
&lt;br /&gt;
And thats it!&lt;br /&gt;
&lt;br /&gt;
Note: Although this should work, its not tested. Some things could be improved if better support was provided by us, for example, theres no getPlayerByIndex, no getElementCount(type), an onPlayerPulse event would be useful. This currently only works for one flag, as theres I'm not sure how to find how many flags getElementByType ( &amp;quot;flag&amp;quot; ) returned.&lt;br /&gt;
&lt;br /&gt;
Next: representing the flag in the world - spawning an object at the flags position.&lt;/div&gt;</summary>
		<author><name>Aeron</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Advanced_Topics&amp;diff=2192</id>
		<title>Advanced Topics</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Advanced_Topics&amp;diff=2192"/>
		<updated>2006-05-08T16:01:35Z</updated>

		<summary type="html">&lt;p&gt;Aeron: /* Custom element types */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This page explains some advanced things you can do with scripts, this page should probably be changed later, depending how useful it is.&lt;br /&gt;
&lt;br /&gt;
==Custom element types==&lt;br /&gt;
One of the most powerful areas of MTA scripting is custom element types. These types can be defined in map files and their functionality implemented by scripts. In this example, we're going to look at a custom ''flag'' element, such as you would use in a ''capture-the-flag'' game-mode, though this same method could be used for many different things.&lt;br /&gt;
&lt;br /&gt;
First of all you need to decide what format you want the element to be defined in, we're going to use the following:&lt;br /&gt;
 &amp;lt;flag id=&amp;quot;redFlag&amp;quot; name=&amp;quot;red team flag&amp;quot; posX=&amp;quot;1210.0&amp;quot; posY=&amp;quot;-2241.34&amp;quot; posZ=&amp;quot;18.4332&amp;quot; /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Now you can define the flag element in the map file.&lt;br /&gt;
&lt;br /&gt;
Next, you can write some code to handle your flag element. First of all, lets add an event that happens when you pick it up, called ''onFlagPickup''. We should do this in an external script file, lets call this ''capture-the-flag.lua''. At the top of the file (outside any functions), define the event:&lt;br /&gt;
&lt;br /&gt;
 [[addEvent]] ( &amp;quot;onFlagPickup&amp;quot;, &amp;quot;player&amp;quot; )&lt;br /&gt;
&lt;br /&gt;
Easy enough! We've added an event that will have a parameter called ''player''. We'll use this to say which player picked up the flag. Next, we have a choice. Either we can add an event handler to the root of the map, and capture every flag pickup event, or we can add it to the individual flag. Its easiest if we use the root of the map, so lets do this here:&lt;br /&gt;
&lt;br /&gt;
 mapRoot = [[getRootElement]] ( )&lt;br /&gt;
 [[addEventHandler]] ( &amp;quot;onFlagPickup&amp;quot;, mapRoot, &amp;quot;flagPickup&amp;quot; )&lt;br /&gt;
&lt;br /&gt;
This says that we want to direct all ''onFlagPickup'' events to our function called ''flagPickup'', that we're about to define on the following line:&lt;br /&gt;
&lt;br /&gt;
 function flagPickup ( player )&lt;br /&gt;
    flagName = [[getElementData]] ( source, &amp;quot;name&amp;quot; )&lt;br /&gt;
    playerName = [[getPlayerName]] ( player )&lt;br /&gt;
    serverChat ( playerName .. &amp;quot; picked up the flag &amp;quot; .. flagName )&lt;br /&gt;
 end&lt;br /&gt;
&lt;br /&gt;
The final part of the puzzle is to make it so that the event is triggered at the correct time. To do this, we'll need to create a timer that will be used to check if a player is trying to pick up the flag. Put the following code below your previous [[addEventHandler]] call:&lt;br /&gt;
&lt;br /&gt;
 [[setTimer]] ( &amp;quot;flagCheckPulse&amp;quot;, 1000 )&lt;br /&gt;
&lt;br /&gt;
This will make our soon-to-be-defined function ''flagCheckPulse'' be called every second. Now we'll define this function:&lt;br /&gt;
&lt;br /&gt;
 function flagCheckPulse ( )&lt;br /&gt;
    local flags = [[getElementsByType]] ( &amp;quot;flag&amp;quot; )&lt;br /&gt;
    local players = [[getElementsByType]] ( &amp;quot;player&amp;quot; )&lt;br /&gt;
    for flagKey,flagValue in flags do&lt;br /&gt;
       local flagPositionX = [[getElementData]] ( flagValue, &amp;quot;posX&amp;quot; )&lt;br /&gt;
       local flagPositionY = [[getElementData]] ( flagValue, &amp;quot;posY&amp;quot; )&lt;br /&gt;
       local flagPositionZ = [[getElementData]] ( flagValue, &amp;quot;posZ&amp;quot; )       &lt;br /&gt;
       for playerKey,playerValue in players do&lt;br /&gt;
          if (getDistanceBetweenPoints3D ( flagPositionX, flagPostionY, flagPositionZ, getEntityPosition ( playerValue ) ) &amp;lt; 1) then&lt;br /&gt;
             [[triggerEvent]] ( &amp;quot;onFlagPickup&amp;quot;, flagValue, playerValue )&lt;br /&gt;
          end&lt;br /&gt;
       end&lt;br /&gt;
    end&lt;br /&gt;
 end&lt;br /&gt;
&lt;br /&gt;
And thats it!&lt;br /&gt;
&lt;br /&gt;
Note: Although this should work, its not tested. Some things could be improved if better support was provided by us, for example, theres no getPlayerByIndex, no getElementCount(type), an onPlayerPulse event would be useful. This currently only works for one flag, as theres I'm not sure how to find how many flags getElementByType ( &amp;quot;flag&amp;quot; ) returned.&lt;br /&gt;
&lt;br /&gt;
Next: representing the flag in the world - spawning an object at the flags position.&lt;/div&gt;</summary>
		<author><name>Aeron</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Server_Scripting_Functions&amp;diff=2179</id>
		<title>Server Scripting Functions</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Server_Scripting_Functions&amp;diff=2179"/>
		<updated>2006-05-06T21:25:10Z</updated>

		<summary type="html">&lt;p&gt;Aeron: /* Entity functions */  - ZOMG TYPO&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This page lists all the scripting functions that have been implemented and are available as native functions from the Deathmatch mod. To request a function or event, use [[Requested Functions and Events]]&lt;br /&gt;
&lt;br /&gt;
Please note that the scripting functions can now be extended by loading in dynamic modules that provide new functionality, such as MySQL database access. These scripting functions are non-native and require the module to be loaded in order to work.&lt;br /&gt;
&lt;br /&gt;
Head over to [[Module functions]] for a list of non-native functions and modules that are available.&lt;br /&gt;
&lt;br /&gt;
==Blip functions==&lt;br /&gt;
[[blip]] [[createBlip]] ( float x, float y, float z, [int icon=0, int size=2, int r=255, int g=0, int b=0, int a=255] )&lt;br /&gt;
&lt;br /&gt;
[[blip]] [[createBlipAttachedTo]] ( [[entity]] entity, [int icon=0, int size=2, int r=255, int g=0, int b=0, int a=255] )&lt;br /&gt;
&lt;br /&gt;
bool [[destroyBlipAttachedTo]] ( [[entity]] entity )&lt;br /&gt;
&lt;br /&gt;
bool [[destroyAllBlips]] ()&lt;br /&gt;
&lt;br /&gt;
int [[getBlipIcon]] ( [[blip]] blip )&lt;br /&gt;
&lt;br /&gt;
int [[getBlipSize]] ( [[blip]] blip )&lt;br /&gt;
&lt;br /&gt;
int int int int [[getBlipColor]] ( [[blip]] blip )&lt;br /&gt;
&lt;br /&gt;
blip [[getBlipAttachedTo]] ( [[entity]] entity )&lt;br /&gt;
&lt;br /&gt;
bool [[setBlipIcon]] ( [[element]] blip, int icon )&lt;br /&gt;
&lt;br /&gt;
bool [[setBlipSize]] ( [[element]] blip, int size )&lt;br /&gt;
&lt;br /&gt;
bool [[setBlipColor]] ( [[element]] blip, int red, int green, int blue, int alpha )&lt;br /&gt;
&lt;br /&gt;
bool [[attachBlipToEntity]] ( [[blip]] blip, [[entity]] entity )&lt;br /&gt;
&lt;br /&gt;
==Element functions==&lt;br /&gt;
bool [[destroyElement]] ( [[element]] element )&lt;br /&gt;
&lt;br /&gt;
[[element]] [[getRootElement]] ()&lt;br /&gt;
&lt;br /&gt;
[[element]] [[getElementChild]] ( [[element]] parent, int index )&lt;br /&gt;
&lt;br /&gt;
int [[getElementChildrenCount]] ( [[element]] parent )&lt;br /&gt;
&lt;br /&gt;
string [[getElementID]] ( [[element]] element )&lt;br /&gt;
&lt;br /&gt;
[[element]] [[getElementByID]] ( string name, int index )&lt;br /&gt;
&lt;br /&gt;
[[element]] [[getElementByIndex]] ( string type, int index )&lt;br /&gt;
&lt;br /&gt;
var [[getElementData]] ( string name )&lt;br /&gt;
&lt;br /&gt;
[[element]] [[getElementParent]] ( [[element]] element )&lt;br /&gt;
&lt;br /&gt;
string [[getElementType]] ( [[element]] element )&lt;br /&gt;
&lt;br /&gt;
table [[getElementsByType]] ( string type )&lt;br /&gt;
&lt;br /&gt;
bool [[setElementID]] ( [[element]] element, string name )&lt;br /&gt;
&lt;br /&gt;
bool [[setElementData]] ( [[element]] element, string name, var data )&lt;br /&gt;
&lt;br /&gt;
bool [[setElementParent]] ( [[element]] element, [[element]] parent )&lt;br /&gt;
&lt;br /&gt;
==Entity functions==&lt;br /&gt;
float float float [[getEntityPosition]] ( [[entity]] entity )&lt;br /&gt;
&lt;br /&gt;
bool [[setEntityPosition]] ( [[element]] entity, float x, float y, float z )&lt;br /&gt;
&lt;br /&gt;
bool [[addEntityVisibleTo]] ( [[element]] entity, [[element]] visibleto )&lt;br /&gt;
&lt;br /&gt;
bool [[removeEntityVisibleTo]] ( [[element]] entity, [[element]] visibleto )&lt;br /&gt;
&lt;br /&gt;
bool [[clearEntityVisibleTo]] ( [[element]] entity )&lt;br /&gt;
&lt;br /&gt;
==Event functions==&lt;br /&gt;
bool [[addEvent]] ( string name, string arguments )&lt;br /&gt;
&lt;br /&gt;
bool [[addEventHandler]] ( string name, [[element]] element, string handler )&lt;br /&gt;
&lt;br /&gt;
bool [[triggerEvent]] ( string name, [[element]] element, [argument, ...] )&lt;br /&gt;
&lt;br /&gt;
==Map functions==&lt;br /&gt;
string [[getLoadedMapName]] ()&lt;br /&gt;
&lt;br /&gt;
xmlnode [[getLoadedMapXMLRoot]] ()&lt;br /&gt;
&lt;br /&gt;
bool [[startMap]] ( string name )&lt;br /&gt;
&lt;br /&gt;
bool [[endMap]] ()&lt;br /&gt;
&lt;br /&gt;
==Marker functions==&lt;br /&gt;
[[marker]] [[createMarker]] ( float x, float y, float z, [int type, float size, int r, int g, int b] )&lt;br /&gt;
&lt;br /&gt;
bool [[destroyAllMarkers]] ()&lt;br /&gt;
&lt;br /&gt;
int [[getMarkerCount]] ()&lt;br /&gt;
&lt;br /&gt;
int [[getMarkerType]] ( [[marker]] marker )&lt;br /&gt;
&lt;br /&gt;
float [[getMarkerSize]] ( [[marker]] marker )&lt;br /&gt;
&lt;br /&gt;
int int int [[getMarkerColor]] ( [[marker]] marker )&lt;br /&gt;
&lt;br /&gt;
bool [[setMarkerType]] ( [[element]] marker, int type )&lt;br /&gt;
&lt;br /&gt;
bool [[setMarkerSize]] ( [[element]] marker, float size )&lt;br /&gt;
&lt;br /&gt;
bool [[setMarkerColor]] ( [[element]] marker, int r, int g, int b )&lt;br /&gt;
&lt;br /&gt;
==Object functions==&lt;br /&gt;
[[object]] [[createObject]] ( int id, float x, float y, float z, [float rx, float ry, float rz] )&lt;br /&gt;
&lt;br /&gt;
bool [[destroyAllObjects]] ()&lt;br /&gt;
&lt;br /&gt;
int [[getObjectModel]] ( [[object]] object )&lt;br /&gt;
&lt;br /&gt;
float float float [[getObjectRotation]] ( [[object]] object )&lt;br /&gt;
&lt;br /&gt;
bool [[setObjectModel]] ( [[element]] object, int id )&lt;br /&gt;
&lt;br /&gt;
bool [[setObjectRotation]] ( [[element]] object, float x, float y, float z )&lt;br /&gt;
&lt;br /&gt;
bool [[moveObject]] ( [[element]] object, int time, float x, float y, float z, float rx, float ry, float rz )&lt;br /&gt;
&lt;br /&gt;
==Pickup functions==&lt;br /&gt;
[[pickup]] [[createPickup]] ( float x, float y, float z, int type, int amount/weapon, [int ammo] )&lt;br /&gt;
&lt;br /&gt;
bool [[destroyAllPickups]] ()&lt;br /&gt;
&lt;br /&gt;
int [[getPickupType]] ( [[pickup]] pickup )&lt;br /&gt;
&lt;br /&gt;
int [[getPickupWeapon]] ( [[pickup]] pickup )&lt;br /&gt;
&lt;br /&gt;
int [[getPickupHealth]] ( [[pickup]] pickup )&lt;br /&gt;
&lt;br /&gt;
int [[getPickupAmmo]] ( [[pickup]] pickup )&lt;br /&gt;
&lt;br /&gt;
bool [[setPickupType]] ( [[element]] pickup, int type, int amount/weapon, [int ammo] )&lt;br /&gt;
&lt;br /&gt;
==Player functions==&lt;br /&gt;
int [[getPlayerCount]] ()&lt;br /&gt;
&lt;br /&gt;
int [[getPlayerCurrentWeaponAmmoInClip]] ( [[player]] player )&lt;br /&gt;
&lt;br /&gt;
int [[getPlayerCurrentWeaponID]] ( [[player]] player )&lt;br /&gt;
&lt;br /&gt;
[[player]] [[getPlayerFromNick]] ( string nick )&lt;br /&gt;
&lt;br /&gt;
float [[getPlayerHealth]] ( [[player]] player )&lt;br /&gt;
&lt;br /&gt;
float [[getPlayerArmor]] ( [[player]] player )&lt;br /&gt;
&lt;br /&gt;
int [[getPlayerLevel]] ( [[player]] player )&lt;br /&gt;
&lt;br /&gt;
int [[getPlayerMoney]] ( [[player]] player )&lt;br /&gt;
&lt;br /&gt;
float float float [[getPlayerMoveSpeed]] ( [[player]] player )&lt;br /&gt;
&lt;br /&gt;
string [[getPlayerName]] ( [[player]] player )&lt;br /&gt;
&lt;br /&gt;
[[vehicle]] [[getPlayerOccupiedVehicle]] ( [[player]] player )&lt;br /&gt;
&lt;br /&gt;
int [[getPlayerOccupiedVehicleSeat]] ( [[player]] player )&lt;br /&gt;
&lt;br /&gt;
int [[getPlayerPing]] ( [[player]] player )&lt;br /&gt;
&lt;br /&gt;
float [[getPlayerRotation]] ( [[player]] player )&lt;br /&gt;
&lt;br /&gt;
int [[getPlayerSkin]] ( [[player]] player )&lt;br /&gt;
&lt;br /&gt;
string [[getPlayerSourceIP]] ( [[player]] player )&lt;br /&gt;
&lt;br /&gt;
[[player]] [[getRandomPlayer]] ()&lt;br /&gt;
&lt;br /&gt;
bool [[isPlayerDead]] ( [[player]] player )&lt;br /&gt;
&lt;br /&gt;
bool [[isPlayerDucked]] ( [[player]] player )&lt;br /&gt;
&lt;br /&gt;
bool [[isPlayerMuted]] ( [[player]] player )&lt;br /&gt;
&lt;br /&gt;
bool [[setPlayerRotation]] ( [[element]] player, float rotation )&lt;br /&gt;
&lt;br /&gt;
bool [[setPlayerSkin]] ( [[element]] player, int id )&lt;br /&gt;
&lt;br /&gt;
bool [[setPlayerHealth]] ( [[element]] player, float health )&lt;br /&gt;
&lt;br /&gt;
bool [[setPlayerArmor]] ( [[element]] player, float armor )&lt;br /&gt;
&lt;br /&gt;
bool [[setPlayerMoney]] ( [[element]] player, int money )&lt;br /&gt;
&lt;br /&gt;
bool [[givePlayerMoney]] ( [[element]] player, int money )&lt;br /&gt;
&lt;br /&gt;
bool [[takePlayerMoney]] ( [[element]] player, int money )&lt;br /&gt;
&lt;br /&gt;
bool [[killPlayer]] ( [[element]] player )&lt;br /&gt;
&lt;br /&gt;
bool [[warpPlayerIntoVehicle]] ( [[player]] player, [[vehicle]] vehicle, [int seat] )&lt;br /&gt;
&lt;br /&gt;
bool [[removePlayerFromVehicle]] ( [[element]] player )&lt;br /&gt;
&lt;br /&gt;
bool [[spawnPlayer]] ( [[player]] player, float x, float y, float z, float rotation, int skin )&lt;br /&gt;
&lt;br /&gt;
==Radar area functions==&lt;br /&gt;
[[radararea]] [[createRadarArea]] ( float x, float y, float sizex, float sizey, int r, int g, int b, int a )&lt;br /&gt;
&lt;br /&gt;
bool [[destroyAllRadarAreas]] ()&lt;br /&gt;
&lt;br /&gt;
float float [[getRadarAreaSize]] ( [[radararea]] radararea )&lt;br /&gt;
&lt;br /&gt;
int int int int [[getRadarAreaColor]] ( [[radararea]] radararea )&lt;br /&gt;
&lt;br /&gt;
bool [[isRadarAreaFlashing]] ( [[radararea]] radararea )&lt;br /&gt;
&lt;br /&gt;
bool [[setRadarAreaSize]] ( [[element]] radararea, float x, float y )&lt;br /&gt;
&lt;br /&gt;
bool [[setRadarAreaColor]] ( [[element]] radararea, int r, int g, int b, int a )&lt;br /&gt;
&lt;br /&gt;
bool [[setRadarAreaFlashing]] ( [[element]] radararea, bool flash )&lt;br /&gt;
&lt;br /&gt;
==Scoreboard functions==&lt;br /&gt;
bool [[addScoreboardColumn]] ( string id, string name, float width )&lt;br /&gt;
&lt;br /&gt;
bool [[removeScoreboardColumn]] ( string id )&lt;br /&gt;
&lt;br /&gt;
==Server functions==&lt;br /&gt;
int [[getMaxPlayers]] ()&lt;br /&gt;
&lt;br /&gt;
bool [[serverLoggerPrint]] ( string text )&lt;br /&gt;
&lt;br /&gt;
bool [[serverChat]] ( string text, [r, g, b] )&lt;br /&gt;
&lt;br /&gt;
bool [[playerPM]] ( [[element]] player, string text, [r, g, b] )&lt;br /&gt;
&lt;br /&gt;
==Spawnpoint functions==&lt;br /&gt;
float [[getSpawnpointRotation]] ( [[spawnpoint]] spawn )&lt;br /&gt;
&lt;br /&gt;
int [[getSpawnpointSkin]] ( [[spawnpoint]] spawn )&lt;br /&gt;
&lt;br /&gt;
bool [[setSpawnpointRotation]] ( [[element]] spawn, float rotation )&lt;br /&gt;
&lt;br /&gt;
bool [[setSpawnpointSkin]] ( [[element]] spawn, int skin )&lt;br /&gt;
&lt;br /&gt;
==Text Functions==&lt;br /&gt;
textdisplay [[textCreateDisplay]] ()&lt;br /&gt;
&lt;br /&gt;
void [[textDestroyDisplay]] ( textdisplay )&lt;br /&gt;
&lt;br /&gt;
textitem [[textCreateTextItem]] ( [text, x, y, priority, red, green, blue, alpha, scale] )&lt;br /&gt;
&lt;br /&gt;
void [[textDestroyTextItem]] ( textitem )&lt;br /&gt;
&lt;br /&gt;
void [[textDisplayAddText]] ( textdisplay, textitem )&lt;br /&gt;
&lt;br /&gt;
void [[textDisplayAddObserver]] ( textdisplay, player )&lt;br /&gt;
&lt;br /&gt;
void [[textItemSetText]] ( textitem, text )&lt;br /&gt;
&lt;br /&gt;
string [[textItemGetText]] ( textitem )&lt;br /&gt;
&lt;br /&gt;
void [[textItemSetScale]] ( textitem, scale )&lt;br /&gt;
&lt;br /&gt;
float [[textItemGetScale]] ( textitem )&lt;br /&gt;
&lt;br /&gt;
void [[textItemSetPosition]] ( textitem, x, y )&lt;br /&gt;
&lt;br /&gt;
float float [[textItemGetPosition]] ( textitem )&lt;br /&gt;
&lt;br /&gt;
void [[textItemSetColor]] ( textitem, red, green, blue, alpha )&lt;br /&gt;
&lt;br /&gt;
int int int int [[textItemGetColor]] ( textitem )&lt;br /&gt;
&lt;br /&gt;
void [[textItemSetPriority]] ( textitem, priority )&lt;br /&gt;
&lt;br /&gt;
int [[textItemGetPriority]] ( textitem )&lt;br /&gt;
&lt;br /&gt;
==Utility functions==&lt;br /&gt;
float [[getDistanceBetweenPoints2D]] ( float x1, float y1, float x2, float y2 )&lt;br /&gt;
&lt;br /&gt;
float [[getDistanceBetweenPoints3D]] ( float x1, float y1, float z1, float x2, float y2, float z2 )&lt;br /&gt;
&lt;br /&gt;
int [[randInt]] ( int lowerbound, int upperbound )&lt;br /&gt;
&lt;br /&gt;
float [[randFloat]] ()&lt;br /&gt;
&lt;br /&gt;
int [[getTickCount]] ()&lt;br /&gt;
&lt;br /&gt;
string [[gettok]] ( string text, int index, int separator )&lt;br /&gt;
&lt;br /&gt;
bool [[setTimer]] ( string function, int time, [arg1, arg2, ...] )&lt;br /&gt;
&lt;br /&gt;
==Vehicle functions==&lt;br /&gt;
vehicle [[createVehicle]] ( int id, float x, float y, float z, [float rx, float ry, float rz] )&lt;br /&gt;
&lt;br /&gt;
bool [[destroyAllVehicles]] ()&lt;br /&gt;
&lt;br /&gt;
int int int int [[getVehicleColor]] ( [[vehicle]] vehicle )&lt;br /&gt;
&lt;br /&gt;
float [[getVehicleHealth]] ( [[vehicle]] vehicle )&lt;br /&gt;
&lt;br /&gt;
int [[getVehicleID]] ( [[vehicle]] vehicle )&lt;br /&gt;
&lt;br /&gt;
int [[getVehicleIDFromName]] ( string name )&lt;br /&gt;
&lt;br /&gt;
int [[getVehicleIndex]] ( [[vehicle]] vehicle )&lt;br /&gt;
&lt;br /&gt;
float float float [[getVehicleMoveSpeed]] ( string vehicle )&lt;br /&gt;
&lt;br /&gt;
string [[getVehicleName]] ( string vehicle )&lt;br /&gt;
&lt;br /&gt;
string [[getVehicleNameFromID]] ( int id )&lt;br /&gt;
&lt;br /&gt;
player [[getVehicleOccupant]] ( [[vehicle]] vehicle, [int seat=0] )&lt;br /&gt;
&lt;br /&gt;
float float float [[getVehicleRotation]] ( [[vehicle]] vehicle )&lt;br /&gt;
&lt;br /&gt;
float float float [[getVehicleTurnSpeed]] ( [[vehicle]] vehicle )&lt;br /&gt;
&lt;br /&gt;
float float [[getVehicleTurretPosition]] ( [[vehicle]] vehicle )&lt;br /&gt;
&lt;br /&gt;
int [[getVehicleMaxPassengers]] ( [[vehicle]] vehicle )&lt;br /&gt;
&lt;br /&gt;
bool [[isVehicleLocked]] ( [[vehicle]] vehicle )&lt;br /&gt;
&lt;br /&gt;
bool [[fixVehicle]] ( [[element]] vehicle )&lt;br /&gt;
&lt;br /&gt;
bool [[blowVehicle]] ( [[element]] vehicle, [bool explode=true] )&lt;br /&gt;
&lt;br /&gt;
bool [[setVehicleRotation]] ( [[element]] vehicle, float rx, float ry, float rz )&lt;br /&gt;
&lt;br /&gt;
bool [[setVehicleMoveSpeed]] ( [[element]] vehicle, float x, float y, float z )&lt;br /&gt;
&lt;br /&gt;
bool [[setVehicleTurnSpeed]] ( [[element]] vehicle, float rx, float ry, float rz )&lt;br /&gt;
&lt;br /&gt;
bool [[setVehicleHealth]] ( [[element]] vehicle, float health )&lt;br /&gt;
&lt;br /&gt;
bool [[setVehicleColor]] ( [[element]] vehicle, int color1, int color2, int color3, int color4 )&lt;br /&gt;
&lt;br /&gt;
bool [[setVehicleLocked]] ( [[element]] vehicle, bool locked )&lt;br /&gt;
&lt;br /&gt;
==Weapon functions==&lt;br /&gt;
string [[getWeaponNameFromID]] ( int id )&lt;br /&gt;
&lt;br /&gt;
int [[getWeaponIDFromName]] ( string name )&lt;br /&gt;
&lt;br /&gt;
bool [[giveWeapon]] ( [[element]] player, int weapon, [int ammo=30] )&lt;br /&gt;
&lt;br /&gt;
bool [[takeWeapon]] ( [[element]] player, int weapon )&lt;br /&gt;
&lt;br /&gt;
bool [[takeAllWeapons]] ( [[element]] player )&lt;br /&gt;
&lt;br /&gt;
==World functions==&lt;br /&gt;
int int [[getTime]] ()&lt;br /&gt;
&lt;br /&gt;
int [[getWeather]] ()&lt;br /&gt;
&lt;br /&gt;
bool [[setTime]] ( int hour, int min )&lt;br /&gt;
&lt;br /&gt;
bool [[setWeather]] ( int id )&lt;br /&gt;
&lt;br /&gt;
bool [[setWeatherBlended]] ( int id )&lt;br /&gt;
&lt;br /&gt;
==XML functions==&lt;br /&gt;
xmlnode [[xmlFindSubNode]] ( parent, subnode, index )&lt;br /&gt;
&lt;br /&gt;
string [[xmlNodeGetValue]] ( xmlNode )&lt;br /&gt;
&lt;br /&gt;
bool [[xmlNodeSetValue]] ( xmlNode, value )&lt;br /&gt;
&lt;br /&gt;
string [[xmlNodeGetAttribute]] ( xmlNode, attribute name )&lt;br /&gt;
&lt;br /&gt;
bool [[xmlNodeSetAttribute]] ( xmlNode, attribute name, value )&lt;br /&gt;
&lt;br /&gt;
xmlnode [[xmlLoadFile]] ( filename )&lt;br /&gt;
&lt;br /&gt;
bool [[xmlUnloadFile]] ( xmlnode )&lt;/div&gt;</summary>
		<author><name>Aeron</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Server_Scripting_Functions&amp;diff=1921</id>
		<title>Server Scripting Functions</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Server_Scripting_Functions&amp;diff=1921"/>
		<updated>2006-04-21T13:07:39Z</updated>

		<summary type="html">&lt;p&gt;Aeron: /* Object functions */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This page lists all the scripting functions that have been implemented and are available as native functions from the Deathmatch mod. To request a function or event, use [[Requested Functions and Events]]&lt;br /&gt;
&lt;br /&gt;
Please note that the scripting functions can now be extended by loading in dynamic modules that provide new functionality, such as MySQL database access. These scripting functions are non-native and require the module to be loaded in order to work.&lt;br /&gt;
&lt;br /&gt;
Head over to [[Module functions]] for a list of non-native functions and modules that are available.&lt;br /&gt;
&lt;br /&gt;
==World functions==&lt;br /&gt;
int int [[getTime]] ()&lt;br /&gt;
&lt;br /&gt;
int [[getWeather]] ()&lt;br /&gt;
&lt;br /&gt;
bool [[setTime]] ( hour, min )&lt;br /&gt;
&lt;br /&gt;
bool [[setWeather]] ( id )&lt;br /&gt;
&lt;br /&gt;
bool [[setWeatherBlended]] ( id )&lt;br /&gt;
&lt;br /&gt;
==Player functions==&lt;br /&gt;
int [[getPlayerAdminLevel]] ( player )&lt;br /&gt;
&lt;br /&gt;
int [[getPlayerCount]] ()&lt;br /&gt;
&lt;br /&gt;
int [[getPlayerCurrentWeaponAmmoInClip]] ( player )&lt;br /&gt;
&lt;br /&gt;
int [[getPlayerCurrentWeaponID]] ( player )&lt;br /&gt;
&lt;br /&gt;
player [[getPlayerFromID]] ( id )&lt;br /&gt;
&lt;br /&gt;
player [[getPlayerFromNick]] ( nick )&lt;br /&gt;
&lt;br /&gt;
float [[getPlayerHealth]] ( player )&lt;br /&gt;
&lt;br /&gt;
float [[getPlayerArmor]] ( player )&lt;br /&gt;
&lt;br /&gt;
int [[getPlayerID]] ( player )&lt;br /&gt;
&lt;br /&gt;
float float float [[getPlayerMoveSpeed]] ( player )&lt;br /&gt;
&lt;br /&gt;
float [[getPlayerMoveSpeed|getPlayerMoveSpeedX]] ( player )&lt;br /&gt;
&lt;br /&gt;
float [[getPlayerMoveSpeed|getPlayerMoveSpeedY]] ( player )&lt;br /&gt;
&lt;br /&gt;
float [[getPlayerMoveSpeed|getPlayerMoveSpeedZ]] ( player )&lt;br /&gt;
&lt;br /&gt;
string [[getPlayerName]] ( player )&lt;br /&gt;
&lt;br /&gt;
vehicle [[getPlayerOccupiedVehicle]] ( player )&lt;br /&gt;
&lt;br /&gt;
int [[getPlayerOccupiedVehicleSeat]] ( player )&lt;br /&gt;
&lt;br /&gt;
int [[getPlayerPing]] ( player )&lt;br /&gt;
&lt;br /&gt;
float float float [[getPlayerPosition]] ( player )&lt;br /&gt;
&lt;br /&gt;
float [[getPlayerPosition|getPlayerPositionX]] ( player )&lt;br /&gt;
&lt;br /&gt;
float [[getPlayerPosition|getPlayerPositionY]] ( player )&lt;br /&gt;
&lt;br /&gt;
float [[getPlayerPosition|getPlayerPositionZ]] ( player )&lt;br /&gt;
&lt;br /&gt;
float [[getPlayerRotation]] ( player )&lt;br /&gt;
&lt;br /&gt;
int [[getPlayerSkin]] ( player )&lt;br /&gt;
&lt;br /&gt;
string [[getPlayerSourceIP]] ( player )&lt;br /&gt;
&lt;br /&gt;
player [[getRandomPlayer]] ()&lt;br /&gt;
&lt;br /&gt;
bool [[isPlayerDead]] ( player )&lt;br /&gt;
&lt;br /&gt;
bool [[isPlayerDucked]] ( player )&lt;br /&gt;
&lt;br /&gt;
bool [[isPlayerMuted]] ( player )&lt;br /&gt;
&lt;br /&gt;
bool [[setPlayerPosition]] ( player, x, y, z )&lt;br /&gt;
&lt;br /&gt;
bool [[setPlayerRotation]] ( player, rotation )&lt;br /&gt;
&lt;br /&gt;
bool [[setPlayerSkin]] ( player, id )&lt;br /&gt;
&lt;br /&gt;
bool [[setPlayerHealth]] ( player, health )&lt;br /&gt;
&lt;br /&gt;
bool [[setPlayerArmor]] ( player, armor )&lt;br /&gt;
&lt;br /&gt;
bool [[killPlayer]] ( player )&lt;br /&gt;
&lt;br /&gt;
bool [[warpPlayerIntoVehicle]] ( player, vehicle, [seat] )&lt;br /&gt;
&lt;br /&gt;
bool [[removePlayerFromVehicle]] ( player )&lt;br /&gt;
&lt;br /&gt;
bool [[spawnPlayer]] ( player, x, y, z, rotation, model )&lt;br /&gt;
&lt;br /&gt;
==Weapon functions==&lt;br /&gt;
bool [[giveWeapon]] ( player, weaponid, [ammo=30] )&lt;br /&gt;
&lt;br /&gt;
bool [[giveWeaponToAll]] ( weaponid, [ammo=30] )&lt;br /&gt;
&lt;br /&gt;
bool [[takeWeapon]] ( player, weaponid )&lt;br /&gt;
&lt;br /&gt;
bool [[takeWeaponFromAll]] ( weaponid )&lt;br /&gt;
&lt;br /&gt;
bool [[takeAllWeapons]] ( player )&lt;br /&gt;
&lt;br /&gt;
bool [[takeAllWeaponsFromAll]] ()&lt;br /&gt;
&lt;br /&gt;
==Vehicle functions==&lt;br /&gt;
vehicle [[createVehicle]] ( id, x, y, z, [rx, ry, rz] )&lt;br /&gt;
&lt;br /&gt;
bool [[destroyVehicle]] ( vehicle )&lt;br /&gt;
&lt;br /&gt;
float [[getVehicleHealth]] ( vehicle )&lt;br /&gt;
&lt;br /&gt;
int [[getVehicleID]] ( vehicle )&lt;br /&gt;
&lt;br /&gt;
int [[getVehicleIDFromName]] ( name )&lt;br /&gt;
&lt;br /&gt;
int [[getVehicleIndex]] ( vehicle )&lt;br /&gt;
&lt;br /&gt;
float float float [[getVehicleMoveSpeed]] ( vehicle )&lt;br /&gt;
&lt;br /&gt;
float [[getVehicleMoveSpeed|getVehicleMoveSpeedX]] ( vehicle )&lt;br /&gt;
&lt;br /&gt;
float [[getVehicleMoveSpeed|getVehicleMoveSpeedY]] ( vehicle )&lt;br /&gt;
&lt;br /&gt;
float [[getVehicleMoveSpeed|getVehicleMoveSpeedZ]] ( vehicle )&lt;br /&gt;
&lt;br /&gt;
string [[getVehicleName]] ( vehicle )&lt;br /&gt;
&lt;br /&gt;
string [[getVehicleNameFromID]] ( id )&lt;br /&gt;
&lt;br /&gt;
player [[getVehicleOccupant]] ( vehicle, [seat=0] )&lt;br /&gt;
&lt;br /&gt;
float float float [[getVehiclePosition]] ( vehicle )&lt;br /&gt;
&lt;br /&gt;
float [[getVehiclePosition|getVehiclePositionX]] ( vehicle )&lt;br /&gt;
&lt;br /&gt;
float [[getVehiclePosition|getVehiclePositionY]] ( vehicle )&lt;br /&gt;
&lt;br /&gt;
float [[getVehiclePosition|getVehiclePositionZ]] ( vehicle )&lt;br /&gt;
&lt;br /&gt;
float float float [[getVehicleRotation]] ( vehicle )&lt;br /&gt;
&lt;br /&gt;
float [[getVehicleRotation|getVehicleRotationX]] ( vehicle )&lt;br /&gt;
&lt;br /&gt;
float [[getVehicleRotation|getVehicleRotationY]] ( vehicle )&lt;br /&gt;
&lt;br /&gt;
float [[getVehicleRotation|getVehicleRotationZ]] ( vehicle )&lt;br /&gt;
&lt;br /&gt;
float float float [[getVehicleTurnSpeed]] ( vehicle )&lt;br /&gt;
&lt;br /&gt;
float [[GetVehicleTurnSpeed|getVehicleTurnSpeedX]] ( vehicle )&lt;br /&gt;
&lt;br /&gt;
float [[GetVehicleTurnSpeed|getVehicleTurnSpeedY]] ( vehicle )&lt;br /&gt;
&lt;br /&gt;
float [[GetVehicleTurnSpeed|getVehicleTurnSpeedZ]] ( vehicle )&lt;br /&gt;
&lt;br /&gt;
float float [[getVehicleTurretPosition]] ( vehicle )&lt;br /&gt;
&lt;br /&gt;
float [[GetVehicleTurretPosition|getVehicleTurretPositionX]] ( vehicle )&lt;br /&gt;
&lt;br /&gt;
float [[GetVehicleTurretPosition|getVehicleTurretPositionY]] ( vehicle )&lt;br /&gt;
&lt;br /&gt;
int [[getVehicleMaxPassengers]] ( vehicle )&lt;br /&gt;
&lt;br /&gt;
bool [[isVehicleLocked]] ( vehicle )&lt;br /&gt;
&lt;br /&gt;
bool [[setVehiclePosition]] ( vehicle, x, y, z )&lt;br /&gt;
&lt;br /&gt;
bool [[setVehicleRotation]] ( vehicle, rx, ry, rz )&lt;br /&gt;
&lt;br /&gt;
bool [[setVehicleMoveSpeed]] ( vehicle, x, y, z )&lt;br /&gt;
&lt;br /&gt;
bool [[setVehicleTurnSpeed]] ( vehicle, rx, ry, rz )&lt;br /&gt;
&lt;br /&gt;
bool [[setVehicleHealth]] ( vehicle, health )&lt;br /&gt;
&lt;br /&gt;
bool [[setVehicleColor]] ( vehicle, color1, color2, color3, color4 )&lt;br /&gt;
&lt;br /&gt;
bool [[setVehicleLocked]] ( vehicle, locked )&lt;br /&gt;
&lt;br /&gt;
==Marker functions==&lt;br /&gt;
marker [[createMarker]] ( x, y, z, [type, size, r, g, b,] )&lt;br /&gt;
&lt;br /&gt;
bool [[destroyMarker]] ( marker )&lt;br /&gt;
&lt;br /&gt;
bool [[destroyAllMarkers]] ()&lt;br /&gt;
&lt;br /&gt;
int [[getMarkerCount]] ()&lt;br /&gt;
&lt;br /&gt;
marker [[getMarkerFromID]] ( id )&lt;br /&gt;
&lt;br /&gt;
int [[getMarkerType]] ( [[marker]] )&lt;br /&gt;
&lt;br /&gt;
float float float [[getMarkerPosition]] ( [[marker]] )&lt;br /&gt;
&lt;br /&gt;
float [[getMarkerPosition|getMarkerPositionX]] ( [[marker]] )&lt;br /&gt;
&lt;br /&gt;
float [[getMarkerPosition|getMarkerPositionY]] ( [[marker]] )&lt;br /&gt;
&lt;br /&gt;
float [[getMarkerPosition|getMarkerPositionZ]] ( [[marker]] )&lt;br /&gt;
&lt;br /&gt;
float [[getMarkerSize]] ( [[marker]] )&lt;br /&gt;
&lt;br /&gt;
int int int [[getMarkerColor]] ( [[marker]] )&lt;br /&gt;
&lt;br /&gt;
int [[getMarkerColor|getMarkerColorRed]] ( [[marker]] )&lt;br /&gt;
&lt;br /&gt;
int [[getMarkerColor|getMarkerColorGreen]] ( [[marker]] )&lt;br /&gt;
&lt;br /&gt;
int [[getMarkerColor|getMarkerColorBlue]] ( [[marker]] )&lt;br /&gt;
&lt;br /&gt;
bool [[setMarkerType]] ( [[marker]], type )&lt;br /&gt;
&lt;br /&gt;
bool [[setMarkerPosition]] ( [[marker]], x, y, z )&lt;br /&gt;
&lt;br /&gt;
bool [[setMarkerSize]] ( [[marker]], size )&lt;br /&gt;
&lt;br /&gt;
bool [[setMarkerColor]] ( [[marker]], r, g, b )&lt;br /&gt;
&lt;br /&gt;
==Blip functions==&lt;br /&gt;
{{Needs_Checking|CreateBlip has the wrong arguments set to optional. the color/transparencies can be defaulted, the location cannot. Also, there is no option for creating blips larger than others. perhaps an additional scale option? That would make the final markup for the function &amp;quot;blip createBlip ( x, y, z, [r, g, b, a, scale} )|[[User:Vandalite|Vandalite]]}}&lt;br /&gt;
blip [[createBlip]] ( r, g, b, a, [x, y, z] )&lt;br /&gt;
{{Needs_Checking|CreateBlipAttachedTo should have the r,g,b,a arguments optional. also required is a scale argument. EG: blip  createBlipAttachedTo ( entity, [r, g, b, a, scale] )|[[User:Vandalite|Vandalite]]}}&lt;br /&gt;
blip [[createBlipAttachedTo]] ( entity, r, g, b, a )&lt;br /&gt;
&lt;br /&gt;
bool [[destroyBlip]] ( blip )&lt;br /&gt;
&lt;br /&gt;
bool [[destroyBlipAttachedTo]] ( entity )&lt;br /&gt;
&lt;br /&gt;
float float float [[getBlipPosition]] ( blip )&lt;br /&gt;
&lt;br /&gt;
float [[getBlipPositionX]] ( blip )&lt;br /&gt;
&lt;br /&gt;
float [[getBlipPositionY]] ( blip )&lt;br /&gt;
&lt;br /&gt;
float [[getBlipPositionZ]] ( blip )&lt;br /&gt;
&lt;br /&gt;
blip [[getBlipAttachedTo]] ( entity )&lt;br /&gt;
&lt;br /&gt;
{{Needs_Checking|Does setBlipPosition automatically detach a blip that has been attached to something?|[[User:Vandalite|Vandalite]]}}&lt;br /&gt;
bool [[setBlipPosition]] ( blip, x, y, z )&lt;br /&gt;
&lt;br /&gt;
bool [[attachBlipToEntity]] ( blip, entity )&lt;br /&gt;
&lt;br /&gt;
==Object functions==&lt;br /&gt;
object [[createObject]] ( model, x, y, z, [rx, ry, rz] )&lt;br /&gt;
&lt;br /&gt;
bool [[destroyObject]] ( object )&lt;br /&gt;
&lt;br /&gt;
bool [[destroyAllObjects]] ()&lt;br /&gt;
&lt;br /&gt;
string [[getObjectName]] ( object )&lt;br /&gt;
&lt;br /&gt;
int [[getObjectModel]] ( object )&lt;br /&gt;
&lt;br /&gt;
float float float [[getObjectPosition]] ( object )&lt;br /&gt;
&lt;br /&gt;
float [[getObjectPositionX]] ( object )&lt;br /&gt;
&lt;br /&gt;
float [[getObjectPositionY]] ( object )&lt;br /&gt;
&lt;br /&gt;
float [[getObjectPositionZ]] ( object )&lt;br /&gt;
&lt;br /&gt;
float float float [[getObjectRotation]] ( object )&lt;br /&gt;
&lt;br /&gt;
float [[getObjectRotationX]] ( object )&lt;br /&gt;
&lt;br /&gt;
float [[getObjectRotationY]] ( object )&lt;br /&gt;
&lt;br /&gt;
float [[getObjectRotationZ]] ( object )&lt;br /&gt;
&lt;br /&gt;
bool [[setObjectName]] ( object, name )&lt;br /&gt;
&lt;br /&gt;
bool [[setObjectModel]] ( object, model )&lt;br /&gt;
&lt;br /&gt;
bool [[setObjectPosition]] ( object, x, y, z )&lt;br /&gt;
&lt;br /&gt;
bool [[setObjectRotation]] ( object, x, y, z )&lt;br /&gt;
&lt;br /&gt;
{{Needs_Checking|rx, ry, rz are not the final target rotation but the rotation to add to the current rotation.|[[User:Aeron|Aeron]]}}&lt;br /&gt;
bool [[moveObject]] ( object, time, x, y, z, rx, ry, rz )&lt;br /&gt;
&lt;br /&gt;
==Pickup functions==&lt;br /&gt;
[[pickup]] [[createPickup]] ( float x, float y, float z, int type, int amount/weapon, [int ammo] )&lt;br /&gt;
&lt;br /&gt;
bool [[destroyPickup]] ( [[pickup]] pickup )&lt;br /&gt;
&lt;br /&gt;
bool [[destroyAllPickups]] ()&lt;br /&gt;
&lt;br /&gt;
string [[getPickupName]] ( [[pickup]] pickup )&lt;br /&gt;
&lt;br /&gt;
[[pickup]] [[getPickupFromName]] ( string name )&lt;br /&gt;
&lt;br /&gt;
float float float [[getPickupPosition]] ( [[pickup]] pickup )&lt;br /&gt;
&lt;br /&gt;
float [[getPickupPositionX]] ( [[pickup]] pickup )&lt;br /&gt;
&lt;br /&gt;
float [[getPickupPositionY]] ( [[pickup]] pickup )&lt;br /&gt;
&lt;br /&gt;
float [[getPickupPositionZ]] ( [[pickup]] pickup )&lt;br /&gt;
&lt;br /&gt;
int [[getPickupType]] ( [[pickup]] pickup )&lt;br /&gt;
&lt;br /&gt;
int [[getPickupWeapon]] ( [[pickup]] pickup )&lt;br /&gt;
&lt;br /&gt;
int [[getPickupHealth]] ( [[pickup]] pickup )&lt;br /&gt;
&lt;br /&gt;
int [[getPickupAmmo]] ( [[pickup]] pickup )&lt;br /&gt;
&lt;br /&gt;
{{Needs_Checking|Where do you specify the pickup which name should be changed?|[[User:Aeron|Aeron]]}}&lt;br /&gt;
&lt;br /&gt;
bool [[setPickupName]] ( string name )&lt;br /&gt;
&lt;br /&gt;
bool [[setPickupPosition]] ( [[pickup]] pickup, float x, float y, float z )&lt;br /&gt;
&lt;br /&gt;
bool [[setPickupType]] ( [[pickup]] pickup, int type, int amount/weapon, [int ammo] )&lt;br /&gt;
&lt;br /&gt;
==Radar area functions==&lt;br /&gt;
radararea [[createRadarArea]] ( x, y, sizex, sizey, r, g, b, a )&lt;br /&gt;
&lt;br /&gt;
bool [[destroyRadarArea]] ( radararea )&lt;br /&gt;
&lt;br /&gt;
bool [[destroyAllRadarAreas]] ()&lt;br /&gt;
&lt;br /&gt;
float float [[getRadarAreaPosition]] ( radararea )&lt;br /&gt;
&lt;br /&gt;
float [[getRadarAreaPositionX]] ( radararea )&lt;br /&gt;
&lt;br /&gt;
float [[getRadarAreaPositionY]] ( radararea )&lt;br /&gt;
&lt;br /&gt;
float float [[getRadarAreaSize]] ( radararea )&lt;br /&gt;
&lt;br /&gt;
float [[getRadarAreaSizeX]] ( radararea )&lt;br /&gt;
&lt;br /&gt;
float [[getRadarAreaSizeY]] ( radararea )&lt;br /&gt;
&lt;br /&gt;
int int int int [[getRadarAreaColor]] ( radararea )&lt;br /&gt;
&lt;br /&gt;
int [[getRadarAreaColorRed]] ( radararea )&lt;br /&gt;
&lt;br /&gt;
int [[getRadarAreaColorGreen]] ( radararea )&lt;br /&gt;
&lt;br /&gt;
int [[getRadarAreaColorBlue]] ( radararea )&lt;br /&gt;
&lt;br /&gt;
int [[getRadarAreaColorAlpha]] ( radararea )&lt;br /&gt;
&lt;br /&gt;
bool [[isRadarAreaFlashing]] ( radararea )&lt;br /&gt;
&lt;br /&gt;
bool [[setRadarAreaPosition]] ( radararea, x, y )&lt;br /&gt;
&lt;br /&gt;
bool [[setRadarAreaSize]] ( radararea, x, y )&lt;br /&gt;
&lt;br /&gt;
bool [[setRadarAreaColor]] ( radararea, r, g, b, a )&lt;br /&gt;
&lt;br /&gt;
bool [[setRadarAreaFlashing]] ( radararea, bool )&lt;br /&gt;
&lt;br /&gt;
==Weapon functions==&lt;br /&gt;
string [[getWeaponNameFromID]] ( id )&lt;br /&gt;
&lt;br /&gt;
int [[getWeaponIDFromName]] ( string )&lt;br /&gt;
&lt;br /&gt;
==Server functions==&lt;br /&gt;
int [[getMaxPlayers]] ()&lt;br /&gt;
&lt;br /&gt;
bool [[serverLoggerPrint]] ( string, [...] )&lt;br /&gt;
&lt;br /&gt;
bool [[serverChat]] ( string, [...] )&lt;br /&gt;
&lt;br /&gt;
bool [[playerPM]] ( player, string, [...] )&lt;br /&gt;
&lt;br /&gt;
bool [[showTextForAll]] ( duration, r, g, b, size, string, [...] )&lt;br /&gt;
&lt;br /&gt;
bool [[showTextForPlayer]] ( player, duration, r, g, b, size, string, [...] )&lt;br /&gt;
&lt;br /&gt;
==Utility functions==&lt;br /&gt;
float [[getDistanceBetweenPoints2D]] ( x1, y1, x2, y2 )&lt;br /&gt;
&lt;br /&gt;
float [[getDistanceBetweenPoints3D]] ( x1, y1, z1, x2, y2, z2 )&lt;br /&gt;
&lt;br /&gt;
int [[randInt]] ( lowerbound, upperbound )&lt;br /&gt;
&lt;br /&gt;
float [[randFloat]] ()&lt;br /&gt;
&lt;br /&gt;
int [[getTickCount]] ()&lt;br /&gt;
&lt;br /&gt;
string [[gettok]] ( string, index, separatingchar )&lt;br /&gt;
&lt;br /&gt;
bool [[setTimer]] ( function, time, [arg1, arg2, ...] )&lt;br /&gt;
&lt;br /&gt;
==Map functions==&lt;br /&gt;
string [[getLoadedMapName]] ()&lt;br /&gt;
&lt;br /&gt;
xmlnode [[getLoadedMapXMLRoot]] ()&lt;br /&gt;
&lt;br /&gt;
==XML functions==&lt;br /&gt;
xmlnode [[xmlFindSubNode]] ( parent, subnode, index )&lt;br /&gt;
&lt;br /&gt;
string [[xmlNodeGetValue]] ( xmlNode )&lt;br /&gt;
&lt;br /&gt;
bool [[xmlNodeSetValue]] ( xmlNode, value )&lt;br /&gt;
&lt;br /&gt;
string [[xmlNodeGetAttribute]] ( xmlNode, attribute name )&lt;br /&gt;
&lt;br /&gt;
bool [[xmlNodeSetAttribute]] ( xmlNode, attribute name, value )&lt;br /&gt;
&lt;br /&gt;
xmlnode [[xmlLoadFile]] ( filename )&lt;br /&gt;
&lt;br /&gt;
bool [[xmlUnloadFile]] ( xmlnode )&lt;br /&gt;
&lt;br /&gt;
==Text Functions==&lt;br /&gt;
&lt;br /&gt;
textdisplay [[textCreateDisplay]] ()&lt;br /&gt;
&lt;br /&gt;
void [[textDestroyDisplay]] ( textdisplay )&lt;br /&gt;
&lt;br /&gt;
textitem [[textCreateTextItem]] ( [text, x, y, priority, red, green, blue, alpha, scale] )&lt;br /&gt;
&lt;br /&gt;
void [[textDestroyTextItem]] ( textitem )&lt;br /&gt;
&lt;br /&gt;
void [[textDisplayAddText]] ( textdisplay, textitem )&lt;br /&gt;
&lt;br /&gt;
void [[textDisplayAddObserver]] ( textdisplay, player )&lt;br /&gt;
&lt;br /&gt;
void [[textItemSetText]] ( textitem, text )&lt;br /&gt;
&lt;br /&gt;
string [[textItemGetText]] ( textitem )&lt;br /&gt;
&lt;br /&gt;
void [[textItemSetScale]] ( textitem, scale )&lt;br /&gt;
&lt;br /&gt;
float [[textItemGetScale]] ( textitem )&lt;br /&gt;
&lt;br /&gt;
void [[textItemSetPosition]] ( textitem, x, y )&lt;br /&gt;
&lt;br /&gt;
float float [[textItemGetPosition]] ( textitem )&lt;br /&gt;
&lt;br /&gt;
void [[textItemSetColor]] ( textitem, red, green, blue, alpha )&lt;br /&gt;
&lt;br /&gt;
int int int int [[textItemGetColor]] ( textitem )&lt;br /&gt;
&lt;br /&gt;
void [[textItemSetPriority]] ( textitem, priority )&lt;br /&gt;
&lt;br /&gt;
int [[textItemGetPriority]] ( textitem )&lt;/div&gt;</summary>
		<author><name>Aeron</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Server_Scripting_Functions&amp;diff=1889</id>
		<title>Server Scripting Functions</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Server_Scripting_Functions&amp;diff=1889"/>
		<updated>2006-04-20T07:18:20Z</updated>

		<summary type="html">&lt;p&gt;Aeron: /* Pickup functions */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This page lists all the scripting functions that have been implemented and are available as native functions from the Deathmatch mod. To request a function or event, use [[Requested Functions and Events]]&lt;br /&gt;
&lt;br /&gt;
Please note that the scripting functions can now be extended by loading in dynamic modules that provide new functionality, such as MySQL database access. These scripting functions are non-native and require the module to be loaded in order to work.&lt;br /&gt;
&lt;br /&gt;
Head over to [[Module functions]] for a list of non-native functions and modules that are available.&lt;br /&gt;
&lt;br /&gt;
==World functions==&lt;br /&gt;
int int [[getTime]] ()&lt;br /&gt;
&lt;br /&gt;
int [[getWeather]] ()&lt;br /&gt;
&lt;br /&gt;
bool [[setTime]] ( hour, min )&lt;br /&gt;
&lt;br /&gt;
bool [[setWeather]] ( id )&lt;br /&gt;
&lt;br /&gt;
bool [[setWeatherBlended]] ( id )&lt;br /&gt;
&lt;br /&gt;
==Player functions==&lt;br /&gt;
int [[getPlayerAdminLevel]] ( player )&lt;br /&gt;
&lt;br /&gt;
int [[getPlayerCount]] ()&lt;br /&gt;
&lt;br /&gt;
int [[getPlayerCurrentWeaponAmmoInClip]] ( player )&lt;br /&gt;
&lt;br /&gt;
int [[getPlayerCurrentWeaponID]] ( player )&lt;br /&gt;
&lt;br /&gt;
player [[getPlayerFromID]] ( id )&lt;br /&gt;
&lt;br /&gt;
player [[getPlayerFromNick]] ( nick )&lt;br /&gt;
&lt;br /&gt;
float [[getPlayerHealth]] ( player )&lt;br /&gt;
&lt;br /&gt;
float [[getPlayerArmor]] ( player )&lt;br /&gt;
&lt;br /&gt;
int [[getPlayerID]] ( player )&lt;br /&gt;
&lt;br /&gt;
float float float [[getPlayerMoveSpeed]] ( player )&lt;br /&gt;
&lt;br /&gt;
float [[getPlayerMoveSpeed|getPlayerMoveSpeedX]] ( player )&lt;br /&gt;
&lt;br /&gt;
float [[getPlayerMoveSpeed|getPlayerMoveSpeedY]] ( player )&lt;br /&gt;
&lt;br /&gt;
float [[getPlayerMoveSpeed|getPlayerMoveSpeedZ]] ( player )&lt;br /&gt;
&lt;br /&gt;
string [[getPlayerName]] ( player )&lt;br /&gt;
&lt;br /&gt;
vehicle [[getPlayerOccupiedVehicle]] ( player )&lt;br /&gt;
&lt;br /&gt;
int [[getPlayerOccupiedVehicleSeat]] ( player )&lt;br /&gt;
&lt;br /&gt;
int [[getPlayerPing]] ( player )&lt;br /&gt;
&lt;br /&gt;
float float float [[getPlayerPosition]] ( player )&lt;br /&gt;
&lt;br /&gt;
float [[getPlayerPosition|getPlayerPositionX]] ( player )&lt;br /&gt;
&lt;br /&gt;
float [[getPlayerPosition|getPlayerPositionY]] ( player )&lt;br /&gt;
&lt;br /&gt;
float [[getPlayerPosition|getPlayerPositionZ]] ( player )&lt;br /&gt;
&lt;br /&gt;
float [[getPlayerRotation]] ( player )&lt;br /&gt;
&lt;br /&gt;
int [[getPlayerSkin]] ( player )&lt;br /&gt;
&lt;br /&gt;
string [[getPlayerSourceIP]] ( player )&lt;br /&gt;
&lt;br /&gt;
player [[getRandomPlayer]] ()&lt;br /&gt;
&lt;br /&gt;
bool [[isPlayerDead]] ( player )&lt;br /&gt;
&lt;br /&gt;
bool [[isPlayerDucked]] ( player )&lt;br /&gt;
&lt;br /&gt;
bool [[isPlayerMuted]] ( player )&lt;br /&gt;
&lt;br /&gt;
bool [[setPlayerPosition]] ( player, x, y, z )&lt;br /&gt;
&lt;br /&gt;
bool [[setPlayerRotation]] ( player, rotation )&lt;br /&gt;
&lt;br /&gt;
bool [[setPlayerSkin]] ( player, id )&lt;br /&gt;
&lt;br /&gt;
bool [[setPlayerHealth]] ( player, health )&lt;br /&gt;
&lt;br /&gt;
bool [[setPlayerArmor]] ( player, armor )&lt;br /&gt;
&lt;br /&gt;
bool [[killPlayer]] ( player )&lt;br /&gt;
&lt;br /&gt;
bool [[warpPlayerIntoVehicle]] ( player, vehicle, [seat] )&lt;br /&gt;
&lt;br /&gt;
bool [[removePlayerFromVehicle]] ( player )&lt;br /&gt;
&lt;br /&gt;
bool [[spawnPlayer]] ( player, x, y, z, rotation, model )&lt;br /&gt;
&lt;br /&gt;
==Weapon functions==&lt;br /&gt;
bool [[giveWeapon]] ( player, weaponid, [ammo=30] )&lt;br /&gt;
&lt;br /&gt;
bool [[giveWeaponToAll]] ( weaponid, [ammo=30] )&lt;br /&gt;
&lt;br /&gt;
bool [[takeWeapon]] ( player, weaponid )&lt;br /&gt;
&lt;br /&gt;
bool [[takeWeaponFromAll]] ( weaponid )&lt;br /&gt;
&lt;br /&gt;
bool [[takeAllWeapons]] ( player )&lt;br /&gt;
&lt;br /&gt;
bool [[takeAllWeaponsFromAll]] ()&lt;br /&gt;
&lt;br /&gt;
==Vehicle functions==&lt;br /&gt;
vehicle [[createVehicle]] ( id, x, y, z, [rx, ry, rz] )&lt;br /&gt;
&lt;br /&gt;
bool [[destroyVehicle]] ( vehicle )&lt;br /&gt;
&lt;br /&gt;
float [[getVehicleHealth]] ( vehicle )&lt;br /&gt;
&lt;br /&gt;
int [[getVehicleID]] ( vehicle )&lt;br /&gt;
&lt;br /&gt;
int [[getVehicleIDFromName]] ( name )&lt;br /&gt;
&lt;br /&gt;
int [[getVehicleIndex]] ( vehicle )&lt;br /&gt;
&lt;br /&gt;
float float float [[getVehicleMoveSpeed]] ( vehicle )&lt;br /&gt;
&lt;br /&gt;
float [[getVehicleMoveSpeed|getVehicleMoveSpeedX]] ( vehicle )&lt;br /&gt;
&lt;br /&gt;
float [[getVehicleMoveSpeed|getVehicleMoveSpeedY]] ( vehicle )&lt;br /&gt;
&lt;br /&gt;
float [[getVehicleMoveSpeed|getVehicleMoveSpeedZ]] ( vehicle )&lt;br /&gt;
&lt;br /&gt;
string [[getVehicleName]] ( vehicle )&lt;br /&gt;
&lt;br /&gt;
string [[getVehicleNameFromID]] ( id )&lt;br /&gt;
&lt;br /&gt;
player [[getVehicleOccupant]] ( vehicle, [seat=0] )&lt;br /&gt;
&lt;br /&gt;
float float float [[getVehiclePosition]] ( vehicle )&lt;br /&gt;
&lt;br /&gt;
float [[getVehiclePosition|getVehiclePositionX]] ( vehicle )&lt;br /&gt;
&lt;br /&gt;
float [[getVehiclePosition|getVehiclePositionY]] ( vehicle )&lt;br /&gt;
&lt;br /&gt;
float [[getVehiclePosition|getVehiclePositionZ]] ( vehicle )&lt;br /&gt;
&lt;br /&gt;
float float float [[getVehicleRotation]] ( vehicle )&lt;br /&gt;
&lt;br /&gt;
float [[getVehicleRotation|getVehicleRotationX]] ( vehicle )&lt;br /&gt;
&lt;br /&gt;
float [[getVehicleRotation|getVehicleRotationY]] ( vehicle )&lt;br /&gt;
&lt;br /&gt;
float [[getVehicleRotation|getVehicleRotationZ]] ( vehicle )&lt;br /&gt;
&lt;br /&gt;
float float float [[getVehicleTurnSpeed]] ( vehicle )&lt;br /&gt;
&lt;br /&gt;
float [[GetVehicleTurnSpeed|getVehicleTurnSpeedX]] ( vehicle )&lt;br /&gt;
&lt;br /&gt;
float [[GetVehicleTurnSpeed|getVehicleTurnSpeedY]] ( vehicle )&lt;br /&gt;
&lt;br /&gt;
float [[GetVehicleTurnSpeed|getVehicleTurnSpeedZ]] ( vehicle )&lt;br /&gt;
&lt;br /&gt;
float float [[getVehicleTurretPosition]] ( vehicle )&lt;br /&gt;
&lt;br /&gt;
float [[GetVehicleTurretPosition|getVehicleTurretPositionX]] ( vehicle )&lt;br /&gt;
&lt;br /&gt;
float [[GetVehicleTurretPosition|getVehicleTurretPositionY]] ( vehicle )&lt;br /&gt;
&lt;br /&gt;
int [[getVehicleMaxPassengers]] ( vehicle )&lt;br /&gt;
&lt;br /&gt;
bool [[isVehicleLocked]] ( vehicle )&lt;br /&gt;
&lt;br /&gt;
bool [[setVehiclePosition]] ( vehicle, x, y, z )&lt;br /&gt;
&lt;br /&gt;
bool [[setVehicleRotation]] ( vehicle, rx, ry, rz )&lt;br /&gt;
&lt;br /&gt;
bool [[setVehicleMoveSpeed]] ( vehicle, x, y, z )&lt;br /&gt;
&lt;br /&gt;
bool [[setVehicleTurnSpeed]] ( vehicle, rx, ry, rz )&lt;br /&gt;
&lt;br /&gt;
bool [[setVehicleHealth]] ( vehicle, health )&lt;br /&gt;
&lt;br /&gt;
bool [[setVehicleColor]] ( vehicle, color1, color2, color3, color4 )&lt;br /&gt;
&lt;br /&gt;
bool [[setVehicleLocked]] ( vehicle, locked )&lt;br /&gt;
&lt;br /&gt;
==Marker functions==&lt;br /&gt;
marker [[createMarker]] ( x, y, z, [type, size, r, g, b,] )&lt;br /&gt;
&lt;br /&gt;
bool [[destroyMarker]] ( marker )&lt;br /&gt;
&lt;br /&gt;
bool [[destroyAllMarkers]] ()&lt;br /&gt;
&lt;br /&gt;
int [[getMarkerCount]] ()&lt;br /&gt;
&lt;br /&gt;
marker [[getMarkerFromID]] ( id )&lt;br /&gt;
&lt;br /&gt;
int [[getMarkerType]] ( [[marker]] )&lt;br /&gt;
&lt;br /&gt;
float float float [[getMarkerPosition]] ( [[marker]] )&lt;br /&gt;
&lt;br /&gt;
float [[getMarkerPosition|getMarkerPositionX]] ( [[marker]] )&lt;br /&gt;
&lt;br /&gt;
float [[getMarkerPosition|getMarkerPositionY]] ( [[marker]] )&lt;br /&gt;
&lt;br /&gt;
float [[getMarkerPosition|getMarkerPositionZ]] ( [[marker]] )&lt;br /&gt;
&lt;br /&gt;
float [[getMarkerSize]] ( [[marker]] )&lt;br /&gt;
&lt;br /&gt;
int int int [[getMarkerColor]] ( [[marker]] )&lt;br /&gt;
&lt;br /&gt;
int [[getMarkerColor|getMarkerColorRed]] ( [[marker]] )&lt;br /&gt;
&lt;br /&gt;
int [[getMarkerColor|getMarkerColorGreen]] ( [[marker]] )&lt;br /&gt;
&lt;br /&gt;
int [[getMarkerColor|getMarkerColorBlue]] ( [[marker]] )&lt;br /&gt;
&lt;br /&gt;
bool [[setMarkerType]] ( [[marker]], type )&lt;br /&gt;
&lt;br /&gt;
bool [[setMarkerPosition]] ( [[marker]], x, y, z )&lt;br /&gt;
&lt;br /&gt;
bool [[setMarkerSize]] ( [[marker]], size )&lt;br /&gt;
&lt;br /&gt;
bool [[setMarkerColor]] ( [[marker]], r, g, b )&lt;br /&gt;
&lt;br /&gt;
==Blip functions==&lt;br /&gt;
{{Needs_Checking|CreateBlip has the wrong arguments set to optional. the color/transparencies can be defaulted, the location cannot. Also, there is no option for creating blips larger than others. perhaps an additional scale option? That would make the final markup for the function &amp;quot;blip createBlip ( x, y, z, [r, g, b, a, scale} )|[[User:Vandalite|Vandalite]]}}&lt;br /&gt;
blip [[createBlip]] ( r, g, b, a, [x, y, z] )&lt;br /&gt;
{{Needs_Checking|CreateBlipAttachedTo should have the r,g,b,a arguments optional. also required is a scale argument. EG: blip  createBlipAttachedTo ( entity, [r, g, b, a, scale] )|[[User:Vandalite|Vandalite]]}}&lt;br /&gt;
blip [[createBlipAttachedTo]] ( entity, r, g, b, a )&lt;br /&gt;
&lt;br /&gt;
bool [[destroyBlip]] ( blip )&lt;br /&gt;
&lt;br /&gt;
bool [[destroyBlipAttachedTo]] ( entity )&lt;br /&gt;
&lt;br /&gt;
float float float [[getBlipPosition]] ( blip )&lt;br /&gt;
&lt;br /&gt;
float [[getBlipPositionX]] ( blip )&lt;br /&gt;
&lt;br /&gt;
float [[getBlipPositionY]] ( blip )&lt;br /&gt;
&lt;br /&gt;
float [[getBlipPositionZ]] ( blip )&lt;br /&gt;
&lt;br /&gt;
blip [[getBlipAttachedTo]] ( entity )&lt;br /&gt;
&lt;br /&gt;
{{Needs_Checking|Does setBlipPosition automatically detach a blip that has been attached to something?|[[User:Vandalite|Vandalite]]}}&lt;br /&gt;
bool [[setBlipPosition]] ( blip, x, y, z )&lt;br /&gt;
&lt;br /&gt;
bool [[attachBlipToEntity]] ( blip, entity )&lt;br /&gt;
&lt;br /&gt;
==Object functions==&lt;br /&gt;
object [[createObject]] ( model, x, y, z, [rx, ry, rz] )&lt;br /&gt;
&lt;br /&gt;
bool [[destroyObject]] ( object )&lt;br /&gt;
&lt;br /&gt;
bool [[destroyAllObjects]] ()&lt;br /&gt;
&lt;br /&gt;
string [[getObjectName]] ( object )&lt;br /&gt;
&lt;br /&gt;
int [[getObjectModel]] ( object )&lt;br /&gt;
&lt;br /&gt;
float float float [[getObjectPosition]] ( object )&lt;br /&gt;
&lt;br /&gt;
float [[getObjectPositionX]] ( object )&lt;br /&gt;
&lt;br /&gt;
float [[getObjectPositionY]] ( object )&lt;br /&gt;
&lt;br /&gt;
float [[getObjectPositionZ]] ( object )&lt;br /&gt;
&lt;br /&gt;
float float float [[getObjectRotation]] ( object )&lt;br /&gt;
&lt;br /&gt;
float [[getObjectRotationX]] ( object )&lt;br /&gt;
&lt;br /&gt;
float [[getObjectRotationY]] ( object )&lt;br /&gt;
&lt;br /&gt;
float [[getObjectRotationZ]] ( object )&lt;br /&gt;
&lt;br /&gt;
bool [[setObjectName]] ( object, name )&lt;br /&gt;
&lt;br /&gt;
bool [[setObjectModel]] ( object, model )&lt;br /&gt;
&lt;br /&gt;
bool [[setObjectPosition]] ( object, x, y, z )&lt;br /&gt;
&lt;br /&gt;
bool [[setObjectRotation]] ( object, x, y, z )&lt;br /&gt;
&lt;br /&gt;
bool [[moveObject]] ( object, time, x, y, z, rx, ry, rz )&lt;br /&gt;
&lt;br /&gt;
==Pickup functions==&lt;br /&gt;
[[pickup]] [[createPickup]] ( float x, float y, float z, int type, int amount/weapon, [int ammo] )&lt;br /&gt;
&lt;br /&gt;
bool [[destroyPickup]] ( [[pickup]] pickup )&lt;br /&gt;
&lt;br /&gt;
bool [[destroyAllPickups]] ()&lt;br /&gt;
&lt;br /&gt;
string [[getPickupName]] ( [[pickup]] pickup )&lt;br /&gt;
&lt;br /&gt;
[[pickup]] [[getPickupFromName]] ( string name )&lt;br /&gt;
&lt;br /&gt;
float float float [[getPickupPosition]] ( [[pickup]] pickup )&lt;br /&gt;
&lt;br /&gt;
float [[getPickupPositionX]] ( [[pickup]] pickup )&lt;br /&gt;
&lt;br /&gt;
float [[getPickupPositionY]] ( [[pickup]] pickup )&lt;br /&gt;
&lt;br /&gt;
float [[getPickupPositionZ]] ( [[pickup]] pickup )&lt;br /&gt;
&lt;br /&gt;
int [[getPickupType]] ( [[pickup]] pickup )&lt;br /&gt;
&lt;br /&gt;
int [[getPickupWeapon]] ( [[pickup]] pickup )&lt;br /&gt;
&lt;br /&gt;
int [[getPickupHealth]] ( [[pickup]] pickup )&lt;br /&gt;
&lt;br /&gt;
int [[getPickupAmmo]] ( [[pickup]] pickup )&lt;br /&gt;
&lt;br /&gt;
{{Needs_Checking|Where do you specify the pickup which name should be changed?|[[User:Aeron|Aeron]]}}&lt;br /&gt;
&lt;br /&gt;
bool [[setPickupName]] ( string name )&lt;br /&gt;
&lt;br /&gt;
bool [[setPickupPosition]] ( [[pickup]] pickup, float x, float y, float z )&lt;br /&gt;
&lt;br /&gt;
bool [[setPickupType]] ( [[pickup]] pickup, int type, int amount/weapon, [int ammo] )&lt;br /&gt;
&lt;br /&gt;
==Radar area functions==&lt;br /&gt;
radararea [[createRadarArea]] ( x, y, sizex, sizey, r, g, b, a )&lt;br /&gt;
&lt;br /&gt;
bool [[destroyRadarArea]] ( radararea )&lt;br /&gt;
&lt;br /&gt;
bool [[destroyAllRadarAreas]] ()&lt;br /&gt;
&lt;br /&gt;
float float [[getRadarAreaPosition]] ( radararea )&lt;br /&gt;
&lt;br /&gt;
float [[getRadarAreaPositionX]] ( radararea )&lt;br /&gt;
&lt;br /&gt;
float [[getRadarAreaPositionY]] ( radararea )&lt;br /&gt;
&lt;br /&gt;
float float [[getRadarAreaSize]] ( radararea )&lt;br /&gt;
&lt;br /&gt;
float [[getRadarAreaSizeX]] ( radararea )&lt;br /&gt;
&lt;br /&gt;
float [[getRadarAreaSizeY]] ( radararea )&lt;br /&gt;
&lt;br /&gt;
int int int int [[getRadarAreaColor]] ( radararea )&lt;br /&gt;
&lt;br /&gt;
int [[getRadarAreaColorRed]] ( radararea )&lt;br /&gt;
&lt;br /&gt;
int [[getRadarAreaColorGreen]] ( radararea )&lt;br /&gt;
&lt;br /&gt;
int [[getRadarAreaColorBlue]] ( radararea )&lt;br /&gt;
&lt;br /&gt;
int [[getRadarAreaColorAlpha]] ( radararea )&lt;br /&gt;
&lt;br /&gt;
bool [[isRadarAreaFlashing]] ( radararea )&lt;br /&gt;
&lt;br /&gt;
bool [[setRadarAreaPosition]] ( radararea, x, y )&lt;br /&gt;
&lt;br /&gt;
bool [[setRadarAreaSize]] ( radararea, x, y )&lt;br /&gt;
&lt;br /&gt;
bool [[setRadarAreaColor]] ( radararea, r, g, b, a )&lt;br /&gt;
&lt;br /&gt;
bool [[setRadarAreaFlashing]] ( radararea, bool )&lt;br /&gt;
&lt;br /&gt;
==Weapon functions==&lt;br /&gt;
string [[getWeaponNameFromID]] ( id )&lt;br /&gt;
&lt;br /&gt;
int [[getWeaponIDFromName]] ( string )&lt;br /&gt;
&lt;br /&gt;
==Server functions==&lt;br /&gt;
int [[getMaxPlayers]] ()&lt;br /&gt;
&lt;br /&gt;
bool [[serverLoggerPrint]] ( string, [...] )&lt;br /&gt;
&lt;br /&gt;
bool [[serverChat]] ( string, [...] )&lt;br /&gt;
&lt;br /&gt;
bool [[playerPM]] ( player, string, [...] )&lt;br /&gt;
&lt;br /&gt;
bool [[showTextForAll]] ( duration, r, g, b, size, string, [...] )&lt;br /&gt;
&lt;br /&gt;
bool [[showTextForPlayer]] ( player, duration, r, g, b, size, string, [...] )&lt;br /&gt;
&lt;br /&gt;
==Utility functions==&lt;br /&gt;
float [[getDistanceBetweenPoints2D]] ( x1, y1, x2, y2 )&lt;br /&gt;
&lt;br /&gt;
float [[getDistanceBetweenPoints3D]] ( x1, y1, z1, x2, y2, z2 )&lt;br /&gt;
&lt;br /&gt;
int [[randInt]] ( lowerbound, upperbound )&lt;br /&gt;
&lt;br /&gt;
float [[randFloat]] ()&lt;br /&gt;
&lt;br /&gt;
int [[getTickCount]] ()&lt;br /&gt;
&lt;br /&gt;
string [[gettok]] ( string, index, separatingchar )&lt;br /&gt;
&lt;br /&gt;
bool [[setTimer]] ( function, time, [arg1, arg2, ...] )&lt;br /&gt;
&lt;br /&gt;
==Map functions==&lt;br /&gt;
string [[getLoadedMapName]] ()&lt;br /&gt;
&lt;br /&gt;
xmlnode [[getLoadedMapXMLRoot]] ()&lt;br /&gt;
&lt;br /&gt;
==XML functions==&lt;br /&gt;
xmlnode [[xmlFindSubNode]] ( parent, subnode, index )&lt;br /&gt;
&lt;br /&gt;
string [[xmlNodeGetValue]] ( xmlNode )&lt;br /&gt;
&lt;br /&gt;
bool [[xmlNodeSetValue]] ( xmlNode, value )&lt;br /&gt;
&lt;br /&gt;
string [[xmlNodeGetAttribute]] ( xmlNode, attribute name )&lt;br /&gt;
&lt;br /&gt;
bool [[xmlNodeSetAttribute]] ( xmlNode, attribute name, value )&lt;br /&gt;
&lt;br /&gt;
xmlnode [[xmlLoadFile]] ( filename )&lt;br /&gt;
&lt;br /&gt;
bool [[xmlUnloadFile]] ( xmlnode )&lt;br /&gt;
&lt;br /&gt;
==Text Functions==&lt;br /&gt;
&lt;br /&gt;
textdisplay [[textCreateDisplay]] ()&lt;br /&gt;
&lt;br /&gt;
void [[textDestroyDisplay]] ( textdisplay )&lt;br /&gt;
&lt;br /&gt;
textitem [[textCreateTextItem]] ( [text, x, y, priority, red, green, blue, alpha, scale] )&lt;br /&gt;
&lt;br /&gt;
void [[textDestroyTextItem]] ( textitem )&lt;br /&gt;
&lt;br /&gt;
void [[textDisplayAddText]] ( textdisplay, textitem )&lt;br /&gt;
&lt;br /&gt;
void [[textDisplayAddObserver]] ( textdisplay, player )&lt;br /&gt;
&lt;br /&gt;
void [[textItemSetText]] ( textitem, text )&lt;br /&gt;
&lt;br /&gt;
string [[textItemGetText]] ( textitem )&lt;br /&gt;
&lt;br /&gt;
void [[textItemSetScale]] ( textitem, scale )&lt;br /&gt;
&lt;br /&gt;
float [[textItemGetScale]] ( textitem )&lt;br /&gt;
&lt;br /&gt;
void [[textItemSetPosition]] ( textitem, x, y )&lt;br /&gt;
&lt;br /&gt;
float float [[textItemGetPosition]] ( textitem )&lt;br /&gt;
&lt;br /&gt;
void [[textItemSetColor]] ( textitem, red, green, blue, alpha )&lt;br /&gt;
&lt;br /&gt;
int int int int [[textItemGetColor]] ( textitem )&lt;br /&gt;
&lt;br /&gt;
void [[textItemSetPriority]] ( textitem, priority )&lt;br /&gt;
&lt;br /&gt;
int [[textItemGetPriority]] ( textitem )&lt;/div&gt;</summary>
		<author><name>Aeron</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Server_Scripting_Functions&amp;diff=1888</id>
		<title>Server Scripting Functions</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Server_Scripting_Functions&amp;diff=1888"/>
		<updated>2006-04-20T06:39:18Z</updated>

		<summary type="html">&lt;p&gt;Aeron: /* Pickup functions */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This page lists all the scripting functions that have been implemented and are available as native functions from the Deathmatch mod. To request a function or event, use [[Requested Functions and Events]]&lt;br /&gt;
&lt;br /&gt;
Please note that the scripting functions can now be extended by loading in dynamic modules that provide new functionality, such as MySQL database access. These scripting functions are non-native and require the module to be loaded in order to work.&lt;br /&gt;
&lt;br /&gt;
Head over to [[Module functions]] for a list of non-native functions and modules that are available.&lt;br /&gt;
&lt;br /&gt;
==World functions==&lt;br /&gt;
int int [[getTime]] ()&lt;br /&gt;
&lt;br /&gt;
int [[getWeather]] ()&lt;br /&gt;
&lt;br /&gt;
bool [[setTime]] ( hour, min )&lt;br /&gt;
&lt;br /&gt;
bool [[setWeather]] ( id )&lt;br /&gt;
&lt;br /&gt;
bool [[setWeatherBlended]] ( id )&lt;br /&gt;
&lt;br /&gt;
==Player functions==&lt;br /&gt;
int [[getPlayerAdminLevel]] ( player )&lt;br /&gt;
&lt;br /&gt;
int [[getPlayerCount]] ()&lt;br /&gt;
&lt;br /&gt;
int [[getPlayerCurrentWeaponAmmoInClip]] ( player )&lt;br /&gt;
&lt;br /&gt;
int [[getPlayerCurrentWeaponID]] ( player )&lt;br /&gt;
&lt;br /&gt;
player [[getPlayerFromID]] ( id )&lt;br /&gt;
&lt;br /&gt;
player [[getPlayerFromNick]] ( nick )&lt;br /&gt;
&lt;br /&gt;
float [[getPlayerHealth]] ( player )&lt;br /&gt;
&lt;br /&gt;
float [[getPlayerArmor]] ( player )&lt;br /&gt;
&lt;br /&gt;
int [[getPlayerID]] ( player )&lt;br /&gt;
&lt;br /&gt;
float float float [[getPlayerMoveSpeed]] ( player )&lt;br /&gt;
&lt;br /&gt;
float [[getPlayerMoveSpeed|getPlayerMoveSpeedX]] ( player )&lt;br /&gt;
&lt;br /&gt;
float [[getPlayerMoveSpeed|getPlayerMoveSpeedY]] ( player )&lt;br /&gt;
&lt;br /&gt;
float [[getPlayerMoveSpeed|getPlayerMoveSpeedZ]] ( player )&lt;br /&gt;
&lt;br /&gt;
string [[getPlayerName]] ( player )&lt;br /&gt;
&lt;br /&gt;
vehicle [[getPlayerOccupiedVehicle]] ( player )&lt;br /&gt;
&lt;br /&gt;
int [[getPlayerOccupiedVehicleSeat]] ( player )&lt;br /&gt;
&lt;br /&gt;
int [[getPlayerPing]] ( player )&lt;br /&gt;
&lt;br /&gt;
float float float [[getPlayerPosition]] ( player )&lt;br /&gt;
&lt;br /&gt;
float [[getPlayerPosition|getPlayerPositionX]] ( player )&lt;br /&gt;
&lt;br /&gt;
float [[getPlayerPosition|getPlayerPositionY]] ( player )&lt;br /&gt;
&lt;br /&gt;
float [[getPlayerPosition|getPlayerPositionZ]] ( player )&lt;br /&gt;
&lt;br /&gt;
float [[getPlayerRotation]] ( player )&lt;br /&gt;
&lt;br /&gt;
int [[getPlayerSkin]] ( player )&lt;br /&gt;
&lt;br /&gt;
string [[getPlayerSourceIP]] ( player )&lt;br /&gt;
&lt;br /&gt;
player [[getRandomPlayer]] ()&lt;br /&gt;
&lt;br /&gt;
bool [[isPlayerDead]] ( player )&lt;br /&gt;
&lt;br /&gt;
bool [[isPlayerDucked]] ( player )&lt;br /&gt;
&lt;br /&gt;
bool [[isPlayerMuted]] ( player )&lt;br /&gt;
&lt;br /&gt;
bool [[setPlayerPosition]] ( player, x, y, z )&lt;br /&gt;
&lt;br /&gt;
bool [[setPlayerRotation]] ( player, rotation )&lt;br /&gt;
&lt;br /&gt;
bool [[setPlayerSkin]] ( player, id )&lt;br /&gt;
&lt;br /&gt;
bool [[setPlayerHealth]] ( player, health )&lt;br /&gt;
&lt;br /&gt;
bool [[setPlayerArmor]] ( player, armor )&lt;br /&gt;
&lt;br /&gt;
bool [[killPlayer]] ( player )&lt;br /&gt;
&lt;br /&gt;
bool [[warpPlayerIntoVehicle]] ( player, vehicle, [seat] )&lt;br /&gt;
&lt;br /&gt;
bool [[removePlayerFromVehicle]] ( player )&lt;br /&gt;
&lt;br /&gt;
bool [[spawnPlayer]] ( player, x, y, z, rotation, model )&lt;br /&gt;
&lt;br /&gt;
==Weapon functions==&lt;br /&gt;
bool [[giveWeapon]] ( player, weaponid, [ammo=30] )&lt;br /&gt;
&lt;br /&gt;
bool [[giveWeaponToAll]] ( weaponid, [ammo=30] )&lt;br /&gt;
&lt;br /&gt;
bool [[takeWeapon]] ( player, weaponid )&lt;br /&gt;
&lt;br /&gt;
bool [[takeWeaponFromAll]] ( weaponid )&lt;br /&gt;
&lt;br /&gt;
bool [[takeAllWeapons]] ( player )&lt;br /&gt;
&lt;br /&gt;
bool [[takeAllWeaponsFromAll]] ()&lt;br /&gt;
&lt;br /&gt;
==Vehicle functions==&lt;br /&gt;
vehicle [[createVehicle]] ( id, x, y, z, [rx, ry, rz] )&lt;br /&gt;
&lt;br /&gt;
bool [[destroyVehicle]] ( vehicle )&lt;br /&gt;
&lt;br /&gt;
float [[getVehicleHealth]] ( vehicle )&lt;br /&gt;
&lt;br /&gt;
int [[getVehicleID]] ( vehicle )&lt;br /&gt;
&lt;br /&gt;
int [[getVehicleIDFromName]] ( name )&lt;br /&gt;
&lt;br /&gt;
int [[getVehicleIndex]] ( vehicle )&lt;br /&gt;
&lt;br /&gt;
float float float [[getVehicleMoveSpeed]] ( vehicle )&lt;br /&gt;
&lt;br /&gt;
float [[getVehicleMoveSpeed|getVehicleMoveSpeedX]] ( vehicle )&lt;br /&gt;
&lt;br /&gt;
float [[getVehicleMoveSpeed|getVehicleMoveSpeedY]] ( vehicle )&lt;br /&gt;
&lt;br /&gt;
float [[getVehicleMoveSpeed|getVehicleMoveSpeedZ]] ( vehicle )&lt;br /&gt;
&lt;br /&gt;
string [[getVehicleName]] ( vehicle )&lt;br /&gt;
&lt;br /&gt;
string [[getVehicleNameFromID]] ( id )&lt;br /&gt;
&lt;br /&gt;
player [[getVehicleOccupant]] ( vehicle, [seat=0] )&lt;br /&gt;
&lt;br /&gt;
float float float [[getVehiclePosition]] ( vehicle )&lt;br /&gt;
&lt;br /&gt;
float [[getVehiclePosition|getVehiclePositionX]] ( vehicle )&lt;br /&gt;
&lt;br /&gt;
float [[getVehiclePosition|getVehiclePositionY]] ( vehicle )&lt;br /&gt;
&lt;br /&gt;
float [[getVehiclePosition|getVehiclePositionZ]] ( vehicle )&lt;br /&gt;
&lt;br /&gt;
float float float [[getVehicleRotation]] ( vehicle )&lt;br /&gt;
&lt;br /&gt;
float [[getVehicleRotation|getVehicleRotationX]] ( vehicle )&lt;br /&gt;
&lt;br /&gt;
float [[getVehicleRotation|getVehicleRotationY]] ( vehicle )&lt;br /&gt;
&lt;br /&gt;
float [[getVehicleRotation|getVehicleRotationZ]] ( vehicle )&lt;br /&gt;
&lt;br /&gt;
float float float [[getVehicleTurnSpeed]] ( vehicle )&lt;br /&gt;
&lt;br /&gt;
float [[GetVehicleTurnSpeed|getVehicleTurnSpeedX]] ( vehicle )&lt;br /&gt;
&lt;br /&gt;
float [[GetVehicleTurnSpeed|getVehicleTurnSpeedY]] ( vehicle )&lt;br /&gt;
&lt;br /&gt;
float [[GetVehicleTurnSpeed|getVehicleTurnSpeedZ]] ( vehicle )&lt;br /&gt;
&lt;br /&gt;
float float [[getVehicleTurretPosition]] ( vehicle )&lt;br /&gt;
&lt;br /&gt;
float [[GetVehicleTurretPosition|getVehicleTurretPositionX]] ( vehicle )&lt;br /&gt;
&lt;br /&gt;
float [[GetVehicleTurretPosition|getVehicleTurretPositionY]] ( vehicle )&lt;br /&gt;
&lt;br /&gt;
int [[getVehicleMaxPassengers]] ( vehicle )&lt;br /&gt;
&lt;br /&gt;
bool [[isVehicleLocked]] ( vehicle )&lt;br /&gt;
&lt;br /&gt;
bool [[setVehiclePosition]] ( vehicle, x, y, z )&lt;br /&gt;
&lt;br /&gt;
bool [[setVehicleRotation]] ( vehicle, rx, ry, rz )&lt;br /&gt;
&lt;br /&gt;
bool [[setVehicleMoveSpeed]] ( vehicle, x, y, z )&lt;br /&gt;
&lt;br /&gt;
bool [[setVehicleTurnSpeed]] ( vehicle, rx, ry, rz )&lt;br /&gt;
&lt;br /&gt;
bool [[setVehicleHealth]] ( vehicle, health )&lt;br /&gt;
&lt;br /&gt;
bool [[setVehicleColor]] ( vehicle, color1, color2, color3, color4 )&lt;br /&gt;
&lt;br /&gt;
bool [[setVehicleLocked]] ( vehicle, locked )&lt;br /&gt;
&lt;br /&gt;
==Marker functions==&lt;br /&gt;
marker [[createMarker]] ( x, y, z, [type, size, r, g, b,] )&lt;br /&gt;
&lt;br /&gt;
bool [[destroyMarker]] ( marker )&lt;br /&gt;
&lt;br /&gt;
bool [[destroyAllMarkers]] ()&lt;br /&gt;
&lt;br /&gt;
int [[getMarkerCount]] ()&lt;br /&gt;
&lt;br /&gt;
marker [[getMarkerFromID]] ( id )&lt;br /&gt;
&lt;br /&gt;
int [[getMarkerType]] ( [[marker]] )&lt;br /&gt;
&lt;br /&gt;
float float float [[getMarkerPosition]] ( [[marker]] )&lt;br /&gt;
&lt;br /&gt;
float [[getMarkerPosition|getMarkerPositionX]] ( [[marker]] )&lt;br /&gt;
&lt;br /&gt;
float [[getMarkerPosition|getMarkerPositionY]] ( [[marker]] )&lt;br /&gt;
&lt;br /&gt;
float [[getMarkerPosition|getMarkerPositionZ]] ( [[marker]] )&lt;br /&gt;
&lt;br /&gt;
float [[getMarkerSize]] ( [[marker]] )&lt;br /&gt;
&lt;br /&gt;
int int int [[getMarkerColor]] ( [[marker]] )&lt;br /&gt;
&lt;br /&gt;
int [[getMarkerColor|getMarkerColorRed]] ( [[marker]] )&lt;br /&gt;
&lt;br /&gt;
int [[getMarkerColor|getMarkerColorGreen]] ( [[marker]] )&lt;br /&gt;
&lt;br /&gt;
int [[getMarkerColor|getMarkerColorBlue]] ( [[marker]] )&lt;br /&gt;
&lt;br /&gt;
bool [[setMarkerType]] ( [[marker]], type )&lt;br /&gt;
&lt;br /&gt;
bool [[setMarkerPosition]] ( [[marker]], x, y, z )&lt;br /&gt;
&lt;br /&gt;
bool [[setMarkerSize]] ( [[marker]], size )&lt;br /&gt;
&lt;br /&gt;
bool [[setMarkerColor]] ( [[marker]], r, g, b )&lt;br /&gt;
&lt;br /&gt;
==Blip functions==&lt;br /&gt;
{{Needs_Checking|CreateBlip has the wrong arguments set to optional. the color/transparencies can be defaulted, the location cannot. Also, there is no option for creating blips larger than others. perhaps an additional scale option? That would make the final markup for the function &amp;quot;blip createBlip ( x, y, z, [r, g, b, a, scale} )|[[User:Vandalite|Vandalite]]}}&lt;br /&gt;
blip [[createBlip]] ( r, g, b, a, [x, y, z] )&lt;br /&gt;
{{Needs_Checking|CreateBlipAttachedTo should have the r,g,b,a arguments optional. also required is a scale argument. EG: blip  createBlipAttachedTo ( entity, [r, g, b, a, scale] )|[[User:Vandalite|Vandalite]]}}&lt;br /&gt;
blip [[createBlipAttachedTo]] ( entity, r, g, b, a )&lt;br /&gt;
&lt;br /&gt;
bool [[destroyBlip]] ( blip )&lt;br /&gt;
&lt;br /&gt;
bool [[destroyBlipAttachedTo]] ( entity )&lt;br /&gt;
&lt;br /&gt;
float float float [[getBlipPosition]] ( blip )&lt;br /&gt;
&lt;br /&gt;
float [[getBlipPositionX]] ( blip )&lt;br /&gt;
&lt;br /&gt;
float [[getBlipPositionY]] ( blip )&lt;br /&gt;
&lt;br /&gt;
float [[getBlipPositionZ]] ( blip )&lt;br /&gt;
&lt;br /&gt;
blip [[getBlipAttachedTo]] ( entity )&lt;br /&gt;
&lt;br /&gt;
{{Needs_Checking|Does setBlipPosition automatically detach a blip that has been attached to something?|[[User:Vandalite|Vandalite]]}}&lt;br /&gt;
bool [[setBlipPosition]] ( blip, x, y, z )&lt;br /&gt;
&lt;br /&gt;
bool [[attachBlipToEntity]] ( blip, entity )&lt;br /&gt;
&lt;br /&gt;
==Object functions==&lt;br /&gt;
object [[createObject]] ( model, x, y, z, [rx, ry, rz] )&lt;br /&gt;
&lt;br /&gt;
bool [[destroyObject]] ( object )&lt;br /&gt;
&lt;br /&gt;
bool [[destroyAllObjects]] ()&lt;br /&gt;
&lt;br /&gt;
string [[getObjectName]] ( object )&lt;br /&gt;
&lt;br /&gt;
int [[getObjectModel]] ( object )&lt;br /&gt;
&lt;br /&gt;
float float float [[getObjectPosition]] ( object )&lt;br /&gt;
&lt;br /&gt;
float [[getObjectPositionX]] ( object )&lt;br /&gt;
&lt;br /&gt;
float [[getObjectPositionY]] ( object )&lt;br /&gt;
&lt;br /&gt;
float [[getObjectPositionZ]] ( object )&lt;br /&gt;
&lt;br /&gt;
float float float [[getObjectRotation]] ( object )&lt;br /&gt;
&lt;br /&gt;
float [[getObjectRotationX]] ( object )&lt;br /&gt;
&lt;br /&gt;
float [[getObjectRotationY]] ( object )&lt;br /&gt;
&lt;br /&gt;
float [[getObjectRotationZ]] ( object )&lt;br /&gt;
&lt;br /&gt;
bool [[setObjectName]] ( object, name )&lt;br /&gt;
&lt;br /&gt;
bool [[setObjectModel]] ( object, model )&lt;br /&gt;
&lt;br /&gt;
bool [[setObjectPosition]] ( object, x, y, z )&lt;br /&gt;
&lt;br /&gt;
bool [[setObjectRotation]] ( object, x, y, z )&lt;br /&gt;
&lt;br /&gt;
bool [[moveObject]] ( object, time, x, y, z, rx, ry, rz )&lt;br /&gt;
&lt;br /&gt;
==Pickup functions==&lt;br /&gt;
[[pickup]] [[createPickup]] ( float x, float y, float z, int type, int amount/weapon, [int ammo] )&lt;br /&gt;
&lt;br /&gt;
bool [[destroyPickup]] ( [[pickup]] pickup )&lt;br /&gt;
&lt;br /&gt;
bool [[destroyAllPickups]] ()&lt;br /&gt;
&lt;br /&gt;
string [[getPickupName]] ( [[pickup]] pickup )&lt;br /&gt;
&lt;br /&gt;
[[pickup]] [[getPickupFromName]] ( string name )&lt;br /&gt;
&lt;br /&gt;
float float float [[getPickupPosition]] ( [[pickup]] pickup )&lt;br /&gt;
&lt;br /&gt;
float [[getPickupPositionX]] ( [[pickup]] pickup )&lt;br /&gt;
&lt;br /&gt;
float [[getPickupPositionY]] ( [[pickup]] pickup )&lt;br /&gt;
&lt;br /&gt;
float [[getPickupPositionZ]] ( [[pickup]] pickup )&lt;br /&gt;
&lt;br /&gt;
int [[getPickupType]] ( [[pickup]] pickup )&lt;br /&gt;
&lt;br /&gt;
int [[getPickupWeapon]] ( [[pickup]] pickup )&lt;br /&gt;
&lt;br /&gt;
int [[getPickupHealth]] ( [[pickup]] pickup )&lt;br /&gt;
&lt;br /&gt;
int [[getPickupAmmo]] ( [[pickup]] pickup )&lt;br /&gt;
&lt;br /&gt;
bool [[setPickupName]] ( [[pickup]] pickup, string name )&lt;br /&gt;
&lt;br /&gt;
bool [[setPickupPosition]] ( [[pickup]] pickup, float x, float y, float z )&lt;br /&gt;
&lt;br /&gt;
bool [[setPickupType]] ( [[pickup]] pickup, int type, int amount/weapon, [int ammo] )&lt;br /&gt;
&lt;br /&gt;
==Radar area functions==&lt;br /&gt;
radararea [[createRadarArea]] ( x, y, sizex, sizey, r, g, b, a )&lt;br /&gt;
&lt;br /&gt;
bool [[destroyRadarArea]] ( radararea )&lt;br /&gt;
&lt;br /&gt;
bool [[destroyAllRadarAreas]] ()&lt;br /&gt;
&lt;br /&gt;
float float [[getRadarAreaPosition]] ( radararea )&lt;br /&gt;
&lt;br /&gt;
float [[getRadarAreaPositionX]] ( radararea )&lt;br /&gt;
&lt;br /&gt;
float [[getRadarAreaPositionY]] ( radararea )&lt;br /&gt;
&lt;br /&gt;
float float [[getRadarAreaSize]] ( radararea )&lt;br /&gt;
&lt;br /&gt;
float [[getRadarAreaSizeX]] ( radararea )&lt;br /&gt;
&lt;br /&gt;
float [[getRadarAreaSizeY]] ( radararea )&lt;br /&gt;
&lt;br /&gt;
int int int int [[getRadarAreaColor]] ( radararea )&lt;br /&gt;
&lt;br /&gt;
int [[getRadarAreaColorRed]] ( radararea )&lt;br /&gt;
&lt;br /&gt;
int [[getRadarAreaColorGreen]] ( radararea )&lt;br /&gt;
&lt;br /&gt;
int [[getRadarAreaColorBlue]] ( radararea )&lt;br /&gt;
&lt;br /&gt;
int [[getRadarAreaColorAlpha]] ( radararea )&lt;br /&gt;
&lt;br /&gt;
bool [[isRadarAreaFlashing]] ( radararea )&lt;br /&gt;
&lt;br /&gt;
bool [[setRadarAreaPosition]] ( radararea, x, y )&lt;br /&gt;
&lt;br /&gt;
bool [[setRadarAreaSize]] ( radararea, x, y )&lt;br /&gt;
&lt;br /&gt;
bool [[setRadarAreaColor]] ( radararea, r, g, b, a )&lt;br /&gt;
&lt;br /&gt;
bool [[setRadarAreaFlashing]] ( radararea, bool )&lt;br /&gt;
&lt;br /&gt;
==Weapon functions==&lt;br /&gt;
string [[getWeaponNameFromID]] ( id )&lt;br /&gt;
&lt;br /&gt;
int [[getWeaponIDFromName]] ( string )&lt;br /&gt;
&lt;br /&gt;
==Server functions==&lt;br /&gt;
int [[getMaxPlayers]] ()&lt;br /&gt;
&lt;br /&gt;
bool [[serverLoggerPrint]] ( string, [...] )&lt;br /&gt;
&lt;br /&gt;
bool [[serverChat]] ( string, [...] )&lt;br /&gt;
&lt;br /&gt;
bool [[playerPM]] ( player, string, [...] )&lt;br /&gt;
&lt;br /&gt;
bool [[showTextForAll]] ( duration, r, g, b, size, string, [...] )&lt;br /&gt;
&lt;br /&gt;
bool [[showTextForPlayer]] ( player, duration, r, g, b, size, string, [...] )&lt;br /&gt;
&lt;br /&gt;
==Utility functions==&lt;br /&gt;
float [[getDistanceBetweenPoints2D]] ( x1, y1, x2, y2 )&lt;br /&gt;
&lt;br /&gt;
float [[getDistanceBetweenPoints3D]] ( x1, y1, z1, x2, y2, z2 )&lt;br /&gt;
&lt;br /&gt;
int [[randInt]] ( lowerbound, upperbound )&lt;br /&gt;
&lt;br /&gt;
float [[randFloat]] ()&lt;br /&gt;
&lt;br /&gt;
int [[getTickCount]] ()&lt;br /&gt;
&lt;br /&gt;
string [[gettok]] ( string, index, separatingchar )&lt;br /&gt;
&lt;br /&gt;
bool [[setTimer]] ( function, time, [arg1, arg2, ...] )&lt;br /&gt;
&lt;br /&gt;
==Map functions==&lt;br /&gt;
string [[getLoadedMapName]] ()&lt;br /&gt;
&lt;br /&gt;
xmlnode [[getLoadedMapXMLRoot]] ()&lt;br /&gt;
&lt;br /&gt;
==XML functions==&lt;br /&gt;
xmlnode [[xmlFindSubNode]] ( parent, subnode, index )&lt;br /&gt;
&lt;br /&gt;
string [[xmlNodeGetValue]] ( xmlNode )&lt;br /&gt;
&lt;br /&gt;
bool [[xmlNodeSetValue]] ( xmlNode, value )&lt;br /&gt;
&lt;br /&gt;
string [[xmlNodeGetAttribute]] ( xmlNode, attribute name )&lt;br /&gt;
&lt;br /&gt;
bool [[xmlNodeSetAttribute]] ( xmlNode, attribute name, value )&lt;br /&gt;
&lt;br /&gt;
xmlnode [[xmlLoadFile]] ( filename )&lt;br /&gt;
&lt;br /&gt;
bool [[xmlUnloadFile]] ( xmlnode )&lt;br /&gt;
&lt;br /&gt;
==Text Functions==&lt;br /&gt;
&lt;br /&gt;
textdisplay [[textCreateDisplay]] ()&lt;br /&gt;
&lt;br /&gt;
void [[textDestroyDisplay]] ( textdisplay )&lt;br /&gt;
&lt;br /&gt;
textitem [[textCreateTextItem]] ( [text, x, y, priority, red, green, blue, alpha, scale] )&lt;br /&gt;
&lt;br /&gt;
void [[textDestroyTextItem]] ( textitem )&lt;br /&gt;
&lt;br /&gt;
void [[textDisplayAddText]] ( textdisplay, textitem )&lt;br /&gt;
&lt;br /&gt;
void [[textDisplayAddObserver]] ( textdisplay, player )&lt;br /&gt;
&lt;br /&gt;
void [[textItemSetText]] ( textitem, text )&lt;br /&gt;
&lt;br /&gt;
string [[textItemGetText]] ( textitem )&lt;br /&gt;
&lt;br /&gt;
void [[textItemSetScale]] ( textitem, scale )&lt;br /&gt;
&lt;br /&gt;
float [[textItemGetScale]] ( textitem )&lt;br /&gt;
&lt;br /&gt;
void [[textItemSetPosition]] ( textitem, x, y )&lt;br /&gt;
&lt;br /&gt;
float float [[textItemGetPosition]] ( textitem )&lt;br /&gt;
&lt;br /&gt;
void [[textItemSetColor]] ( textitem, red, green, blue, alpha )&lt;br /&gt;
&lt;br /&gt;
int int int int [[textItemGetColor]] ( textitem )&lt;br /&gt;
&lt;br /&gt;
void [[textItemSetPriority]] ( textitem, priority )&lt;br /&gt;
&lt;br /&gt;
int [[textItemGetPriority]] ( textitem )&lt;/div&gt;</summary>
		<author><name>Aeron</name></author>
	</entry>
</feed>