<?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=Xanarki</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=Xanarki"/>
	<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/wiki/Special:Contributions/Xanarki"/>
	<updated>2026-05-15T11:54:42Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.39.3</generator>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=GetObjectModel&amp;diff=10238</id>
		<title>GetObjectModel</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=GetObjectModel&amp;diff=10238"/>
		<updated>2007-08-14T23:22:44Z</updated>

		<summary type="html">&lt;p&gt;Xanarki: /* Example */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__ &lt;br /&gt;
{{Server function}}&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 ''int'' with the object model id, or ''false'' it's no or an invalid object.&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
&amp;lt;section name=&amp;quot;Server&amp;quot; class=&amp;quot;server&amp;quot; show=&amp;quot;true&amp;quot;&amp;gt; &lt;br /&gt;
This example 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;
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;
addEventHandler ( &amp;quot;onPlayerTarget&amp;quot;, getRootElement(), onPlayerTargeted )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &amp;lt;/section&amp;gt;&lt;br /&gt;
&amp;lt;section name=&amp;quot;Server&amp;quot; class=&amp;quot;server&amp;quot; show=&amp;quot;false&amp;quot;&amp;gt;&lt;br /&gt;
This example outputs the model id of objects the player is targetting.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function onPlayerTargeted ( element )&lt;br /&gt;
    if ( getElementType ( element ) == &amp;quot;object&amp;quot;) then&lt;br /&gt;
        outputChatBox(getObjectModel ( element ))&lt;br /&gt;
    end&lt;br /&gt;
end&lt;br /&gt;
addEventHandler ( &amp;quot;onPlayerTarget&amp;quot;, getRootElement(), onPlayerTargeted )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &amp;lt;/section&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{Object functions}}&lt;/div&gt;</summary>
		<author><name>Xanarki</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=GetObjectModel&amp;diff=10237</id>
		<title>GetObjectModel</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=GetObjectModel&amp;diff=10237"/>
		<updated>2007-08-14T23:22:05Z</updated>

		<summary type="html">&lt;p&gt;Xanarki: /* Example */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__ &lt;br /&gt;
{{Server function}}&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 ''int'' with the object model id, or ''false'' it's no or an invalid object.&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
&amp;lt;section name=&amp;quot;Server&amp;quot; class=&amp;quot;server&amp;quot; show=&amp;quot;true&amp;quot;&amp;gt; &lt;br /&gt;
This example 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;
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;
addEventHandler ( &amp;quot;onPlayerTarget&amp;quot;, getRootElement(), onPlayerTargeted )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &amp;lt;/section&amp;gt;&lt;br /&gt;
&amp;lt;section name=&amp;quot;Server&amp;quot; class=&amp;quot;server&amp;quot; show=&amp;quot;true&amp;quot;&amp;gt;&lt;br /&gt;
This example outputs the model id of objects the player is targetting.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function onPlayerTargeted ( element )&lt;br /&gt;
    if ( getElementType ( element ) == &amp;quot;object&amp;quot;) then&lt;br /&gt;
        outputChatBox(getObjectModel ( element ))&lt;br /&gt;
    end&lt;br /&gt;
end&lt;br /&gt;
addEventHandler ( &amp;quot;onPlayerTarget&amp;quot;, getRootElement(), onPlayerTargeted )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &amp;lt;/section&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{Object functions}}&lt;/div&gt;</summary>
		<author><name>Xanarki</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=GetMaxPlayers&amp;diff=10236</id>
		<title>GetMaxPlayers</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=GetMaxPlayers&amp;diff=10236"/>
		<updated>2007-08-14T23:20:54Z</updated>

		<summary type="html">&lt;p&gt;Xanarki: /* Example */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__&lt;br /&gt;
{{Server function}}&lt;br /&gt;
This function returns the maximum number of player slots on the server.&lt;br /&gt;
&lt;br /&gt;
==Syntax==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;int getMaxPlayers ()&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns the maximum number of players allowed on the server.&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
&amp;lt;section name=&amp;quot;Server&amp;quot; class=&amp;quot;server&amp;quot; show=&amp;quot;true&amp;quot;&amp;gt;&lt;br /&gt;
This example outputs the current number of players together with the maximum number of players when a player joins.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function showPlayers()&lt;br /&gt;
	local maxPlayers = getMaxPlayers() -- get maximum number of players on the server&lt;br /&gt;
	local players = getElementsByType(&amp;quot;player&amp;quot;) -- get a table of all current players&lt;br /&gt;
	outputChatBox(&amp;quot;There are &amp;quot;..#players..&amp;quot;/&amp;quot;..maxPlayers..&amp;quot; players playing&amp;quot;,source) -- output a message to the joining player&lt;br /&gt;
end&lt;br /&gt;
addEventHandler(&amp;quot;onPlayerJoin&amp;quot;,getRootElement(),showPlayers) -- add the Event for &amp;quot;onPlayerJoin&amp;quot; that will call the &amp;quot;showPlayers&amp;quot; function&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &amp;lt;/section&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{Server functions}}&lt;/div&gt;</summary>
		<author><name>Xanarki</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=GetMarkerType&amp;diff=10235</id>
		<title>GetMarkerType</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=GetMarkerType&amp;diff=10235"/>
		<updated>2007-08-14T23:20:28Z</updated>

		<summary type="html">&lt;p&gt;Xanarki: /* Example */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__&lt;br /&gt;
{{Server client function}}&lt;br /&gt;
This function returns a marker's type.&lt;br /&gt;
&lt;br /&gt;
==Syntax==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;string getMarkerType ( marker theMarker )&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Required Arguments===&lt;br /&gt;
* '''theMarker''': A [[marker]] element referencing the specified marker.&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns one of the following strings:&lt;br /&gt;
{{Marker_types}}&lt;br /&gt;
&lt;br /&gt;
If an invalid marker is specified, ''false'' is returned.&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
&amp;lt;section name=&amp;quot;Both&amp;quot; class=&amp;quot;both&amp;quot; show=&amp;quot;true&amp;quot;&amp;gt;&lt;br /&gt;
This function creates a default marker at a given position and outputs its type.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function createMarkerAndOutputType ( x, y, z )&lt;br /&gt;
	-- we create the marker&lt;br /&gt;
	local theMarker = createMarker ( x, y, z )&lt;br /&gt;
	-- if the marker was created,&lt;br /&gt;
	if ( theMarker ) then&lt;br /&gt;
		-- then get its type,&lt;br /&gt;
		local markerType = getMarkerType ( theMarker )&lt;br /&gt;
		-- and output it.&lt;br /&gt;
		outputChatBox ( &amp;quot;It's a &amp;quot; .. markerType .. &amp;quot; marker!&amp;quot; )&lt;br /&gt;
	end&lt;br /&gt;
	-- return the created marker element (or false) where this function was called&lt;br /&gt;
	return theMarker&lt;br /&gt;
end&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &amp;lt;/section&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{Marker functions}}&lt;/div&gt;</summary>
		<author><name>Xanarki</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=GetMarkerSize&amp;diff=10234</id>
		<title>GetMarkerSize</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=GetMarkerSize&amp;diff=10234"/>
		<updated>2007-08-14T23:19:28Z</updated>

		<summary type="html">&lt;p&gt;Xanarki: /* Example */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__&lt;br /&gt;
{{Server client function}}&lt;br /&gt;
This function returns a [[float]] containing the size of the specified marker.&lt;br /&gt;
&lt;br /&gt;
==Syntax==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;float getMarkerSize ( marker myMarker )&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Required Arguments===&lt;br /&gt;
*'''myMarker''': The [[marker]] that you wish to retrieve the size of.&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns a [[float]] containing the size of the specified marker.&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
&amp;lt;section name=&amp;quot;Both&amp;quot; class=&amp;quot;both&amp;quot; show=&amp;quot;true&amp;quot;&amp;gt;&lt;br /&gt;
This example creates a marker and outputs the size to everyone.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
-- Create a maker&lt;br /&gt;
newMarker = createMarker ( 1, 1000, 1000, 1000, 1,0,0 )&lt;br /&gt;
-- If the marker was created successfully then...&lt;br /&gt;
if ( newMarker ~= false ) then&lt;br /&gt;
	-- Tell everyone about it&lt;br /&gt;
	outputChatBox ( &amp;quot;Current marker size: &amp;quot; .. getMarkerSize ( newMarker ) )&lt;br /&gt;
end&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &amp;lt;/section&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{Marker functions}}&lt;/div&gt;</summary>
		<author><name>Xanarki</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=SetMarkerType&amp;diff=10233</id>
		<title>SetMarkerType</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=SetMarkerType&amp;diff=10233"/>
		<updated>2007-08-14T23:13:51Z</updated>

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

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

		<summary type="html">&lt;p&gt;Xanarki: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__ &lt;br /&gt;
This sets a new object model to the specified element.&lt;br /&gt;
&lt;br /&gt;
==Syntax== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
bool setObjectModel ( element object, int id )        &lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
&lt;br /&gt;
===Required Arguments=== &lt;br /&gt;
*'''object:''' A valid [[element]].&lt;br /&gt;
*'''id:''' An [[int]] specifying the model id.&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns ''true'' if the model change was successful, ''false'' otherwise.&lt;br /&gt;
&lt;br /&gt;
==Example== &lt;br /&gt;
&amp;lt;section name=&amp;quot;Server&amp;quot; class=&amp;quot;server&amp;quot; show=&amp;quot;true&amp;quot;&amp;gt;&lt;br /&gt;
This will continually change an object model every 2.5 seconds at the location -1084.52, -1634.81, 76.36 (Truth's farm).&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
myobject = createObject ( 5822, -1084.52, -1634.81, 76.36 )&lt;br /&gt;
--We create an initial object element. I choose object model 5822 to begin with.&lt;br /&gt;
&lt;br /&gt;
setTimer ( objectRandomization, 2500, 0 )&lt;br /&gt;
--Every 2.5 seconds, the function 'objectRandomization' is called by this timer.&lt;br /&gt;
--Each time the function runs, it changes the object model by applying a new whole-&lt;br /&gt;
--integer random object ID. This timer is called an infinite amount of times since  &lt;br /&gt;
--it's repeat value is set to 0.&lt;br /&gt;
&lt;br /&gt;
function objectRandomization ()  &lt;br /&gt;
randomobjectnumber = randInt(1, 18000)&lt;br /&gt;
--Choose a random number between 1 and 18000 as a whole integer and assign it to&lt;br /&gt;
--the varible 'randomobjectnumber'&lt;br /&gt;
setObjectModel ( myobject, randomobjectnumber )&lt;br /&gt;
--Change our object appearance by applying a new model ID&lt;br /&gt;
end&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &amp;lt;/section&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{Object functions}}&lt;br /&gt;
{{Server function}}&lt;/div&gt;</summary>
		<author><name>Xanarki</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=SetPlayerArmor&amp;diff=10230</id>
		<title>SetPlayerArmor</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=SetPlayerArmor&amp;diff=10230"/>
		<updated>2007-08-14T23:11:38Z</updated>

		<summary type="html">&lt;p&gt;Xanarki: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__&lt;br /&gt;
This function allows you to set the armor value of a [[player]].&lt;br /&gt;
&lt;br /&gt;
==Syntax==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;bool setPlayerArmor ( player thePlayer, float playerArmor )&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Required Arguments===&lt;br /&gt;
*'''thePlayer''': the [[player]] whose armor you want to modify.&lt;br /&gt;
*'''playerArmor''': the amount of armor you want to set on the player. Valid values are from 0 to 100.&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns ''true'' if the armor was changed succesfully. Returns ''false'' if an invalid player is specified, or the armor value specified is out of acceptable range.&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
&amp;lt;section name=&amp;quot;Server&amp;quot; class=&amp;quot;server&amp;quot; show=&amp;quot;true&amp;quot;&amp;gt;&lt;br /&gt;
This example removes the armor of a player.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function armoroff ( player, command )&lt;br /&gt;
setPlayerArmor ( player, getPlayerArmor(player) - 100 )&lt;br /&gt;
 end&lt;br /&gt;
&lt;br /&gt;
addCommandHandler ( &amp;quot;armoroff&amp;quot;, armoroff )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &amp;lt;/section&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{Player functions}}&lt;br /&gt;
{{Server function}}&lt;/div&gt;</summary>
		<author><name>Xanarki</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=SetPlayerFightingStyle&amp;diff=10229</id>
		<title>SetPlayerFightingStyle</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=SetPlayerFightingStyle&amp;diff=10229"/>
		<updated>2007-08-14T23:10:58Z</updated>

		<summary type="html">&lt;p&gt;Xanarki: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__ &lt;br /&gt;
Changes a player's fighting style, most only change the 'special attack' which is done using the Aim and Enter keys.&lt;br /&gt;
&lt;br /&gt;
{| border=&amp;quot;2&amp;quot; cellpadding=&amp;quot;2&amp;quot; cellspacing=&amp;quot;0&amp;quot; style=&amp;quot;margin: 1em 1em 1em 0; background: #f9f9f9; border: 1px #aaa solid; border-collapse: collapse; font-size: 95%;&amp;quot;&lt;br /&gt;
|'''Fighting Style'''&lt;br /&gt;
|'''ID'''&lt;br /&gt;
|-&lt;br /&gt;
|STYLE_STANDARD&lt;br /&gt;
|4&lt;br /&gt;
|-&lt;br /&gt;
|STYLE_BOXING&lt;br /&gt;
|5&lt;br /&gt;
|-&lt;br /&gt;
|STYLE_KUNG_FU&lt;br /&gt;
|6&lt;br /&gt;
|-&lt;br /&gt;
|STYLE_KNEE_HEAD&lt;br /&gt;
|7&lt;br /&gt;
|-&lt;br /&gt;
|STYLE_GRAB_KICK&lt;br /&gt;
|15&lt;br /&gt;
|-&lt;br /&gt;
|STYLE_ELBOWS&lt;br /&gt;
|16&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==Syntax== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;setPlayerFightingStyle ( player, int style ) &amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
&lt;br /&gt;
===Required Arguments=== &lt;br /&gt;
*'''Player:''' Tells the function to give the fighting style to a player&lt;br /&gt;
*'''Style:''' A whole integer specifying the style of fighting you want to give to the player&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
&amp;lt;section name=&amp;quot;Server&amp;quot; class=&amp;quot;server&amp;quot; show=&amp;quot;true&amp;quot;&amp;gt;  &lt;br /&gt;
This example sets the player's fighting style to the desired style when he types &amp;quot;setstyle&amp;quot; followed by a number from 4 to 16 in console.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function consoleSetFightingStyle ( player, commandName, id ) --Calls the function&lt;br /&gt;
	if ( player and id ) then --If both are valid&lt;br /&gt;
	    local status = setPlayerFightingStyle ( player, tonumber(id) ) --Fighting style is set&lt;br /&gt;
		if ( not status ) then --If it can't set the fighting style (bad ID)&lt;br /&gt;
			outputConsole ( &amp;quot;Failed to set fighting style.&amp;quot;, player ) --This shows&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
end&lt;br /&gt;
addCommandHandler ( &amp;quot;setstyle&amp;quot;,  consoleSetFightingStyle )&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &amp;lt;/section&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{Player functions}}&lt;br /&gt;
{{Server function}}&lt;/div&gt;</summary>
		<author><name>Xanarki</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=SetPlayerGravity&amp;diff=10228</id>
		<title>SetPlayerGravity</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=SetPlayerGravity&amp;diff=10228"/>
		<updated>2007-08-14T23:09:18Z</updated>

		<summary type="html">&lt;p&gt;Xanarki: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__&lt;br /&gt;
==Description==&lt;br /&gt;
This function sets the gravity level of a player.&lt;br /&gt;
&lt;br /&gt;
==Syntax==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;setPlayerGravity ( player thePlayer, float level )&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Required Arguments===&lt;br /&gt;
*'''thePlayer''': The player whose gravity to change.&lt;br /&gt;
*'''level''': The level of gravity ( default is &amp;lt;b&amp;gt;0.008&amp;lt;/b&amp;gt; )&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
&amp;lt;section name=&amp;quot;Server&amp;quot; class=&amp;quot;server&amp;quot; show=&amp;quot;true&amp;quot;&amp;gt;&lt;br /&gt;
This example allows the user to type a command to change their gravity:&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;function consoleSetPlayerGravity ( player, commandName, level ) --Calls the function&lt;br /&gt;
	if ( player ) then&lt;br /&gt;
		local success = setPlayerGravity ( player, tonumber ( level ) ) --Sets the gravity&lt;br /&gt;
		if (not success) then&lt;br /&gt;
			outputConsole( &amp;quot;Failed to set player gravity&amp;quot;, player ) --If it can't be set, this message will show&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
end&lt;br /&gt;
addCommandHandler ( &amp;quot;setplayergravity&amp;quot;, consoleSetPlayerGravity )&amp;lt;/syntaxhighlight&amp;gt;&amp;lt;/section&amp;gt;&lt;br /&gt;
==See Also==&lt;br /&gt;
{{Player functions}}&lt;br /&gt;
{{Server function}}&lt;/div&gt;</summary>
		<author><name>Xanarki</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=SetPlayerHealth&amp;diff=10227</id>
		<title>SetPlayerHealth</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=SetPlayerHealth&amp;diff=10227"/>
		<updated>2007-08-14T23:08:42Z</updated>

		<summary type="html">&lt;p&gt;Xanarki: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__&lt;br /&gt;
This function allows you to set a player's health.&lt;br /&gt;
&lt;br /&gt;
==Syntax==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
bool setPlayerHealth ( player thePlayer, float playerHealth )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Required Arguments===&lt;br /&gt;
*'''thePlayer''': The [[player]] whose health you want to set.&lt;br /&gt;
*'''playerHealth''': The value you want to set the health to. Valid values are from 0 (dead) to 100 (full health). &lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns ''true'' if the player's health was set succesfully. Returns ''false'' if the player argument is invalid, or the health argument is out of range.&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
&amp;lt;section name=&amp;quot;Server&amp;quot; class=&amp;quot;server&amp;quot; show=&amp;quot;true&amp;quot;&amp;gt;&lt;br /&gt;
This example finds &amp;quot;player&amp;quot; and when &amp;quot;slap&amp;quot; is entered, their health is decreased&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function slap ( player, command ) --calls the function&lt;br /&gt;
setPlayerHealth ( player, getPlayerHealth(player) - 20 ) --sets the player health&lt;br /&gt;
 end&lt;br /&gt;
addCommandHandler ( &amp;quot;slap&amp;quot;, slap )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&amp;lt;/section&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{Player functions}}&lt;br /&gt;
{{Server function}}&lt;/div&gt;</summary>
		<author><name>Xanarki</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=SetMarkerTarget&amp;diff=10166</id>
		<title>SetMarkerTarget</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=SetMarkerTarget&amp;diff=10166"/>
		<updated>2007-08-13T04:01:50Z</updated>

		<summary type="html">&lt;p&gt;Xanarki: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:Incomplete]]&lt;br /&gt;
