G.CloseDermaMenus

From GMod Wiki

Jump to: navigation, search
Function
Syntax CloseDermaMenus( )
Where is this used?
Description:
Closes all open derma menus. Add menus using G.RegisterDermaMenuForClose
Returns: nil
Part of Library: Global Functions
Realm: NewerClient.png
BBCode Link: [b][url=http://wiki.garrysmod.com/?title=G.CloseDermaMenus]G.CloseDermaMenus [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b]



Examples

DescriptionThis is how the function is defined in the (Source Code)
Used onNewerClient.png
Code
function CloseDermaMenus()
 
	for k, menu in pairs( tblOpenMenus ) do
 
		menu:Remove()
 
	end	
 
	tblOpenMenus = {}
 
end
OutputN/A
Personal tools
Namespaces
Variants
Actions
Navigation
Lua Scripting
Functions
Hooks
Toolbox