If you are typing in the server console, you use servercmdfunctionnamehere(stuffs);
If you are typing in a client's console that is connected to a server, you use commandtoserver('functionnamehere', stuffs);
If the server is non dedicated and you are the host you can use either one.