Ability for server owners to hide the chat when triggering an event

request

#1

Hi is it possible to have the ability for server owners to hide the chat when triggering an event.

eg:
/dischat could hide the chat
/enchat would unhide it


Text chat
[Guide] Where Should I Post?
#2

yeah if you make it connect to rcon or something then stop the chat… but then you need a restart to enable it again


#3

you can stop and start the chat resource but history for the chat is gone and certain resources quit working.


#4

This would take like ten minutes to write into the chat resource itself. Just add an event listener for the slash command, have it set a variable, and have the chat check that variable any time you try to open it or it receives a message.


#5

I don’t believe that’s what he’s asking. He’s trying to achieve just a single player hiding the chat when they want. Not the whole server not being able to use it at all.


#6

yes that is what I would love.


#7

Maybe if you trigger an event which would make the chat box 0% visible.


#8

I also would love to hide, or remove some of the chat notifications:

  • Joining and leaving the server (flooding our chat since we are mostly full)

#9

you can remove that in the chat resource


#10

i know this is old, but i moved it to #general-discussion as it really isnt a feature request.


#11

There is a /togglechat script that we run on our server that does this. It hides the chat client side (but does not disable it globally). I forget who’s github we found it on.


#12

Stoned Turtle


#13

Yup! That’s him. I remember the turtle avatar, lol.


#14

bump! anyone got a solution?


#15

As above. Check out the stoned turtles github


#16

i have checked it out, what would the resource be under?


#17

Its the chat resource. He made a fork for the original resource from cfx collective


#18

Hmm i remember a resource exactly like that aswell, cant seem to find it anymore


#19

he might of taken it down.


#20

Oh no, not the british grammar! :joy: