Creating a console command?Solved
Hi guys, I wrote a small plugin that should create a picture and a button when writing a command to the console. But the problem is that when I write the command to the console, nothing happens. What am I doing wrong? Tried writing [ConsoleCommand] and just [Command], but nothing worked. I attach the code below.
        [ConsoleCommand("menuify")]
        private void cmdOpen(BasePlayer player)
        {
            CuiHelper.AddUi(player, cui_openMore);
        }​
Console Command requires argument ConsoleSystem.Arg, Chat Command for BasePlayer. If you are using Covalence Plugin simply use Command with IPlayer, then iplayer.Object as BasePlayer.
thx!!
Locked automatically