<?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=Willy</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=Willy"/>
	<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/wiki/Special:Contributions/Willy"/>
	<updated>2026-06-09T12:41:07Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.39.3</generator>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Md5&amp;diff=18124</id>
		<title>Md5</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Md5&amp;diff=18124"/>
		<updated>2009-01-09T10:59:46Z</updated>

		<summary type="html">&lt;p&gt;Willy: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__&lt;br /&gt;
{{Server client function}}&lt;br /&gt;
&lt;br /&gt;
Calculates the MD5 hash of the specified string and returns its hexadecimal representation.&lt;br /&gt;
&lt;br /&gt;
Note: returns an uppercase string, so make sure you string.upper() anything else you are checking against that has been MD5'd elsewhere.&lt;br /&gt;
&lt;br /&gt;
==Syntax==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;string md5 ( string str )&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Required Arguments===&lt;br /&gt;
*'''str:''' the string to hash.&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns the MD5 hash of the input string if successful, ''false'' otherwise.&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{Utility functions}}&lt;/div&gt;</summary>
		<author><name>Willy</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Md5&amp;diff=18123</id>
		<title>Md5</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Md5&amp;diff=18123"/>
		<updated>2009-01-09T10:59:33Z</updated>

		<summary type="html">&lt;p&gt;Willy: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__&lt;br /&gt;
{{Server client function}}&lt;br /&gt;
&lt;br /&gt;
Calculates the MD5 hash of the specified string and returns its hexadecimal representation.&lt;br /&gt;
&lt;br /&gt;
Note: returns an uppercase string, so make sure you string.upper() anything else you are checking against that has been MD5'd elswhere.&lt;br /&gt;
&lt;br /&gt;
==Syntax==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;string md5 ( string str )&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Required Arguments===&lt;br /&gt;
*'''str:''' the string to hash.&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns the MD5 hash of the input string if successful, ''false'' otherwise.&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{Utility functions}}&lt;/div&gt;</summary>
		<author><name>Willy</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Md5&amp;diff=18122</id>
		<title>Md5</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Md5&amp;diff=18122"/>
		<updated>2009-01-09T10:59:27Z</updated>

		<summary type="html">&lt;p&gt;Willy: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__&lt;br /&gt;
{{Server client function}}&lt;br /&gt;
&lt;br /&gt;
Calculates the MD5 hash of the specified string and returns its hexadecimal representation.&lt;br /&gt;
Note: returns an uppercase string, so make sure you string.upper() anything else you are checking against that has been MD5'd elswhere.&lt;br /&gt;
&lt;br /&gt;
==Syntax==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;string md5 ( string str )&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Required Arguments===&lt;br /&gt;
*'''str:''' the string to hash.&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns the MD5 hash of the input string if successful, ''false'' otherwise.&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{Utility functions}}&lt;/div&gt;</summary>
		<author><name>Willy</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Talk:IsPlayerMapForced&amp;diff=18110</id>
		<title>Talk:IsPlayerMapForced</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Talk:IsPlayerMapForced&amp;diff=18110"/>
		<updated>2009-01-04T14:25:41Z</updated>

		<summary type="html">&lt;p&gt;Willy: New page: this function is client and serverside - needs properly documenting.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;this function is client and serverside - needs properly documenting.&lt;/div&gt;</summary>
		<author><name>Willy</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=GetPedAnimation&amp;diff=18107</id>
		<title>GetPedAnimation</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=GetPedAnimation&amp;diff=18107"/>
		<updated>2009-01-03T12:47:49Z</updated>

		<summary type="html">&lt;p&gt;Willy: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__&lt;br /&gt;
{{Client function}}&lt;br /&gt;
&lt;br /&gt;
Gets the animation of a player or ped that was set using [[setPedAnimation]].&lt;br /&gt;
&lt;br /&gt;
==Syntax==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
string string getPedAnimation ( ped thePed )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Required Arguments===&lt;br /&gt;
*'''thePed:''' the player or ped you want to get the animation of.&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns two ''strings'': the first is the name of the block, the second is the name of the animation. Returns ''false'' if there was an error or if the ped is not doing an animation.&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{Ped_functions}}&lt;/div&gt;</summary>
		<author><name>Willy</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=SetPedAnimation&amp;diff=17919</id>
		<title>SetPedAnimation</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=SetPedAnimation&amp;diff=17919"/>
		<updated>2008-11-30T21:31:46Z</updated>

		<summary type="html">&lt;p&gt;Willy: fixed typo&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__&lt;br /&gt;
{{Server client function}}&lt;br /&gt;
&lt;br /&gt;
Sets the current animation of a player or ped.  Not specifying the type of animation will automatically cancel the current one.&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 setPedAnimation ( ped thePed, [string block=nil, string name=nil, int time=-1,bool loop=true, bool updatePosition=true, bool interruptible=true) )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Required Arguments===&lt;br /&gt;
*'''thePed:''' the player or ped you want to apply an animation to.&lt;br /&gt;
&lt;br /&gt;
===Optional Arguments===&lt;br /&gt;
*'''block:''' the [[Animations|animation]] block's name.&lt;br /&gt;
*'''anim:''' the name of the [[Animations|animation]] within the block.&lt;br /&gt;
*'''time:''' the duration for the animation.  Defaults to -1, which is the default time.&lt;br /&gt;
*'''loop:''' indicates whether or not the animation will loop.&lt;br /&gt;
*'''updatePosition:''' will change the actual coordinates of the ped according to the animation. Use this for e.g. walking animations.&lt;br /&gt;
*'''interuptable:''' Defines whether the animation can be interrupted by normal movements&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns ''true'' if succesful, ''false'' otherwise.&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{Ped_functions}}&lt;/div&gt;</summary>
		<author><name>Willy</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=SetElementRotation&amp;diff=17900</id>
		<title>SetElementRotation</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=SetElementRotation&amp;diff=17900"/>
		<updated>2008-11-25T02:24:36Z</updated>

		<summary type="html">&lt;p&gt;Willy: New page: {{Client function}} __NOTOC__  Sets the rotation of elements according to the world (does not work with players that are on the ground).  ==Syntax== &amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt; bool setElementRotation (...&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Client function}}&lt;br /&gt;
