concommand.Remove

From GMod Wiki

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