<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.multitheftauto.com/wiki/DxGUI/onClientDXClick?action=history&amp;feed=atom</id>
	<title>DxGUI/onClientDXClick - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.multitheftauto.com/wiki/DxGUI/onClientDXClick?action=history&amp;feed=atom"/>
	<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=DxGUI/onClientDXClick&amp;action=history"/>
	<updated>2026-04-07T06:09:42Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.39.3</generator>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=DxGUI/onClientDXClick&amp;diff=43410&amp;oldid=prev</id>
		<title>AnubhavTheWiki: Created page with &quot;This event is triggered when you click a dx element.  ==Parameters==  &lt;syntaxhighlight lang=&quot;lua&quot;&gt; string button, string state, int absoluteX, int absoluteY &lt;/syntaxhighlight&gt; *'''button:''' the name o...&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=DxGUI/onClientDXClick&amp;diff=43410&amp;oldid=prev"/>
		<updated>2014-12-22T03:52:34Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;This event is triggered when you click a dx element.  ==Parameters==  &amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt; string button, string state, int absoluteX, int absoluteY &amp;lt;/syntaxhighlight&amp;gt; *&amp;#039;&amp;#039;&amp;#039;button:&amp;#039;&amp;#039;&amp;#039; the name o...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;This event is triggered when you click a dx element.&lt;br /&gt;
&lt;br /&gt;
==Parameters== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
string button, string state, int absoluteX, int absoluteY&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''button:''' the name of the dx element which will be clicked , it can be ''left'', ''right'', ''middle''&lt;br /&gt;
*'''state:''' the state of the mouse button, will be ''down'' if the mouse button was pushed, or ''up'' if it was released.  '''&lt;br /&gt;
*'''absoluteX:''' the X position of the mouse cursor, in pixels, measured from the left side of the screen.&lt;br /&gt;
*'''absoluteY:''' the Y position of the mouse cursor, in pixels, measured from the top of the screen.&lt;br /&gt;
&lt;br /&gt;
===Source=== &lt;br /&gt;
The [[event system#Event source|source]] of this event is the DX element that was clicked.&lt;br /&gt;
&lt;br /&gt;
==Example== &lt;br /&gt;
'''Example 1:''' This example outputs when you click a dx elements.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
addEvent( &amp;quot;onClientDXClick&amp;quot;, true )&lt;br /&gt;
addEventHandler( &amp;quot;onClientDXClick&amp;quot;, root, function()&lt;br /&gt;
   outputChatBox(&amp;quot;You clicked a dx element&amp;quot;)&lt;br /&gt;
end&lt;br /&gt;
)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;/div&gt;</summary>
		<author><name>AnubhavTheWiki</name></author>
	</entry>
</feed>