<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.multitheftauto.com/wiki/DgsMenuRemoveItem?action=history&amp;feed=atom</id>
	<title>DgsMenuRemoveItem - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.multitheftauto.com/wiki/DgsMenuRemoveItem?action=history&amp;feed=atom"/>
	<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=DgsMenuRemoveItem&amp;action=history"/>
	<updated>2026-05-08T15:21:51Z</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=DgsMenuRemoveItem&amp;diff=82220&amp;oldid=prev</id>
		<title>Mohab: Created page with &quot;{{Client function}} __NOTOC__ This function removes an item from a DGS menu element.  ==Syntax== &lt;syntaxhighlight lang=&quot;lua&quot;&gt; bool dgsMenuRemoveItem ( element menu, int uniqueID ) &lt;/syntaxhighlight&gt;  ===Required Arguments=== *'''menu:''' The DGS menu element from which to remove the item *'''uniqueID:''' The unique ID of the menu item to remove (returned by dgsMenuAddItem)  ===Returns=== Returns ''true'' if the item was successfully removed, ''false'' if the item wit...&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=DgsMenuRemoveItem&amp;diff=82220&amp;oldid=prev"/>
		<updated>2025-07-10T08:53:12Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;{{Client function}} __NOTOC__ This function removes an item from a DGS menu element.  ==Syntax== &amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt; bool dgsMenuRemoveItem ( element menu, int uniqueID ) &amp;lt;/syntaxhighlight&amp;gt;  ===Required Arguments=== *&amp;#039;&amp;#039;&amp;#039;menu:&amp;#039;&amp;#039;&amp;#039; The DGS menu element from which to remove the item *&amp;#039;&amp;#039;&amp;#039;uniqueID:&amp;#039;&amp;#039;&amp;#039; The unique ID of the menu item to remove (returned by &lt;a href=&quot;/wiki/DgsMenuAddItem&quot; title=&quot;DgsMenuAddItem&quot;&gt;dgsMenuAddItem&lt;/a&gt;)  ===Returns=== Returns &amp;#039;&amp;#039;true&amp;#039;&amp;#039; if the item was successfully removed, &amp;#039;&amp;#039;false&amp;#039;&amp;#039; if the item wit...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{Client function}}&lt;br /&gt;
__NOTOC__&lt;br /&gt;
This function removes an item from a DGS menu element.&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 dgsMenuRemoveItem ( element menu, int uniqueID )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Required Arguments===&lt;br /&gt;
*'''menu:''' The DGS menu element from which to remove the item&lt;br /&gt;
*'''uniqueID:''' The unique ID of the menu item to remove (returned by [[dgsMenuAddItem]])&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns ''true'' if the item was successfully removed, ''false'' if the item with the specified uniqueID was not found.&lt;br /&gt;
&lt;br /&gt;
==Examples==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
loadstring(exports.dgs:dgsImportFunction())()-- load functions&lt;br /&gt;
&lt;br /&gt;
-- Create a menu with items&lt;br /&gt;
local menu = dgsCreateMenu(200, 200, 200, 150, false)&lt;br /&gt;
local item1 = dgsMenuAddItem(menu, &amp;quot;Option 1&amp;quot;, &amp;quot;command1&amp;quot;)&lt;br /&gt;
local item2 = dgsMenuAddItem(menu, &amp;quot;Option 2&amp;quot;, &amp;quot;command2&amp;quot;)&lt;br /&gt;
local item3 = dgsMenuAddItem(menu, &amp;quot;Option 3&amp;quot;, &amp;quot;command3&amp;quot;)&lt;br /&gt;
&lt;br /&gt;
-- Remove the second item&lt;br /&gt;
local removeItem = dgsMenuRemoveItem(menu, item2)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
-- Show the menu (item2 will not be visible)&lt;br /&gt;
dgsMenuShow(menu)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
*[[dgsMenuAddItem]]&lt;br /&gt;
*[[dgsMenuAddSeparator]]&lt;br /&gt;
*[[dgsCreateMenu]]&lt;br /&gt;
*[[dgsMenuGetItemText]]&lt;br /&gt;
*[[dgsMenuSetItemText]]&lt;br /&gt;
*[[dgsMenuGetItemCommand]]&lt;br /&gt;
*[[dgsMenuSetItemCommand]]&lt;br /&gt;
&lt;br /&gt;
==Author==&lt;br /&gt;
[[User:Mohab|Mohab]].&lt;/div&gt;</summary>
		<author><name>Mohab</name></author>
	</entry>
</feed>