Just server sided code is only executed while hosting a server, yet client sided code is executed for the duration of the game, and not executed at all if you host a dedicated server.
For a client function do this:function clientCmdWHATEVERstuffHERE(%client){