Author Topic: How to make chat command not pop up in chat when typed.  (Read 1687 times)

0 Members and 1 Guest are viewing this topic.

Offline xXPANAGE28

  • Newbie
  • *
  • Posts: 10
  • Karma: 0
How to make chat command not pop up in chat when typed.
« on: February 07, 2014, 03:56:45 PM »
Hello there.
Usually when ever you would send a pm, you would type !p <recipient> <message> then send it, and what you typed wouldn't show up in chat.

Here is my private chat:



And here is my slay:



As you see it shows in chat what i typed for slay but not in pm, and I want it to not show for slay either. Anyone know the line of code required to make it invisible?

Offline Cobalt

  • Full Member
  • ***
  • Posts: 216
  • Karma: 44
  • http://steamcommunity.com/id/__yvl/
Re: How to make chat command not pop up in chat when typed.
« Reply #1 on: February 07, 2014, 05:25:46 PM »
In any ulx command code you will find this:
local var = ulx.command( CATEGORY_NAME, "command_name", function_name, "!chat_command", true )
Add the true at the end to hide the chat message.

Offline xXPANAGE28

  • Newbie
  • *
  • Posts: 10
  • Karma: 0
Re: How to make chat command not pop up in chat when typed.
« Reply #2 on: February 08, 2014, 11:12:49 AM »
Thanks for the help. Problem has been solved!