&lt;br /&gt;
__NOTOC__ &lt;br /&gt;
This fake function is for use with blah &amp;amp; blah and does blahblahblabhalbhl&lt;br /&gt;
&lt;br /&gt;
{{Needs_Checking|Shouldn't it be setMarkerTarget ( marker, x, y, z ) ?|[[User:Erorr404|Erorr404]]}}&lt;br /&gt;
{{Needs_Checking|Also, entering anything other than 0, 0, 0 does not show the arrow (setMarkerTarget ( marker, 0, 0, 0 ) does show the arrow)|[[User:Erorr404|Erorr404]]}}&lt;br /&gt;
&lt;br /&gt;
==Syntax== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
bool setMarkerTarget ( marker, x, y, z )    &lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
&lt;br /&gt;
===Required Arguments=== &lt;br /&gt;
*'''argumentName:''' description&lt;br /&gt;
&lt;br /&gt;
===Optional Arguments=== &lt;br /&gt;
{{OptionalArg}} &lt;br /&gt;
*'''argumentName2:''' descriptiona&lt;br /&gt;
*'''argumentName3:''' description&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns ''true'' if blah, ''false'' otherwise.&lt;br /&gt;
&lt;br /&gt;
==Example== &lt;br /&gt;
This example does...&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
--This line does...&lt;br /&gt;
blabhalbalhb --abababa&lt;br /&gt;
--This line does this...&lt;br /&gt;
mooo&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{Marker functions}}&lt;/div&gt;</summary>
		<author><name>Xanarki</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=SetPlayerHealth&amp;diff=9919</id>
		<title>SetPlayerHealth</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=SetPlayerHealth&amp;diff=9919"/>
		<updated>2007-08-06T07:08:11Z</updated>

		<summary type="html">&lt;p&gt;Xanarki: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__&lt;br /&gt;
This function allows you to set a player's health.&lt;br /&gt;
&lt;br /&gt;
==Syntax==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
bool setPlayerHealth ( player thePlayer, float playerHealth )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Required Arguments===&lt;br /&gt;
*'''thePlayer''': The [[player]] whose health you want to set.&lt;br /&gt;
*'''playerHealth''': The value you want to set the health to. Valid values are from 0 (dead) to 100 (full health). &lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns ''true'' if the player's health was set succesfully. Returns ''false'' if the player argument is invalid, or the health argument is out of range.&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
This example finds &amp;quot;player&amp;quot; and when &amp;quot;slap&amp;quot; is entered, their health is decreased&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function slap ( player, command ) --calls the function&lt;br /&gt;
setPlayerHealth ( player, getPlayerHealth(player) - 20 ) --sets the player health&lt;br /&gt;
 end&lt;br /&gt;
addCommandHandler ( &amp;quot;slap&amp;quot;, slap )&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>Xanarki</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=SetPlayerArmor&amp;diff=9917</id>
		<title>SetPlayerArmor</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=SetPlayerArmor&amp;diff=9917"/>
		<updated>2007-08-06T07:06:42Z</updated>

		<summary type="html">&lt;p&gt;Xanarki: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__&lt;br /&gt;
This function allows you to set the armor value of a [[player]].&lt;br /&gt;
&lt;br /&gt;
==Syntax==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;bool setPlayerArmor ( player thePlayer, float playerArmor )&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Required Arguments===&lt;br /&gt;
*'''thePlayer''': the [[player]] whose armor you want to modify.&lt;br /&gt;
*'''playerArmor''': the amount of armor you want to set on the player. Valid values are from 0 to 100.&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns ''true'' if the armor was changed succesfully. Returns ''false'' if an invalid player is specified, or the armor value specified is out of acceptable range.&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
This example removes the armor of a player.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function armoroff ( player, command )&lt;br /&gt;
setPlayerArmor ( player, getPlayerArmor(player) - 100 )&lt;br /&gt;
 end&lt;br /&gt;
&lt;br /&gt;
addCommandHandler ( &amp;quot;armoroff&amp;quot;, armoroff )&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>Xanarki</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=SetPlayerArmor&amp;diff=9916</id>
		<title>SetPlayerArmor</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=SetPlayerArmor&amp;diff=9916"/>
		<updated>2007-08-06T06:59:33Z</updated>

		<summary type="html">&lt;p&gt;Xanarki: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__&lt;br /&gt;
This function allows you to set the armor value of a [[player]].&lt;br /&gt;
&lt;br /&gt;
==Syntax==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;bool setPlayerArmor ( player thePlayer, float playerArmor )&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Required Arguments===&lt;br /&gt;
*'''thePlayer''': the [[player]] whose armor you want to modify.&lt;br /&gt;
*'''playerArmor''': the amount of armor you want to set on the player. Valid values are from 0 to 100.&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns ''true'' if the armor was changed succesfully. Returns ''false'' if an invalid player is specified, or the armor value specified is out of acceptable range.&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
This example removes the armor of a player.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function armoroff ( player, command )&lt;br /&gt;
setPlayerArmor ( player, getPlayerArmor - 100 )&lt;br /&gt;
 end&lt;br /&gt;
&lt;br /&gt;
addCommandHandler ( &amp;quot;armoroff&amp;quot;, armoroff )&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>Xanarki</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=SetPlayerHealth&amp;diff=9914</id>
		<title>SetPlayerHealth</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=SetPlayerHealth&amp;diff=9914"/>
		<updated>2007-08-06T06:52:44Z</updated>

		<summary type="html">&lt;p&gt;Xanarki: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__&lt;br /&gt;
This function allows you to set a player's health.&lt;br /&gt;
&lt;br /&gt;
==Syntax==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
bool setPlayerHealth ( player thePlayer, float playerHealth )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Required Arguments===&lt;br /&gt;
*'''thePlayer''': The [[player]] whose health you want to set.&lt;br /&gt;
*'''playerHealth''': The value you want to set the health to. Valid values are from 0 (dead) to 100 (full health). &lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns ''true'' if the player's health was set succesfully. Returns ''false'' if the player argument is invalid, or the health argument is out of range.&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
This example finds &amp;quot;player&amp;quot; and when &amp;quot;slap&amp;quot; is entered, their health is decreased&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function slap ( player, command ) --calls the function&lt;br /&gt;
setPlayerHealth ( player, getPlayerHealth - 20 ) --sets the player health&lt;br /&gt;
 end&lt;br /&gt;
addCommandHandler ( &amp;quot;slap&amp;quot;, slap )&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>Xanarki</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=SetPlayerGravity&amp;diff=9908</id>
		<title>SetPlayerGravity</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=SetPlayerGravity&amp;diff=9908"/>
		<updated>2007-08-06T05:29:43Z</updated>

		<summary type="html">&lt;p&gt;Xanarki: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__&lt;br /&gt;
==Description==&lt;br /&gt;
This function sets the gravity level of a player.&lt;br /&gt;
&lt;br /&gt;
==Syntax==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;setPlayerGravity ( player thePlayer, float level )&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Required Arguments===&lt;br /&gt;
*'''thePlayer''': The player whose gravity to change.&lt;br /&gt;
*'''level''': The level of gravity ( default is &amp;lt;b&amp;gt;0.008&amp;lt;/b&amp;gt; )&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
This example allows the user to type a command to change their gravity:&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;function consoleSetPlayerGravity ( player, commandName, level ) --Calls the function&lt;br /&gt;
	if ( player ) then&lt;br /&gt;
		local success = setPlayerGravity ( player, tonumber ( level ) ) --Sets the gravity&lt;br /&gt;
		if (not success) then&lt;br /&gt;
			outputConsole( &amp;quot;Failed to set player gravity&amp;quot;, player ) --If it can't be set, this message will show&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
end&lt;br /&gt;
addCommandHandler ( &amp;quot;setplayergravity&amp;quot;, consoleSetPlayerGravity )&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
==See Also==&lt;br /&gt;
{{Player functions}}&lt;/div&gt;</summary>
		<author><name>Xanarki</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=SetPlayerFightingStyle&amp;diff=9906</id>
		<title>SetPlayerFightingStyle</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=SetPlayerFightingStyle&amp;diff=9906"/>
		<updated>2007-08-05T18:57:39Z</updated>

		<summary type="html">&lt;p&gt;Xanarki: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__ &lt;br /&gt;
Changes a player's fighting style, most only change the 'special attack' which is done using the Aim and Enter keys.&lt;br /&gt;
&lt;br /&gt;
{| border=&amp;quot;2&amp;quot; cellpadding=&amp;quot;2&amp;quot; cellspacing=&amp;quot;0&amp;quot; style=&amp;quot;margin: 1em 1em 1em 0; background: #f9f9f9; border: 1px #aaa solid; border-collapse: collapse; font-size: 95%;&amp;quot;&lt;br /&gt;
|'''Fighting Style'''&lt;br /&gt;
|'''ID'''&lt;br /&gt;
|-&lt;br /&gt;
|STYLE_STANDARD&lt;br /&gt;
|4&lt;br /&gt;
|-&lt;br /&gt;
|STYLE_BOXING&lt;br /&gt;
|5&lt;br /&gt;
|-&lt;br /&gt;
|STYLE_KUNG_FU&lt;br /&gt;
|6&lt;br /&gt;
|-&lt;br /&gt;
|STYLE_KNEE_HEAD&lt;br /&gt;
|7&lt;br /&gt;
|-&lt;br /&gt;
|STYLE_GRAB_KICK&lt;br /&gt;
|15&lt;br /&gt;
|-&lt;br /&gt;
|STYLE_ELBOWS&lt;br /&gt;
|16&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==Syntax== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;setPlayerFightingStyle ( player, int style ) &amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
&lt;br /&gt;
===Required Arguments=== &lt;br /&gt;
*'''Player:''' Tells the function to give the fighting style to a player&lt;br /&gt;
*'''Style:''' A whole integer specifying the style of fighting you want to give to the player&lt;br /&gt;
&lt;br /&gt;
==Example==  &lt;br /&gt;
This example sets the player's fighting style to the desired style when he types &amp;quot;setstyle&amp;quot; followed by a number from 4 to 16 in console.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function consoleSetFightingStyle ( player, commandName, id ) --Calls the function&lt;br /&gt;
	if ( player and id ) then --If both are valid&lt;br /&gt;
	    local status = setPlayerFightingStyle ( player, tonumber(id) ) --Fighting style is set&lt;br /&gt;
		if ( not status ) then --If it can't set the fighting style (bad ID)&lt;br /&gt;
			outputConsole ( &amp;quot;Failed to set fighting style.&amp;quot;, player ) --This shows&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
end&lt;br /&gt;
addCommandHandler ( &amp;quot;setstyle&amp;quot;,  consoleSetFightingStyle )&lt;br /&gt;
&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>Xanarki</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=SetPlayerFightingStyle&amp;diff=9905</id>
		<title>SetPlayerFightingStyle</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=SetPlayerFightingStyle&amp;diff=9905"/>
		<updated>2007-08-05T18:30:03Z</updated>

		<summary type="html">&lt;p&gt;Xanarki: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__ &lt;br /&gt;
Changes a player's fighting style, most only change the 'special attack' which is done using the Aim and Enter keys.&lt;br /&gt;
&lt;br /&gt;
{| border=&amp;quot;2&amp;quot; cellpadding=&amp;quot;2&amp;quot; cellspacing=&amp;quot;0&amp;quot; style=&amp;quot;margin: 1em 1em 1em 0; background: #f9f9f9; border: 1px #aaa solid; border-collapse: collapse; font-size: 95%;&amp;quot;&lt;br /&gt;
|'''Fighting Style'''&lt;br /&gt;
|'''ID'''&lt;br /&gt;
|-&lt;br /&gt;
|STYLE_STANDARD&lt;br /&gt;
|4&lt;br /&gt;
|-&lt;br /&gt;
|STYLE_BOXING&lt;br /&gt;
|5&lt;br /&gt;
|-&lt;br /&gt;
|STYLE_KUNG_FU&lt;br /&gt;
|6&lt;br /&gt;
|-&lt;br /&gt;
|STYLE_KNEE_HEAD&lt;br /&gt;
|7&lt;br /&gt;
|-&lt;br /&gt;
|STYLE_GRAB_KICK&lt;br /&gt;
|15&lt;br /&gt;
|-&lt;br /&gt;
|STYLE_ELBOWS&lt;br /&gt;
|16&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==Syntax== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;setPlayerFightingStyle ( player, int style ) &amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
&lt;br /&gt;
===Required Arguments=== &lt;br /&gt;
*'''Player:''' Tells the function to give the fighting style to a player&lt;br /&gt;
*'''Style:''' A whole integer specifying the style of fighting you want to give to the player&lt;br /&gt;
&lt;br /&gt;
==Example==  &lt;br /&gt;
This example sets the player's fighting style to the desired style when he types &amp;quot;style&amp;quot; folldowed by a number from 4 to 16 in console.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;addCommandHandler ( &amp;quot;style&amp;quot;, &amp;quot;style&amp;quot; ) -- add a command handler for setcash&lt;br /&gt;
function style ( player, command, id ) --when the style function is called&lt;br /&gt;
	setPlayerFightingStyle ( player, id ) --set players fighting style&lt;br /&gt;
end&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{Player functions}}&lt;/div&gt;</summary>
		<author><name>Xanarki</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=SetObjectRotation&amp;diff=9882</id>
		<title>SetObjectRotation</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=SetObjectRotation&amp;diff=9882"/>
		<updated>2007-08-05T05:06:19Z</updated>

		<summary type="html">&lt;p&gt;Xanarki: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__ &lt;br /&gt;
Allows you to change an objects rotation while playing a map. The object can be from the map file or created in a script.&lt;br /&gt;
&lt;br /&gt;
==Syntax== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
bool setObjectRotation ( element object, float rotX, float rotY, float rotZ )        &lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
&lt;br /&gt;
===Required Arguments=== &lt;br /&gt;
*'''Object:''' The object to be rotated&lt;br /&gt;
*'''rotX:''' Rotation X value&lt;br /&gt;
*'''rotY:''' Rotation Y value&lt;br /&gt;
*'''rotZ:''' Rotation Z value&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns ''true'' if successful, ''false'' otherwise.&lt;br /&gt;
&lt;br /&gt;
==Example== &lt;br /&gt;
In this example, I refer to an object in the map file with the ID &amp;quot;pirateship&amp;quot;:&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;object id=&amp;quot;pirateship&amp;quot; posX=&amp;quot;-1627.319092&amp;quot; posY=&amp;quot;128.543411&amp;quot; posZ=&amp;quot;6.581001&amp;quot; rotX=&amp;quot;-0.760854&amp;quot; rotY=&amp;quot;2.421000&amp;quot; rotZ=&amp;quot;0.851000&amp;quot; model=&amp;quot;8493&amp;quot;/&amp;gt;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
function onResourceStart ( name, root )&lt;br /&gt;
rotX = 0&lt;br /&gt;
rotY = 0&lt;br /&gt;
rotZ = 0 -- predefined varibles, needed for the math code below&lt;br /&gt;
pirateship = getElementByID ( &amp;quot;pirateship&amp;quot; ) -- assign element named 'pirateship' in map file to variable&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
function chatboxShipRotateLeft ( playerSource, commandName ) -- On console command 'increaserotations'&lt;br /&gt;
outputChatBox ( &amp;quot;Rotational values increased&amp;quot; )&lt;br /&gt;
rotX = rotX + 10&lt;br /&gt;
rotY = rotY + 10&lt;br /&gt;
rotZ = rotZ + 10 -- rotations = rotations + 10&lt;br /&gt;
setObjectRotation ( pirateship, rotX, rotY, rotZ ) -- Changed rotation is applied&lt;br /&gt;
end     &lt;br /&gt;
&lt;br /&gt;
function chatboxShipRotateRight ( playerSource, commandName ) -- On console command 'decreaserotations'&lt;br /&gt;
outputChatBox ( &amp;quot;Rotational values decreased&amp;quot; )&lt;br /&gt;
rotX = rotX - 10&lt;br /&gt;
rotY = rotY - 10&lt;br /&gt;
rotZ = rotZ - 10 -- rotations = rotations - 10&lt;br /&gt;
setObjectRotation ( pirateship, rotX, rotY, rotZ ) -- Changed rotation is applied&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
addEventHandler ( &amp;quot;onResourceStart&amp;quot;, getRootElement(), onResourceStart )&lt;br /&gt;
&lt;br /&gt;
addCommandHandler ( &amp;quot;increaserotations&amp;quot;, chatboxShipRotateLeft )&lt;br /&gt;
addCommandHandler ( &amp;quot;decreaserotations&amp;quot;, chatboxShipRotateRight )&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>Xanarki</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=SetObjectRotation&amp;diff=9881</id>
		<title>SetObjectRotation</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=SetObjectRotation&amp;diff=9881"/>
		<updated>2007-08-05T05:05:39Z</updated>

		<summary type="html">&lt;p&gt;Xanarki: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__ &lt;br /&gt;
Allows you to change an objects rotation while playing a map. The object can be from the map file or created in a script.&lt;br /&gt;
&lt;br /&gt;
==Syntax== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
bool setObjectRotation ( element object, float rotX, float rotY, float rotZ )        &lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
&lt;br /&gt;
===Required Arguments=== &lt;br /&gt;
*'''Object:''' The object to be rotated&lt;br /&gt;
*'''rotX:''' Rotation X value&lt;br /&gt;
*'''rotY:''' Rotation Y value&lt;br /&gt;
*'''rotZ:''' Rotation Z value&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns ''true'' if successful, ''false'' otherwise.&lt;br /&gt;
&lt;br /&gt;
==Example== &lt;br /&gt;
In this example, I refer to an object in the map file with the ID &amp;quot;pirateship&amp;quot;:&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;object id=&amp;quot;pirateshi[&amp;quot; posX=&amp;quot;-1627.319092&amp;quot; posY=&amp;quot;128.543411&amp;quot; posZ=&amp;quot;6.581001&amp;quot; rotX=&amp;quot;-0.760854&amp;quot; rotY=&amp;quot;2.421000&amp;quot; rotZ=&amp;quot;0.851000&amp;quot; model=&amp;quot;8493&amp;quot;/&amp;gt;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
function onResourceStart ( name, root )&lt;br /&gt;
rotX = 0&lt;br /&gt;
rotY = 0&lt;br /&gt;
rotZ = 0 -- predefined varibles, needed for the math code below&lt;br /&gt;
pirateship = getElementByID ( &amp;quot;pirateship&amp;quot; ) -- assign element named 'pirateship' in map file to variable&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
function chatboxShipRotateLeft ( playerSource, commandName ) -- On console command 'increaserotations'&lt;br /&gt;
outputChatBox ( &amp;quot;Rotational values increased&amp;quot; )&lt;br /&gt;
rotX = rotX + 10&lt;br /&gt;
rotY = rotY + 10&lt;br /&gt;
rotZ = rotZ + 10 -- rotations = rotations + 10&lt;br /&gt;
setObjectRotation ( pirateship, rotX, rotY, rotZ ) -- Changed rotation is applied&lt;br /&gt;
end     &lt;br /&gt;
&lt;br /&gt;
function chatboxShipRotateRight ( playerSource, commandName ) -- On console command 'decreaserotations'&lt;br /&gt;
outputChatBox ( &amp;quot;Rotational values decreased&amp;quot; )&lt;br /&gt;
rotX = rotX - 10&lt;br /&gt;
rotY = rotY - 10&lt;br /&gt;
rotZ = rotZ - 10 -- rotations = rotations - 10&lt;br /&gt;
setObjectRotation ( pirateship, rotX, rotY, rotZ ) -- Changed rotation is applied&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
addEventHandler ( &amp;quot;onResourceStart&amp;quot;, getRootElement(), onResourceStart )&lt;br /&gt;
&lt;br /&gt;
addCommandHandler ( &amp;quot;increaserotations&amp;quot;, chatboxShipRotateLeft )&lt;br /&gt;
addCommandHandler ( &amp;quot;decreaserotations&amp;quot;, chatboxShipRotateRight )&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>Xanarki</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=SetObjectRotation&amp;diff=9880</id>
		<title>SetObjectRotation</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=SetObjectRotation&amp;diff=9880"/>
		<updated>2007-08-05T05:04:37Z</updated>

		<summary type="html">&lt;p&gt;Xanarki: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__ &lt;br /&gt;
Allows you to change an objects rotation while playing a map. The object can be from the map file or created in a script.&lt;br /&gt;
&lt;br /&gt;
==Syntax== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
bool setObjectRotation ( element object, float rotX, float rotY, float rotZ )        &lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
&lt;br /&gt;
===Required Arguments=== &lt;br /&gt;
*'''Object:''' The object to be rotated&lt;br /&gt;
*'''rotX:''' Rotation X value&lt;br /&gt;
*'''rotY:''' Rotation Y value&lt;br /&gt;
*'''rotZ:''' Rotation Z value&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns ''true'' if successful, ''false'' otherwise.&lt;br /&gt;
&lt;br /&gt;
==Example== &lt;br /&gt;
In this example, I refer to an object in the map file with the ID &amp;quot;pirateship&amp;quot;:&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;object id=&amp;quot;pirateshi[&amp;quot; posX=&amp;quot;-1627.319092&amp;quot; posY=&amp;quot;128.543411&amp;quot; posZ=&amp;quot;6.581001&amp;quot; rotX=&amp;quot;-0.760854&amp;quot; rotY=&amp;quot;2.421000&amp;quot; rotZ=&amp;quot;0.851000&amp;quot; model=&amp;quot;8493&amp;quot;/&amp;gt;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
function onResourceStart ( name, root )&lt;br /&gt;
rotX = 0&lt;br /&gt;
rotY = 0&lt;br /&gt;
rotZ = 0 -- predefined varibles, needed for the math code below&lt;br /&gt;
pirateship = getElementByID ( &amp;quot;pirateship&amp;quot; ) -- assign element named 'pirateship' in map file to varible             &lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
function chatboxShipRotateLeft ( playerSource, commandName ) -- On console command 'increaserotations'&lt;br /&gt;
outputChatBox ( &amp;quot;Rotational values increased&amp;quot; )&lt;br /&gt;
rotX = rotX + 10&lt;br /&gt;
rotY = rotY + 10&lt;br /&gt;
rotZ = rotZ + 10 -- rotations = rotations + 10&lt;br /&gt;
setObjectRotation ( pirateship, rotX, rotY, rotZ ) -- Changed rotation is applied&lt;br /&gt;
end     &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
function chatboxShipRotateRight ( playerSource, commandName ) -- On console command 'decreaserotations'&lt;br /&gt;
outputChatBox ( &amp;quot;Rotational values decreased&amp;quot; )&lt;br /&gt;
rotX = rotX - 10&lt;br /&gt;
rotY = rotY - 10&lt;br /&gt;
rotZ = rotZ - 10 -- rotations = rotations - 10&lt;br /&gt;
setObjectRotation ( pirateship, rotX, rotY, rotZ ) -- Changed rotation is applied&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
addEventHandler ( &amp;quot;onResourceStart&amp;quot;, getRootElement(), onResourceStart )&lt;br /&gt;
&lt;br /&gt;
addCommandHandler ( &amp;quot;increaserotations&amp;quot;, chatboxShipRotateLeft )&lt;br /&gt;
addCommandHandler ( &amp;quot;decreaserotations&amp;quot;, chatboxShipRotateRight )&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>Xanarki</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=SetObjectModel&amp;diff=9877</id>
		<title>SetObjectModel</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=SetObjectModel&amp;diff=9877"/>
		<updated>2007-08-05T04:08:38Z</updated>

		<summary type="html">&lt;p&gt;Xanarki: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__ &lt;br /&gt;
This sets a new object model to the specified element.&lt;br /&gt;
&lt;br /&gt;
==Syntax== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
bool setObjectModel ( element object, int id )        &lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
&lt;br /&gt;
===Required Arguments=== &lt;br /&gt;
*'''object:''' A valid [[element]].&lt;br /&gt;
*'''id:''' An [[int]] specifying the model id.&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns ''true'' if the model change was successful, ''false'' otherwise.&lt;br /&gt;
&lt;br /&gt;
==Example== &lt;br /&gt;
This will continually change an object model every 2.5 seconds at the location -1084.52, -1634.81, 76.36 (Truth's farm).&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
myobject = createObject ( 5822, -1084.52, -1634.81, 76.36 )&lt;br /&gt;
--We create an initial object element. I choose object model 5822 to begin with.&lt;br /&gt;
&lt;br /&gt;
setTimer ( objectRandomization, 2500, 0 )&lt;br /&gt;
--Every 2.5 seconds, the function 'objectRandomization' is called by this timer.&lt;br /&gt;
--Each time the function runs, it changes the object model by applying a new whole-&lt;br /&gt;
--integer random object ID. This timer is called an infinite amount of times since  &lt;br /&gt;
--it's repeat value is set to 0.&lt;br /&gt;
&lt;br /&gt;
function objectRandomization ()  &lt;br /&gt;
randomobjectnumber = randInt(1, 18000)&lt;br /&gt;
--Choose a random number between 1 and 18000 as a whole integer and assign it to&lt;br /&gt;
--the varible 'randomobjectnumber'&lt;br /&gt;
setObjectModel ( myobject, randomobjectnumber )&lt;br /&gt;
--Change our object appearance by applying a new model ID&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>Xanarki</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Weapons&amp;diff=9064</id>
		<title>Weapons</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Weapons&amp;diff=9064"/>
		<updated>2007-07-12T09:45:55Z</updated>

		<summary type="html">&lt;p&gt;Xanarki: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;The weapon argument is an integer that refers to the GTASA weapon id list. The following values are valid:&lt;br /&gt;
&lt;br /&gt;
''Note: I have also included amounts held in each weapon's ammo clip, to make it easier to determine exact clips.''&lt;br /&gt;
&lt;br /&gt;
[http://vces.net/info/WeaponIDs.html Alternative Weapons List (Brophy/Ratt):]&lt;br /&gt;
*'''Slot 0: No Weapon'''&lt;br /&gt;
**'''0:''' Fist&lt;br /&gt;
**'''1:''' Brass Knuckles&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
*'''Slot 1 : Melee'''&lt;br /&gt;
**'''2:''' Golf Club&lt;br /&gt;
**'''3:''' Nightstick&lt;br /&gt;
**'''4:''' Knife &lt;br /&gt;
**'''5:''' Baseball Bat &lt;br /&gt;
**'''6:''' Shovel &lt;br /&gt;
**'''7:''' Pool Cue &lt;br /&gt;
**'''8:''' Katana &lt;br /&gt;
**'''9:''' Chainsaw &lt;br /&gt;
**'''15:''' Cane&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
*'''Slot 2: Handguns'''&lt;br /&gt;
**'''22:''' Pistol (17, dual 34)&lt;br /&gt;
**'''23:''' Silenced Pistol (17)&lt;br /&gt;
**'''24:''' Desert Eagle (7)&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
*'''Slot 3: Shotguns'''&lt;br /&gt;
**'''25:''' Shotgun (1)&lt;br /&gt;
**'''26:''' Sawn-Off Shotgun (2, dual 4)&lt;br /&gt;
**'''27:''' SPAZ-12 Combat Shotgun (7)&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
*'''Slot 4: Sub-Machine Guns'''&lt;br /&gt;
**'''28:''' Uzi (50, dual 100)&lt;br /&gt;
**'''29:''' MP5 (30)&lt;br /&gt;
**'''32:''' TEC-9 (50, dual 100)&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
*'''Slot 5: Machine Guns'''&lt;br /&gt;
**'''30:''' AK47 (30)&lt;br /&gt;
**'''31:''' M4 (50)&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
*'''Slot 6: Rifles'''&lt;br /&gt;
**'''33:''' Country Sniper Rifle (1)&lt;br /&gt;
**'''34:''' Sniper Rifle (1)&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
*'''Slot 7: Heavy Weapons'''&lt;br /&gt;
**'''35:''' Rocket Launcher (1)&lt;br /&gt;
**'''36:''' Heat Seeking RPG (1)&lt;br /&gt;
**'''37:''' Flame Thrower (50)&lt;br /&gt;
**'''38:''' Minigun (500)&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
*'''Slot 8: Projectiles'''&lt;br /&gt;
**'''16:''' Grenade (1)&lt;br /&gt;
**'''17:''' Tear Gas (1)&lt;br /&gt;
**'''18:''' Molotov Cocktails (1)&lt;br /&gt;
**'''39:''' Satchel Charges (1)&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
*'''Slot 9: Special 1'''&lt;br /&gt;
**'''42:''' Fire Extinguisher (500)&lt;br /&gt;
**'''43:''' Camera (36)&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
*'''Slot 10: Gifts/Other'''&lt;br /&gt;
**'''10:''' Long Purple Dildo &lt;br /&gt;
**'''11:''' Short tan Dildo &lt;br /&gt;
**'''12:''' Vibrator &lt;br /&gt;
**'''14:''' Flowers &lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
*'''Slot 11: Special 2'''&lt;br /&gt;
**'''44:''' Night-Vision Goggles&lt;br /&gt;
**'''45:''' Infra-Red Goggles&lt;br /&gt;
**'''46:''' Parachute&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
*'''Slot 12: Satchel Detonator'''&lt;br /&gt;
**'''40''' Satchel Detonator&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
[[id]]&lt;/div&gt;</summary>
		<author><name>Xanarki</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=OnResourceStop&amp;diff=8912</id>
		<title>OnResourceStop</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=OnResourceStop&amp;diff=8912"/>
		<updated>2007-07-05T03:32:12Z</updated>

		<summary type="html">&lt;p&gt;Xanarki: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This event is triggered when the resource is changed or unloaded.&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
This example displays a message in the textbox when the resource is changed / unloaded&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
addEventHandler ( &amp;quot;onResourceStop&amp;quot;, root, &amp;quot;onResourceStop&amp;quot; )&lt;br /&gt;
function onResourceStop ( )&lt;br /&gt;
  outputChatBox ( &amp;quot;Script Unloaded!&amp;quot;, root, 255, 255, 255 )&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;/div&gt;</summary>
		<author><name>Xanarki</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=OnVehicleExplode&amp;diff=8870</id>
		<title>OnVehicleExplode</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=OnVehicleExplode&amp;diff=8870"/>
		<updated>2007-07-03T20:49:52Z</updated>

		<summary type="html">&lt;p&gt;Xanarki: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__ &lt;br /&gt;
This event is triggered when a vehicle explodes.&lt;br /&gt;
&lt;br /&gt;
==Syntax== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
void onVehicleExplode () &lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
&lt;br /&gt;
==Example== &lt;br /&gt;
This example tells the players when a vehicle explodes&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function onVehicleExplode () --The function in which when a vehicle explodes&lt;br /&gt;
	local VagosVehicleHealth = getVehicleHealth ( VagosVehicle ) --Gets the HP of the Vagos' vehicle&lt;br /&gt;
	&lt;br /&gt;
	if ( VagosVehicleHealth == 0 ) then --If the vehicle's health is &amp;quot;0&amp;quot; (exploded)&lt;br /&gt;
			showTextForAll ( 3000, 0, 10, 125, 1.5, &amp;quot; VAGOS' LOAD HAS EXPLODED!&amp;quot; ) --shows the text&lt;br /&gt;
end&lt;br /&gt;
addEventHandler ( &amp;quot;onVehicleExplode&amp;quot;, root, onVehicleExplode ) --Event is triggered&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;/div&gt;</summary>
		<author><name>Xanarki</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=OnVehicleExplode&amp;diff=8869</id>
		<title>OnVehicleExplode</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=OnVehicleExplode&amp;diff=8869"/>
		<updated>2007-07-03T20:48:29Z</updated>

		<summary type="html">&lt;p&gt;Xanarki: /* Example */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:Incomplete Event]]&lt;br /&gt;
&lt;br /&gt;
__NOTOC__ &lt;br /&gt;
This event is triggered when a vehicle explodes.&lt;br /&gt;
&lt;br /&gt;
==Syntax== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
void onVehicleExplode () &lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
&lt;br /&gt;
==Example== &lt;br /&gt;
This example tells the players when a vehicle explodes&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function onVehicleExplode () --The function in which when a vehicle explodes&lt;br /&gt;
	local VagosVehicleHealth = getVehicleHealth ( VagosVehicle ) --Gets the HP of the Vagos' vehicle&lt;br /&gt;
	&lt;br /&gt;
	if ( VagosVehicleHealth == 0 ) then --If the vehicle's health is &amp;quot;0&amp;quot; (exploded)&lt;br /&gt;
			showTextForAll ( 3000, 0, 10, 125, 1.5, &amp;quot; VAGOS' LOAD HAS EXPLODED!&amp;quot; ) --shows the text&lt;br /&gt;
end&lt;br /&gt;
addEventHandler ( &amp;quot;onVehicleExplode&amp;quot;, root, onVehicleExplode ) --Event is triggered&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;/div&gt;</summary>
		<author><name>Xanarki</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=OnClientPlayerJoin&amp;diff=8868</id>
		<title>OnClientPlayerJoin</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=OnClientPlayerJoin&amp;diff=8868"/>
		<updated>2007-07-03T20:40:16Z</updated>

		<summary type="html">&lt;p&gt;Xanarki: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__ &lt;br /&gt;
This event is when a player joins.&lt;br /&gt;
&lt;br /&gt;
==Syntax== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
void onClientPlayerJoin ( void )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
&lt;br /&gt;
==Example== &lt;br /&gt;
This example does...&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function onPlayerJoin () --When the player joins&lt;br /&gt;
	showTextForPlayer ( source, 5000, 0, 0, 180, 1.5, &amp;quot;We be gangstas!&amp;quot; ) --Shows text for the player&lt;br /&gt;
end&lt;br /&gt;
addEventHandler ( &amp;quot;onPlayerJoin&amp;quot;, root, onPlayerJoin ) --Event is triggered&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;/div&gt;</summary>
		<author><name>Xanarki</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=OnPlayerQuit&amp;diff=8867</id>
		<title>OnPlayerQuit</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=OnPlayerQuit&amp;diff=8867"/>
		<updated>2007-07-03T20:35:19Z</updated>

		<summary type="html">&lt;p&gt;Xanarki: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__ &lt;br /&gt;
This event is triggered when a player leaves the game, for whatever reason.&lt;br /&gt;
&lt;br /&gt;
==Syntax== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
void [[onPlayerQuit]] ( string reason )   &lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
&lt;br /&gt;
==Example== &lt;br /&gt;
This example does...&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
outputDebugString ( &amp;quot;Kills blip when player exits&amp;quot; ) --Outputs to debug console&lt;br /&gt;
function onPlayerQuit () --When the player quits&lt;br /&gt;
	destroyBlipsAttachedTo ( source ) --Destorys the blips&lt;br /&gt;
	removePlayerFromTeam ( source ) --Also removes player from the previously selected team&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
addEventHandler ( &amp;quot;onPlayerQuit&amp;quot;, root, onPlayerQuit ) --The event&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;/div&gt;</summary>
		<author><name>Xanarki</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=OnPlayerQuit&amp;diff=8866</id>
		<title>OnPlayerQuit</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=OnPlayerQuit&amp;diff=8866"/>
		<updated>2007-07-03T20:34:33Z</updated>

		<summary type="html">&lt;p&gt;Xanarki: /* Example */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:Incomplete Event]]&lt;br /&gt;
&lt;br /&gt;
__NOTOC__ &lt;br /&gt;
This event is triggered when a player leaves the game, for whatever reason.&lt;br /&gt;
&lt;br /&gt;
==Syntax== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
void [[onPlayerQuit]] ( string reason )   &lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
&lt;br /&gt;
==Example== &lt;br /&gt;
This example does...&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
outputDebugString ( &amp;quot;Kills blip when player exits&amp;quot; ) --Outputs to debug console&lt;br /&gt;
function onPlayerQuit () --When the player quits&lt;br /&gt;
	destroyBlipsAttachedTo ( source ) --Destorys the blips&lt;br /&gt;
	removePlayerFromTeam ( source ) --Also removes player from the previously selected team&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
addEventHandler ( &amp;quot;onPlayerQuit&amp;quot;, root, onPlayerQuit ) --The event&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;/div&gt;</summary>
		<author><name>Xanarki</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=XmlSaveFile&amp;diff=8852</id>
		<title>XmlSaveFile</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=XmlSaveFile&amp;diff=8852"/>
		<updated>2007-07-03T04:48:29Z</updated>

		<summary type="html">&lt;p&gt;Xanarki: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__ &lt;br /&gt;
This function saves a loaded XML file.&lt;br /&gt;
&lt;br /&gt;
==Syntax== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;bool xmlSaveFile ( xmlnode rootNode ) &amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Required Arguments=== &lt;br /&gt;
*'''rootNode:''' the root [[xmlnode]] of the loaded XML file.&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns ''true'' if save was successful, ''false'' if the XML file does not exist.&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
xmlSaveFile(&amp;quot;/resources/nwayo/meta.xml&amp;quot;, doc) --Saves the XML file as a .doc&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{XML_functions}}&lt;/div&gt;</summary>
		<author><name>Xanarki</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=XmlSaveFile&amp;diff=8851</id>
		<title>XmlSaveFile</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=XmlSaveFile&amp;diff=8851"/>
		<updated>2007-07-03T04:47:52Z</updated>

		<summary type="html">&lt;p&gt;Xanarki: /* Example */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__ &lt;br /&gt;
This function saves a loaded XML file.&lt;br /&gt;
&lt;br /&gt;
==Syntax== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;bool xmlSaveFile ( xmlnode rootNode ) &amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Required Arguments=== &lt;br /&gt;
*'''rootNode:''' the root [[xmlnode]] of the loaded XML file.&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns ''true'' if save was successful, ''false'' if the XML file does not exist.&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
xmlSaveFile(&amp;quot;/resources/nwayo/meta.xml&amp;quot;, doc) --Saves the XML file as a .doc&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{XML_functions}}&lt;br /&gt;
[[Category:Incomplete]]&lt;/div&gt;</summary>
		<author><name>Xanarki</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=SetCameraPosition&amp;diff=8850</id>
		<title>SetCameraPosition</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=SetCameraPosition&amp;diff=8850"/>
		<updated>2007-07-03T04:43:50Z</updated>

		<summary type="html">&lt;p&gt;Xanarki: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__ &lt;br /&gt;
This function allows you to move a specified player's camera to a specific location if it is fixed (see [[setCameraMode]]).&lt;br /&gt;
 &lt;br /&gt;
==Syntax== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
bool setCameraPosition ( player thePlayer, float x, float y, float z )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
&lt;br /&gt;
===Required Arguments=== &lt;br /&gt;
*'''thePlayer:''' The player whose camera you wish to modify.&lt;br /&gt;
*'''x:''' The x co-ordinate of the new position.&lt;br /&gt;
*'''y:''' The x co-ordinate of the new position.&lt;br /&gt;
*'''z:''' The x co-ordinate of the new position.&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns a [[bool]] with a value of ''true'' if the function was successful, ''false'' otherwise.&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
function spawnScreen ( source ) --Calls the function spawnScreen&lt;br /&gt;
setCameraMode ( source, &amp;quot;fixed&amp;quot; ) --Classifies which camera mode to use for the spawn screen&lt;br /&gt;
	setTimer ( &amp;quot;setCameraPosition&amp;quot;, 1000, 1, source, 160.15, -1951.68, 50 ) --Coords for the fixated camera. This will &amp;quot;set the location&amp;quot; of the camera, so to speak.&lt;br /&gt;
	setTimer ( &amp;quot;setCameraLookAt&amp;quot;, 1000, 1, source, 165, -1951.68, 50 ) --Coords for the fixated camera&lt;br /&gt;
	bindKey ( source, &amp;quot;F1&amp;quot;, &amp;quot;down&amp;quot;, &amp;quot;spawnVagos&amp;quot; ) --Spawns player as team #1. In this case, a new function is created later on&lt;br /&gt;
	bindKey ( source, &amp;quot;F2&amp;quot;, &amp;quot;down&amp;quot;, &amp;quot;spawnAztecs&amp;quot; ) --Spawns player as team #2. In this case, a new function is created later on&lt;br /&gt;
end&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{Camera functions}}&lt;/div&gt;</summary>
		<author><name>Xanarki</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=SetCameraPosition&amp;diff=8849</id>
		<title>SetCameraPosition</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=SetCameraPosition&amp;diff=8849"/>
		<updated>2007-07-03T04:43:19Z</updated>

		<summary type="html">&lt;p&gt;Xanarki: /* Example */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__ &lt;br /&gt;
This function allows you to move a specified player's camera to a specific location if it is fixed (see [[setCameraMode]]).&lt;br /&gt;
 &lt;br /&gt;
==Syntax== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
bool setCameraPosition ( player thePlayer, float x, float y, float z )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
&lt;br /&gt;
===Required Arguments=== &lt;br /&gt;
*'''thePlayer:''' The player whose camera you wish to modify.&lt;br /&gt;
*'''x:''' The x co-ordinate of the new position.&lt;br /&gt;
*'''y:''' The x co-ordinate of the new position.&lt;br /&gt;
*'''z:''' The x co-ordinate of the new position.&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns a [[bool]] with a value of ''true'' if the function was successful, ''false'' otherwise.&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
function spawnScreen ( source ) --Calls the function spawnScreen&lt;br /&gt;
setCameraMode ( source, &amp;quot;fixed&amp;quot; ) --Classifies which camera mode to use for the spawn screen&lt;br /&gt;
	setTimer ( &amp;quot;setCameraPosition&amp;quot;, 1000, 1, source, 160.15, -1951.68, 50 ) --Coords for the fixated camera. This will &amp;quot;set the location&amp;quot; of the camera, so to speak.&lt;br /&gt;
	setTimer ( &amp;quot;setCameraLookAt&amp;quot;, 1000, 1, source, 165, -1951.68, 50 ) --Coords for the fixated camera&lt;br /&gt;
	bindKey ( source, &amp;quot;F1&amp;quot;, &amp;quot;down&amp;quot;, &amp;quot;spawnVagos&amp;quot; ) --Spawns player as team #1. In this case, a new function is created later on&lt;br /&gt;
	bindKey ( source, &amp;quot;F2&amp;quot;, &amp;quot;down&amp;quot;, &amp;quot;spawnAztecs&amp;quot; ) --Spawns player as team #2. In this case, a new function is created later on&lt;br /&gt;
end&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{Camera functions}}&lt;br /&gt;
&lt;br /&gt;
[[Category:Incomplete]]&lt;/div&gt;</summary>
		<author><name>Xanarki</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=SetCameraLookAt&amp;diff=8848</id>
		<title>SetCameraLookAt</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=SetCameraLookAt&amp;diff=8848"/>
		<updated>2007-07-03T04:42:16Z</updated>

		<summary type="html">&lt;p&gt;Xanarki: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__ &lt;br /&gt;
