Garry's Mod Wiki


  AddConsoleCommand( string name, string helpText, number flags )


This is used internally - although you're able to use it you probably shouldn't. Use concommand.Add instead.

Tells the engine to register a console command. If the command was ran, the engine calls concommand.Run.


1 string name
The name of the console command to add.
2 string helpText
The help text.
3 number flags
Concommand flags using FCVAR enum