<?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=AnubhavTheWiki</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=AnubhavTheWiki"/>
	<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/wiki/Special:Contributions/AnubhavTheWiki"/>
	<updated>2026-04-28T02:19:53Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.39.3</generator>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=DxGUI/onClientDXClick&amp;diff=43410</id>
		<title>DxGUI/onClientDXClick</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=DxGUI/onClientDXClick&amp;diff=43410"/>
		<updated>2014-12-22T03:52:34Z</updated>

		<summary type="html">&lt;p&gt;AnubhavTheWiki: 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; *'''button:''' the name o...&amp;quot;&lt;/p&gt;
&lt;hr /&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>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=SetWeaponOwner&amp;diff=41159</id>
		<title>SetWeaponOwner</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=SetWeaponOwner&amp;diff=41159"/>
		<updated>2014-08-04T14:17:13Z</updated>

		<summary type="html">&lt;p&gt;AnubhavTheWiki: /* Example */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__&lt;br /&gt;
{{Client function}}&lt;br /&gt;
{{Needs_Example}}&lt;br /&gt;
Sets the owner (a player) of the custom weapon.&lt;br /&gt;
&lt;br /&gt;
==Syntax==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;bool setWeaponOwner ( weapon theWeapon, player theOwner )&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Required Arguments===&lt;br /&gt;
* '''theWeapon:''' The weapon to set the owner of&lt;br /&gt;
* '''theOwner:''' The weapon owner&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns ''true'' on success, ''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;
local weapon = createWeapon(deagle, 0, 0, 0) -- create a weapon in center of the map. Weapon is deagle :D&lt;br /&gt;
    if weapon then -- if it was sucessfull then&lt;br /&gt;
        setWeaponOwner( weapon, getPlayerName(getRandomPlayer()) ) -- get a random player and set the weapon owner to him&lt;br /&gt;
end -- end the if statment&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Requirements==&lt;br /&gt;
{{Requirements|n/a|1.3.0-9.04555|}}&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{Client weapon creation functions}}&lt;/div&gt;</summary>
		<author><name>AnubhavTheWiki</name></author>
	</entry>
</feed>