Garry's Mod Wiki

concommand.Remove

  concommand.Remove( string name )

Description

Removes a console command.

concommand.Add will fail if the concommand was previously removed with this function in a different realm (creating a command on the client that was removed from the server and vice-versa).

Issue Tracker: 1183

Arguments

1 string name
The name of the command to be removed.

Example

Removes the built-in concommand gmod_camera which would normally quickly select the camera swep

concommand.Remove("gmod_camera")