Changing a command from chat to console?Solved

I have this command, this command says it requires a BasePlayer but it's not true since it's not used

[ChatCommand("score")]
private void cmdScore(BasePlayer player, string command, string[] args)
{
       CreateMenu();
}

I've tried deleting the BasePlayer, changing the "ChatCommand" to "ConsoleCommand" and "Command" neither of this things worked, it's also used with the RustPlugins library, any ideas on how to change it?

        [ConsoleCommand("score")]
        void ScoreCommand(ConsoleSystem.Arg arg)
        {
               CreateMenu();
        }
It worked, thanks a lot!
Locked automatically