<?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=Hell+Demon</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=Hell+Demon"/>
	<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/wiki/Special:Contributions/Hell_Demon"/>
	<updated>2026-06-16T07:03:58Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.39.3</generator>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=GetCursorPosition&amp;diff=15407</id>
		<title>GetCursorPosition</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=GetCursorPosition&amp;diff=15407"/>
		<updated>2008-01-26T15:28:49Z</updated>

		<summary type="html">&lt;p&gt;Hell Demon: /* Example */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Client function}}&lt;br /&gt;
__NOTOC__&lt;br /&gt;
This function gets the current position of the mouse cursor.&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 int float float float getCursorPosition ( )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Required Arguments=== &lt;br /&gt;
''None''&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns 5 values: cursorX, cursorY, worldX, worldY, worldZ. The first two values are the 2D screen coordinates of the cursor in pixels, relative to the upper left corner. The 3 values that follow are the 3D world map coordinates that the cursor points at.&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function cursorInfo()&lt;br /&gt;
	screenx, screeny, worldx, worldy, worldz = getCursorPosition()&lt;br /&gt;
	outputChatBox(&amp;quot;Cursor screen position: X=&amp;quot; .. screenx .. &amp;quot; Y=&amp;quot; .. screeny)&lt;br /&gt;
	outputChatBox(&amp;quot;Cursor world position: X=&amp;quot; .. worldx .. &amp;quot; Y=&amp;quot; .. worldy .. &amp;quot; Z=&amp;quot;  .. worldz)&lt;br /&gt;
end&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{Client_input_functions}}&lt;br /&gt;
[[Category:Needs_Example]]&lt;/div&gt;</summary>
		<author><name>Hell Demon</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=GetCursorPosition&amp;diff=15406</id>
		<title>GetCursorPosition</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=GetCursorPosition&amp;diff=15406"/>
		<updated>2008-01-26T15:28:25Z</updated>

		<summary type="html">&lt;p&gt;Hell Demon: /* Example */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Client function}}&lt;br /&gt;
__NOTOC__&lt;br /&gt;
This function gets the current position of the mouse cursor.&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 int float float float getCursorPosition ( )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Required Arguments=== &lt;br /&gt;
''None''&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns 5 values: cursorX, cursorY, worldX, worldY, worldZ. The first two values are the 2D screen coordinates of the cursor in pixels, relative to the upper left corner. The 3 values that follow are the 3D world map coordinates that the cursor points at.&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
This page lacks an example.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function cursorInfo()&lt;br /&gt;
	screenx, screeny, worldx, worldy, worldz = getCursorPosition()&lt;br /&gt;
	outputChatBox(&amp;quot;Cursor screen position: X=&amp;quot; .. screenx .. &amp;quot; Y=&amp;quot; .. screeny)&lt;br /&gt;
	outputChatBox(&amp;quot;Cursor world position: X=&amp;quot; .. worldx .. &amp;quot; Y=&amp;quot; .. worldy .. &amp;quot; Z=&amp;quot;  .. worldz)&lt;br /&gt;
end&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{Client_input_functions}}&lt;br /&gt;
[[Category:Needs_Example]]&lt;/div&gt;</summary>
		<author><name>Hell Demon</name></author>
	</entry>
</feed>