This function allows you to set a specified player's camera to look at a specific point when the camera is fixed (see [[setCameraMode]]).&lt;br /&gt;
==Syntax== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
bool setCameraLookAt ( player thePlayer, float x, float y, float z )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
&lt;br /&gt;
===Required Arguments=== &lt;br /&gt;
*'''thePlayer:''' The player whose camera you wish to modify.&lt;br /&gt;
*'''x:''' The x co-ordinate of the point to be looked at.&lt;br /&gt;
*'''y:''' The y co-ordinate of the point to be looked at.&lt;br /&gt;
*'''z:''' The z co-ordinate of the point to be looked at.&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns a [[bool]] with a value of ''true'' if the function was successful, ''false'' otherwise.&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
function spawnScreen ( source ) --Calls the function spawnScreen&lt;br /&gt;
setCameraMode ( source, &amp;quot;fixed&amp;quot; ) --Classifies which camera mode to use for the spawn screen&lt;br /&gt;
	setTimer ( &amp;quot;setCameraPosition&amp;quot;, 1000, 1, source, 160.15, -1951.68, 50 ) --Coords for the fixated camera&lt;br /&gt;
	setTimer ( &amp;quot;setCameraLookAt&amp;quot;, 1000, 1, source, 165, -1951.68, 50 ) --Coords for the fixated camera. This will &amp;quot;point&amp;quot; the camera, so to speak.&lt;br /&gt;
	bindKey ( source, &amp;quot;F1&amp;quot;, &amp;quot;down&amp;quot;, &amp;quot;spawnVagos&amp;quot; ) --Spawns player as team #1. In this case, a new function is created later on&lt;br /&gt;
	bindKey ( source, &amp;quot;F2&amp;quot;, &amp;quot;down&amp;quot;, &amp;quot;spawnAztecs&amp;quot; ) --Spawns player as team #2. In this case, a new function is created later on&lt;br /&gt;
