Well, the way a gui is set up is that when you click a button, you want it to send a commandToServer() to the server. The server recieves it as a slash command, and it starts by default with the %client. The server can then send a commandToClient() back.