__NOTOC__ &lt;br /&gt;
Sets the rotation of elements according to the world (does not work with players that are on the ground).&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 setElementRotation ( element theElement, 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;
*'''theElement:''' The element whose rotation will be set&lt;br /&gt;
*'''rotX:''' The element's rotation around the x axis in degrees&lt;br /&gt;
*'''rotY:''' The element's rotation around the y axis in degrees&lt;br /&gt;
*'''rotZ:''' The element's rotation around the z axis in degrees&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns ''true'' if the element rotation was successfully set and ''false'' otherwise.&lt;br /&gt;
&lt;br /&gt;
==Example== &lt;br /&gt;
When a player used the command &amp;quot;turn&amp;quot; and they are the driver of a vehicle the vehicle will rotate 10 degrees clockwise&lt;br /&gt;
&amp;lt;section name=&amp;quot;Client&amp;quot; class=&amp;quot;client&amp;quot; show=&amp;quot;true&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
local localPlayer = getLocalPlayer()&lt;br /&gt;
function carRotate( )&lt;br /&gt;
    if isPlayerInVehicle(localPlayer) then -- if the local client is in a vehicle&lt;br /&gt;
        localVehicle = getPlayerOccupiedVehicle(localPlayer)&lt;br /&gt;
        if getVehicleController(localVehicle) == localPlayer then -- if the local client is the controller (driver) of the vehicle&lt;br /&gt;
            local rotX, rotY, rotZ = getElementRotation(localVehicle) -- get the local client's vehicle rotation&lt;br /&gt;
            setElementRotation(localVehicle,rotX,rotY,rotZ+10) -- turn the vehicle 10 degrees clockwise&lt;br /&gt;
         end&lt;br /&gt;
    end&lt;br /&gt;
end&lt;br /&gt;
addCommandHandler ( &amp;quot;turn&amp;quot;, carRotate )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;/section&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{Client_element_functions}}&lt;/div&gt;</summary>
		<author><name>Willy</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=GetElementRotation&amp;diff=17899</id>
		<title>GetElementRotation</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=GetElementRotation&amp;diff=17899"/>
		<updated>2008-11-25T02:22:31Z</updated>

		<summary type="html">&lt;p&gt;Willy: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Client function}}&lt;br /&gt;
__NOTOC__ &lt;br /&gt;
Retrieve the rotation of elements.&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 float float getElementRotation ( element theElement )       &lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
&lt;br /&gt;
===Required Arguments=== &lt;br /&gt;
*'''theElement:''' The element whose rotation will be retrieved&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns three ''float''s if element exists and is a valid element, ''false'' in if it's invalid.&lt;br /&gt;
&lt;br /&gt;
==Example== &lt;br /&gt;
If a player points at a player element with a gun, its rotation will appear in the chat box.&lt;br /&gt;
&amp;lt;section name=&amp;quot;Client&amp;quot; class=&amp;quot;client&amp;quot; show=&amp;quot;true&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function onPlayerTargeted ( targetElem )&lt;br /&gt;
    if ( isElement(targetElem) and getElementType (targetElem) == &amp;quot;player&amp;quot; ) then&lt;br /&gt;
        local x,y,z = getElementRotation ( targetElem )&lt;br /&gt;
        outputChatBox ( &amp;quot;Target player rotation: &amp;quot; .. x .. &amp;quot; &amp;quot; .. y .. &amp;quot; &amp;quot; .. z )&lt;br /&gt;
    end&lt;br /&gt;
end&lt;br /&gt;
addEventHandler ( &amp;quot;onClientPlayerTarget&amp;quot;, getRootElement(), onPlayerTargeted )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;/section&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{Client_element_functions}}&lt;/div&gt;</summary>
		<author><name>Willy</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=GetElementRotation&amp;diff=17898</id>
		<title>GetElementRotation</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=GetElementRotation&amp;diff=17898"/>
		<updated>2008-11-25T01:56:19Z</updated>

		<summary type="html">&lt;p&gt;Willy: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Client function}}&lt;br /&gt;
__NOTOC__ &lt;br /&gt;
Retrieve the rotation of elements.&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 float float getElementRotation ( element theElement )       &lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
&lt;br /&gt;
===Required Arguments=== &lt;br /&gt;
*'''theElement:''' The element whose rotation will be retrieved&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns three ''float''s if element exists and is a valid element, ''false'' in if it's invalid.&lt;br /&gt;
&lt;br /&gt;
==Example== &lt;br /&gt;
If a player points at a player element with a gun, its rotation will appear in the chat box.&lt;br /&gt;
&amp;lt;section name=&amp;quot;Client&amp;quot; class=&amp;quot;client&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function onPlayerTargeted ( targetElem )&lt;br /&gt;
    if ( isElement(targetElem) and getElementType (targetElem) == &amp;quot;player&amp;quot; ) then&lt;br /&gt;
        local x,y,z = getElementRotation ( targetElem )&lt;br /&gt;
        outputChatBox ( &amp;quot;Target player rotation: &amp;quot; .. x .. &amp;quot; &amp;quot; .. y .. &amp;quot; &amp;quot; .. z )&lt;br /&gt;
    end&lt;br /&gt;
end&lt;br /&gt;
addEventHandler ( &amp;quot;onClientPlayerTarget&amp;quot;, getRootElement(), onPlayerTargeted )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;/section&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{Client_element_functions}}&lt;/div&gt;</summary>
		<author><name>Willy</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=GetElementRotation&amp;diff=17897</id>
		<title>GetElementRotation</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=GetElementRotation&amp;diff=17897"/>
		<updated>2008-11-25T01:55:31Z</updated>

		<summary type="html">&lt;p&gt;Willy: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Client function}}&lt;br /&gt;
__NOTOC__ &lt;br /&gt;
Retrieve the rotation of elements.&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 float float getElementRotation ( element theElement )       &lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
&lt;br /&gt;
===Required Arguments=== &lt;br /&gt;
*'''theElement:''' The element whose rotation will be retrieved&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns three ''float''s if element exists and is a valid element, ''false'' in if it's invalid.&lt;br /&gt;
&lt;br /&gt;
==Example== &lt;br /&gt;
If a player points at a player element with a gun, its rotation will appear in the chat box.&lt;br /&gt;
&amp;lt;section name=&amp;quot;Server&amp;quot; class=&amp;quot;server&amp;quot; show=&amp;quot;true&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function onPlayerTargeted ( targetElem )&lt;br /&gt;
    if ( isElement(targetElem) and getElementType(targetElem) == &amp;quot;player&amp;quot; ) then&lt;br /&gt;
        local x,y,z = getElementRotation ( targetElem )&lt;br /&gt;
        outputChatBox ( &amp;quot;Target player rotation: &amp;quot; .. x .. &amp;quot; &amp;quot; .. y .. &amp;quot; &amp;quot; .. z, source )&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;&lt;br /&gt;
&amp;lt;/section&amp;gt;&lt;br /&gt;
&amp;lt;section name=&amp;quot;Client&amp;quot; class=&amp;quot;client&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function onPlayerTargeted ( targetElem )&lt;br /&gt;
    if ( isElement(targetElem) and getElementType (targetElem) == &amp;quot;player&amp;quot; ) then&lt;br /&gt;
        local x,y,z = getElementRotation ( targetElem )&lt;br /&gt;
        outputChatBox ( &amp;quot;Target player rotation: &amp;quot; .. x .. &amp;quot; &amp;quot; .. y .. &amp;quot; &amp;quot; .. z )&lt;br /&gt;
    end&lt;br /&gt;