end&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{Camera functions}}&lt;/div&gt;</summary>
		<author><name>Xanarki</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=SetCameraLookAt&amp;diff=8847</id>
		<title>SetCameraLookAt</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=SetCameraLookAt&amp;diff=8847"/>
		<updated>2007-07-03T04:41:54Z</updated>

		<summary type="html">&lt;p&gt;Xanarki: /* Example */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__ &lt;br /&gt;
This function allows you to set a specified player's camera to look at a specific point when the camera is fixed (see [[setCameraMode]]).&lt;br /&gt;
==Syntax== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
bool setCameraLookAt ( player thePlayer, float x, float y, float z )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
&lt;br /&gt;
===Required Arguments=== &lt;br /&gt;
*'''thePlayer:''' The player whose camera you wish to modify.&lt;br /&gt;
*'''x:''' The x co-ordinate of the point to be looked at.&lt;br /&gt;
*'''y:''' The y co-ordinate of the point to be looked at.&lt;br /&gt;
*'''z:''' The z co-ordinate of the point to be looked at.&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns a [[bool]] with a value of ''true'' if the function was successful, ''false'' otherwise.&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
function spawnScreen ( source ) --Calls the function spawnScreen&lt;br /&gt;
setCameraMode ( source, &amp;quot;fixed&amp;quot; ) --Classifies which camera mode to use for the spawn screen&lt;br /&gt;
	setTimer ( &amp;quot;setCameraPosition&amp;quot;, 1000, 1, source, 160.15, -1951.68, 50 ) --Coords for the fixated camera&lt;br /&gt;
	setTimer ( &amp;quot;setCameraLookAt&amp;quot;, 1000, 1, source, 165, -1951.68, 50 ) --Coords for the fixated camera. This will &amp;quot;point&amp;quot; the camera, so to speak.&lt;br /&gt;
	bindKey ( source, &amp;quot;F1&amp;quot;, &amp;quot;down&amp;quot;, &amp;quot;spawnVagos&amp;quot; ) --Spawns player as team #1. In this case, a new function is created later on&lt;br /&gt;
	bindKey ( source, &amp;quot;F2&amp;quot;, &amp;quot;down&amp;quot;, &amp;quot;spawnAztecs&amp;quot; ) --Spawns player as team #2. In this case, a new function is created later on&lt;br /&gt;
