concommand.Remove

From GMod Wiki

Revision as of 10:25, 4 October 2009 by Lexi (Talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
Function
Syntax concommand.Remove( String commandName )
Where is this used?
Description:
Removes a console command you have added with concommand.Add.
Returns: nil
Part of Library: concommand
Realm: NewerShared.png
BBCode Link: [b][url=http://wiki.garrysmod.com/?title=Concommand.Remove]Concommand.Remove [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b]



Examples

DescriptionAdds a Concommand, then removes it
Used onNewerShared.png
Code
// Define the function
function fPrintSomething( player, command, arguments )
  Msg( "Printing Something\n" )
end
 
// Add the command
concommand.Add( "PrintSomething", fPrintSomething ) 
 
// Now we get to remove it!
concommand.Remove( "PrintSomething" )
OutputN/A

See Also

Personal tools
Namespaces
Variants
Actions
Navigation
Lua Scripting
Functions
Hooks
Toolbox