Garry's Mod Wiki

AddConsoleCommand

  AddConsoleCommand( string name, string helpText, number flags )

Description

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.

Arguments

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