end&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{Camera functions}}&lt;br /&gt;
&lt;br /&gt;
[[Category:Incomplete]]&lt;/div&gt;</summary>
		<author><name>Xanarki</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=SetCameraMode&amp;diff=8846</id>
		<title>SetCameraMode</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=SetCameraMode&amp;diff=8846"/>
		<updated>2007-07-03T04:39:56Z</updated>

		<summary type="html">&lt;p&gt;Xanarki: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__ &lt;br /&gt;
&amp;lt;h2 style=&amp;quot;margin:0; background:#990000; font-size:120%; font-weight:bold; border:1px solid #a3bfb1; text-align:left; color:#fff; padding:0.2em 0.4em;&amp;quot;&amp;gt;Please remember to set players camera mode back to &amp;quot;player&amp;quot; on resource unload, or you will encounter the invisible player 'bug' if players camera is still set to fixed&amp;lt;/h2&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This function allows you to change a player's camera mode to either &amp;quot;player&amp;quot; or &amp;quot;fixed&amp;quot;. &lt;br /&gt;
&lt;br /&gt;
==Syntax== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
bool setCameraMode ( player thePlayer, string mode )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
&lt;br /&gt;
===Required Arguments=== &lt;br /&gt;
*'''thePlayer:''' The player whose camera you wish to modify.&lt;br /&gt;
*'''mode:''' The mode to be set. It has the following possible values:&lt;br /&gt;
** '''&amp;quot;player&amp;quot;:''' Sets the camera to follow a player.&lt;br /&gt;
** '''&amp;quot;fixed&amp;quot;:''' Fixes the camera in a set position/rotation.&lt;br /&gt;
 &lt;br /&gt;