end&lt;br /&gt;
addEventHandler ( &amp;quot;onClientPlayerTarget&amp;quot;, getRootElement(), onPlayerTargeted )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;/section&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{Element_functions}}&lt;/div&gt;</summary>
		<author><name>Willy</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=GetElementRotation&amp;diff=17896</id>
		<title>GetElementRotation</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=GetElementRotation&amp;diff=17896"/>
		<updated>2008-11-25T01:50:36Z</updated>

		<summary type="html">&lt;p&gt;Willy: New page: {{Server client function}} __NOTOC__  Retrieve the rotation of elements.  ==Syntax== &amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt; float float float getElementRotation ( element theElement )        &amp;lt;/syntaxhighlight&amp;gt;   ===Required ...&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Server client function}}&lt;br /&gt;
__NOTOC__ &lt;br /&gt;
Retrieve the rotation of elements.&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 float float getElementRotation ( element theElement )       &lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
&lt;br /&gt;
===Required Arguments=== &lt;br /&gt;
*'''theElement:''' The element whose rotation will be retrieved&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns three ''float''s if element exists and is a valid element, ''false'' in if it's invalid.&lt;br /&gt;
&lt;br /&gt;
==Example== &lt;br /&gt;
If a player points at a player element with a gun, its rotation will appear in the chat box.&lt;br /&gt;
&amp;lt;section name=&amp;quot;Server&amp;quot; class=&amp;quot;server&amp;quot; show=&amp;quot;true&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function onPlayerTargeted ( targetElem )&lt;br /&gt;
    if ( isElement(targetElem) and getElementType(targetElem) == &amp;quot;player&amp;quot; ) then&lt;br /&gt;
        local x,y,z = getElementRotation ( targetElem )&lt;br /&gt;
        outputChatBox ( &amp;quot;Target player rotation: &amp;quot; .. x .. &amp;quot; &amp;quot; .. y .. &amp;quot; &amp;quot; .. z, source )&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;&lt;br /&gt;
&amp;lt;/section&amp;gt;&lt;br /&gt;
&amp;lt;section name=&amp;quot;Client&amp;quot; class=&amp;quot;client&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function onPlayerTargeted ( targetElem )&lt;br /&gt;
    if ( isElement(targetElem) and getElementType (targetElem) == &amp;quot;player&amp;quot; ) then&lt;br /&gt;
        local x,y,z = getElementRotation ( targetElem )&lt;br /&gt;
        outputChatBox ( &amp;quot;Target player rotation: &amp;quot; .. x .. &amp;quot; &amp;quot; .. y .. &amp;quot; &amp;quot; .. z )&lt;br /&gt;
    end&lt;br /&gt;
end&lt;br /&gt;
addEventHandler ( &amp;quot;onClientPlayerTarget&amp;quot;, getRootElement(), onPlayerTargeted )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;/section&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{Element_functions}}&lt;/div&gt;</summary>
		<author><name>Willy</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=GetObjectModel&amp;diff=17831</id>
		<title>GetObjectModel</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=GetObjectModel&amp;diff=17831"/>
		<updated>2008-11-24T18:43:56Z</updated>

		<summary type="html">&lt;p&gt;Willy: fixed typos&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__ &lt;br /&gt;
{{Server client 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 ( object theObject )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
&lt;br /&gt;
===Required Arguments=== &lt;br /&gt;
*'''theObject:''' 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'' if it isn't a valid object.&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;
function onPlayerTargeted ( targetElem )&lt;br /&gt;
    if ( getElementType ( targetElem ) == &amp;quot;object&amp;quot; ) and ( getObjectModel ( targetElem ) == 3374 ) then&lt;br /&gt;
        destroyElement ( targetElem )&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;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
This example outputs the model id of objects the player is targeting.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function onPlayerTargeted ( targetElem )&lt;br /&gt;
    if ( getElementType ( targetElem ) == &amp;quot;object&amp;quot;) then&lt;br /&gt;
        outputChatBox ( getObjectModel(targetElem) )&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; &lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{Object functions}}&lt;/div&gt;</summary>
		<author><name>Willy</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=User_talk:Supervoltage&amp;diff=17811</id>
		<title>User talk:Supervoltage</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=User_talk:Supervoltage&amp;diff=17811"/>
		<updated>2008-11-14T21:26:01Z</updated>

		<summary type="html">&lt;p&gt;Willy: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Ok this is the 3rd time i say this. I get an error. It says that the meta.xml file can't be found.Could someone help?&lt;br /&gt;
&lt;br /&gt;
this isn't the place to be requesting help, http://forum.mtasa.com/ is.&lt;/div&gt;</summary>
		<author><name>Willy</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=User:Willy&amp;diff=17804</id>
		<title>User:Willy</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=User:Willy&amp;diff=17804"/>
		<updated>2008-11-09T02:39:04Z</updated>

		<summary type="html">&lt;p&gt;Willy: New page: Image:Failed.png&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Image:Failed.png]]&lt;/div&gt;</summary>
		<author><name>Willy</name></author>
	</entry>
</feed>