Making a command that runs the act command

Hello there, I need you guys’ help.

I can figure out how to do the thing in the title, but I don’t know how to make the text hide. Here’s the part of my code:



hook.Add( "OnPlayerChat", "GestureMenu_Commands", function( ply, text, team, ded )
    
    if text == string.sub(text, 1, 7) == "/comeon" then


Literally, check on player chat if the player started his message by “/comeon” then do…
But I admit if I add RunConsoleCommand(args) it will still show the command in the chat, right?

How do I hide the message?

Thanks for your help.

return “”


hook.Add( "OnPlayerChat", "GestureMenu_Commands", function( ply, text, team, ded )
    
    if text == string.sub(text, 1, 7) == "/comeon" then
         -- Rest of your code here
          return ""


Return true to suppress the chat.

Also, check if ply is LocalPlayer before doing the act.

Return stops at that point. Anything else after it would not run.