===Returns===&lt;br /&gt;
Returns a [[bool]] with a value of ''true'' if the function was successful, ''false'' otherwise.&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
function spawnScreen ( source ) --Calls the function spawnScreen&lt;br /&gt;
setCameraMode ( source, &amp;quot;fixed&amp;quot; ) --Classifies which camera mode to use for the spawn screen&lt;br /&gt;
	setTimer ( &amp;quot;setCameraPosition&amp;quot;, 1000, 1, source, 160.15, -1951.68, 50 ) --Coords for the fixated camera&lt;br /&gt;
	setTimer ( &amp;quot;setCameraLookAt&amp;quot;, 1000, 1, source, 165, -1951.68, 50 ) --Coords for the fixated camera&lt;br /&gt;
	bindKey ( source, &amp;quot;F1&amp;quot;, &amp;quot;down&amp;quot;, &amp;quot;spawnVagos&amp;quot; ) --Spawns player as team #1. In this case, a new function is created later on&lt;br /&gt;
	bindKey ( source, &amp;quot;F2&amp;quot;, &amp;quot;down&amp;quot;, &amp;quot;spawnAztecs&amp;quot; ) --Spawns player as team #2. In this case, a new function is created later on&lt;br /&gt;
end&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{Camera functions}}&lt;/div&gt;</summary>
		<author><name>Xanarki</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=SetCameraMode&amp;diff=8845</id>
		<title>SetCameraMode</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=SetCameraMode&amp;diff=8845"/>
		<updated>2007-07-03T04:38:25Z</updated>

		<summary type="html">&lt;p&gt;Xanarki: /* Example */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__ &lt;br /&gt;
