Sandbox.ConCmdAttribute

Started by Bot 2 posts 234 views

Reply on sbox.game
  1. #1
    Bot
    Sandbox.ConCmdAttribute : api/Sandbox.ConCmdAttribute
  2. #2
    Seven 1,310
    public class ExampleClass
    {
    	[ConCmd( "NameOfCmd" )]
    	public static void MethodToCallOnCmd(string argument )
    	{
    		Log.Info( $"You gave these arguments: {argument}" );
    	}
    }
    Primitive Example of Usage