<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.multitheftauto.com/wiki/OnDgsMenuSelect?action=history&amp;feed=atom</id>
	<title>OnDgsMenuSelect - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.multitheftauto.com/wiki/OnDgsMenuSelect?action=history&amp;feed=atom"/>
	<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=OnDgsMenuSelect&amp;action=history"/>
	<updated>2026-05-23T09:58:47Z</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=OnDgsMenuSelect&amp;diff=77448&amp;oldid=prev</id>
		<title>Thisdp at 07:34, 12 August 2023</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=OnDgsMenuSelect&amp;diff=77448&amp;oldid=prev"/>
		<updated>2023-08-12T07:34:51Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 07:34, 12 August 2023&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l8&quot;&gt;Line 8:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 8:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;/syntaxhighlight&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;/syntaxhighlight&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* '''subMenu''': The sub dgs-dxmenu that the item in.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* '''subMenu''': The sub dgs-dxmenu that the item in.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* '''&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;previous&lt;/del&gt;''':  The item id &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;that last selected&lt;/del&gt;.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* '''&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;itemUniqueIndex&lt;/ins&gt;''':  The item id.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;==Source==&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;==Source==&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;

&lt;!-- diff cache key wiki-wiki_dev_:diff::1.12:old-77447:rev-77448 --&gt;
&lt;/table&gt;</summary>
		<author><name>Thisdp</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=OnDgsMenuSelect&amp;diff=77447&amp;oldid=prev</id>
		<title>Thisdp: Created page with &quot;{{Client event}} __NOTOC__  This event is fired when the item of a DGS menu is clicked.  ==Parameters==  &lt;syntaxhighlight lang=&quot;lua&quot;&gt; dgs-dxmenu subMenu, integer itemUniqueIndex &lt;/syntaxhighlight&gt; * '''subMenu''': The sub dgs-dxmenu that the item in. * '''previous''':  The item id that last selected.  ==Source== The source of this event is the root dgs menu element.  ==Example==  &lt;syntaxhighlight lang=&quot;lua&quot;&gt; DGS = exports.dgs local menu = DG...&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=OnDgsMenuSelect&amp;diff=77447&amp;oldid=prev"/>
		<updated>2023-08-12T07:34:04Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;{{Client event}} __NOTOC__  This event is fired when the item of a DGS menu is clicked.  ==Parameters==  &amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt; dgs-dxmenu subMenu, integer itemUniqueIndex &amp;lt;/syntaxhighlight&amp;gt; * &amp;#039;&amp;#039;&amp;#039;subMenu&amp;#039;&amp;#039;&amp;#039;: The sub dgs-dxmenu that the item in. * &amp;#039;&amp;#039;&amp;#039;previous&amp;#039;&amp;#039;&amp;#039;:  The item id that last selected.  ==Source== The &lt;a href=&quot;/wiki/Event_system#Event_source&quot; title=&quot;Event system&quot;&gt;source&lt;/a&gt; of this event is the root dgs menu element.  ==Example==  &amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt; DGS = exports.dgs local menu = DG...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{Client event}}&lt;br /&gt;
__NOTOC__ &lt;br /&gt;
This event is fired when the item of a DGS menu is clicked.&lt;br /&gt;
&lt;br /&gt;
==Parameters== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
dgs-dxmenu subMenu, integer itemUniqueIndex&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
* '''subMenu''': The sub dgs-dxmenu that the item in.&lt;br /&gt;
* '''previous''':  The item id that last selected.&lt;br /&gt;
&lt;br /&gt;
==Source==&lt;br /&gt;
The [[event system#Event source|source]] of this event is the root dgs menu element.&lt;br /&gt;
&lt;br /&gt;
==Example== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
DGS = exports.dgs&lt;br /&gt;
local menu = DGS:dgsCreateMenu(200,200,200,600,false)&lt;br /&gt;
local item = DGS:dgsMenuAddItem(menu,&amp;quot;test1&amp;quot;,&amp;quot;test1&amp;quot;)&lt;br /&gt;
	local item2 = DGS:dgsMenuAddItem(menu,&amp;quot;test2&amp;quot;,&amp;quot;test2&amp;quot;,item)&lt;br /&gt;
		DGS:dgsMenuAddItem(menu,&amp;quot;test2&amp;quot;,&amp;quot;test2&amp;quot;,item2)&lt;br /&gt;
		DGS:dgsMenuAddItem(menu,&amp;quot;test2&amp;quot;,&amp;quot;test2&amp;quot;,item2)&lt;br /&gt;
		DGS:dgsMenuAddItem(menu,&amp;quot;test2&amp;quot;,&amp;quot;test2&amp;quot;,item2)&lt;br /&gt;
		DGS:dgsMenuAddItem(menu,&amp;quot;test2&amp;quot;,&amp;quot;test2&amp;quot;,item2)&lt;br /&gt;
		DGS:dgsMenuAddItem(menu,&amp;quot;test2&amp;quot;,&amp;quot;test2&amp;quot;,item2)&lt;br /&gt;
		DGS:dgsMenuAddItem(menu,&amp;quot;test2&amp;quot;,&amp;quot;test2&amp;quot;,item2)&lt;br /&gt;
DGS:dgsMenuAddSeparator(menu)&lt;br /&gt;
local item = DGS:dgsMenuAddItem(menu,&amp;quot;test3&amp;quot;,&amp;quot;test3&amp;quot;)&lt;br /&gt;
	local item2 = DGS:dgsMenuAddItem(menu,&amp;quot;test2&amp;quot;,&amp;quot;test2&amp;quot;,item)&lt;br /&gt;
		DGS:dgsMenuAddItem(menu,&amp;quot;test2&amp;quot;,&amp;quot;test2&amp;quot;,item2)&lt;br /&gt;
		DGS:dgsMenuAddItem(menu,&amp;quot;test2&amp;quot;,&amp;quot;test2&amp;quot;,item2)&lt;br /&gt;
		DGS:dgsMenuAddItem(menu,&amp;quot;test2&amp;quot;,&amp;quot;test2&amp;quot;,item2)&lt;br /&gt;
		DGS:dgsMenuAddItem(menu,&amp;quot;test2&amp;quot;,&amp;quot;test2&amp;quot;,item2)&lt;br /&gt;
		DGS:dgsMenuAddItem(menu,&amp;quot;test2&amp;quot;,&amp;quot;test2&amp;quot;,item2)&lt;br /&gt;
		DGS:dgsMenuAddItem(menu,&amp;quot;test2&amp;quot;,&amp;quot;test2&amp;quot;,item2)&lt;br /&gt;
&lt;br /&gt;
local button = DGS:dgsCreateButton(200,200,300,300,&amp;quot;what&amp;quot;,false)&lt;br /&gt;
addEventHandler(&amp;quot;onDgsMouseClickUp&amp;quot;,button,function(button)&lt;br /&gt;
	if button == &amp;quot;right&amp;quot; then&lt;br /&gt;
		DGS:dgsMenuShow(menu)&lt;br /&gt;
	end&lt;br /&gt;
end)&lt;br /&gt;
&lt;br /&gt;
addEventHandler(&amp;quot;onDgsMenuSelect&amp;quot;,menu,function(subMenu,uniqueID)&lt;br /&gt;
	iprint(&amp;quot;select&amp;quot;,subMenu,uniqueID)&lt;br /&gt;
end)&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
===DGS events===&lt;br /&gt;
{{DGSEVENTS}}&lt;br /&gt;
===Client event functions===&lt;br /&gt;
{{Client_event_functions}}&lt;/div&gt;</summary>
		<author><name>Thisdp</name></author>
	</entry>
</feed>