&amp;lt;h2 style=&amp;quot;margin:0; background:#990000; font-size:120%; font-weight:bold; border:1px solid #a3bfb1; text-align:left; color:#fff; padding:0.2em 0.4em;&amp;quot;&amp;gt;Please remember to set players camera mode back to &amp;quot;player&amp;quot; on resource unload, or you will encounter the invisible player 'bug' if players camera is still set to fixed&amp;lt;/h2&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This function allows you to change a player's camera mode to either &amp;quot;player&amp;quot; or &amp;quot;fixed&amp;quot;. &lt;br /&gt;
&lt;br /&gt;
==Syntax== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
bool setCameraMode ( player thePlayer, string mode )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
&lt;br /&gt;
===Required Arguments=== &lt;br /&gt;
*'''thePlayer:''' The player whose camera you wish to modify.&lt;br /&gt;
*'''mode:''' The mode to be set. It has the following possible values:&lt;br /&gt;
** '''&amp;quot;player&amp;quot;:''' Sets the camera to follow a player.&lt;br /&gt;
** '''&amp;quot;fixed&amp;quot;:''' Fixes the camera in a set position/rotation.&lt;br /&gt;
 &lt;br /&gt;
===Returns===&lt;br /&gt;
Returns a [[bool]] with a value of ''true'' if the function was successful, ''false'' otherwise.&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
function spawnScreen ( source ) --Calls the function spawnScreen&lt;br /&gt;
setCameraMode ( source, &amp;quot;fixed&amp;quot; ) --Classifies which camera mode to use for the spawn screen&lt;br /&gt;
	setTimer ( &amp;quot;setCameraPosition&amp;quot;, 1000, 1, source, 160.15, -1951.68, 50 ) --Coords for the fixated camera&lt;br /&gt;
	setTimer ( &amp;quot;setCameraLookAt&amp;quot;, 1000, 1, source, 165, -1951.68, 50 ) --Coords for the fixated camera&lt;br /&gt;
	bindKey ( source, &amp;quot;F1&amp;quot;, &amp;quot;down&amp;quot;, &amp;quot;spawnVagos&amp;quot; ) --Spawns player as team #1. In this case, a new function is created later on&lt;br /&gt;
	bindKey ( source, &amp;quot;F2&amp;quot;, &amp;quot;down&amp;quot;, &amp;quot;spawnAztecs&amp;quot; ) --Spawns player as team #2. In this case, a new function is created later on&lt;br /&gt;
end&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{Camera functions}}&lt;br /&gt;
&lt;br /&gt;
[[Category:Incomplete]]&lt;/div&gt;</summary>
		<author><name>Xanarki</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=TextDestroyDisplay&amp;diff=8634</id>
		<title>TextDestroyDisplay</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=TextDestroyDisplay&amp;diff=8634"/>
		<updated>2007-06-14T07:27:10Z</updated>

		<summary type="html">&lt;p&gt;Xanarki: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__&lt;br /&gt;
This function destroys a text display and will unlink all the [[textitem]]s on it. This does not stop the textitems existing, but anyone who was observing the textitems through this display will stop seeing them.&lt;br /&gt;
&lt;br /&gt;
==Syntax==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
void textDestroyDisplay ( textdisplay display )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Required Arguments===&lt;br /&gt;
* '''display:''' This is the [[textdisplay]] that you wish to have destroyed.&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
This example creates a display then destroys it again straight away.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
myDisplay = textCreateDisplay ()&lt;br /&gt;
textDestroyDisplay ( myDisplay )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{Text functions}}&lt;/div&gt;</summary>
		<author><name>Xanarki</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Character_Skins&amp;diff=8551</id>
		<title>Character Skins</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Character_Skins&amp;diff=8551"/>
		<updated>2007-06-07T06:22:36Z</updated>

		<summary type="html">&lt;p&gt;Xanarki: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Skins that the player may use (pedestrian skins).&lt;br /&gt;
&lt;br /&gt;
[[All Skins Page]] - Not recommended for slow Internet&lt;br /&gt;
&lt;br /&gt;
'''Sectioned Skin Pages:'''&lt;br /&gt;
----&lt;br /&gt;
*[[Skins Page 1]]: 7, 9-29&lt;br /&gt;
*[[Skins Page 2]]: 30-41, 43-52&lt;br /&gt;
*[[Skins Page 3]]: 53-64, 66-73, 75-76&lt;br /&gt;
*[[Skins Page 4]]: 77-85, 87-99&lt;br /&gt;
*[[Skins Page 5]]: 100-118, 120-122&lt;br /&gt;
*[[Skins Page 6]]: 123-144&lt;br /&gt;
*[[Skins Page 7]]: 145-148, 150-167&lt;br /&gt;
*[[Skins Page 8]]: 168-189&lt;br /&gt;
*[[Skins Page 9]]: 190-207, 209-212&lt;br /&gt;
*[[Skins Page 10]]: 213-234&lt;br /&gt;
*[[Skins Page 11]]: 235-238, 240-257&lt;br /&gt;
*[[Skins Page 12]]: 258-264, 274-288&lt;br /&gt;
&lt;br /&gt;
==Notes:==&lt;br /&gt;
*22 Skins per page (minus CJ), 12 pages: 264 total.&lt;br /&gt;
&lt;br /&gt;
*IDs 1-8 (except 7) are non-functional&lt;br /&gt;
&lt;br /&gt;
*The following pairs of IDs produce same character (1st ID used in lists)&lt;br /&gt;
**78:239&lt;br /&gt;
**118:119 &lt;br /&gt;
**148:149&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
[[id]]&lt;/div&gt;</summary>
		<author><name>Xanarki</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=User:Xanarki&amp;diff=8527</id>
		<title>User:Xanarki</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=User:Xanarki&amp;diff=8527"/>
		<updated>2007-06-04T00:47:45Z</updated>

		<summary type="html">&lt;p&gt;Xanarki: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;NIИ&lt;/div&gt;</summary>
		<author><name>Xanarki</name></author>
	</entry>
</feed>