I'm trying to check if args if empty/null
[ConsoleCommand("uiclose")]
private void close_menu(ConsoleSystem.Arg args)
{
BasePlayer player = BasePlayer.FindByID(System.Convert.ToUInt64(args.Args[0]));
if (player == null)
return;
if(args.Args == null || args.Args.Length == 0)
{
Puts("No args found please enter a users steam ID");
}
else
{
Puts("Closed menu for " + player.userID.ToString());
CuiHelper.DestroyUi(player, "Basic-Panel");
}
}