Chat commands

I would like to make a chat command like “/command” that say “/me made a command”

I’ve tried this but it seems not working :

If anyone can help me please !

The first problem is that you are using runconsolecommand on the server instead of sending the command to the client. You should also handle detecting the string for the command better. /me only works on client chat

You should use Say() instead.

hook.Add("PlayerSay", "new_command", function(ply, text)
  if(string.lower(text) == "/command") then
      ply:Say("/me made a command")

ok thank you i gonna try it tommorrow i will tell you if it works or not