I know this is already a think, but im not sure if its a script cause I have looked for it for a while now and I cant find anything. I went into the server files and looked at the Default chat to see if I could change anything, but I didn’t find anything. Could someone please help

1 Like

This is already a part of the default chat resource, but is not implemented. You just need to trigger the chat:clear client event.

Can you be more specific about that?

Are you talking about removing the chat history from the popup or making the popup transparent instead of that blue-ish background?

Transparent (20 characters)

Oh. The chat window style is handled in lines 32-41 of [system]\chat\html\index.css:

.chat-window {
  position: absolute;
  top: 15px;
  left: 15px;
  width: 38%;
  height: 240px;

  background-color: rgba(52, 73, 94, 0.7);
  -webkit-animation-duration: 2s;
}

Probably the easiest is just changing the alpha value from 0.7 to 0.0 for the background-color (background-color: rgba(52, 73, 94, 0.0);). Removing background-color all together may also work, since it defaults to transparent unless it inherits it from somewhere else.
https://www.w3schools.com/CSSref/pr_background-color.asp

2 Likes

SaltyGrampa beats me to the punch.

I’d set 0.7 to 0 and put a /* a = 0.7 */ comment so you can fix it later if needed.

Didn’t work https://i.gyazo.com/bb68fc9ea70bf791755428a361d244d8.png

Just remove that background color property entirely.

To properly remove it completely you need to remove it from the js code

color = color, transparent;

Does that have to do with anything

Thanks man, I appreciate it

didnt remove it by setting the 0.7 to 0.0 for me in line 39.

3 Likes

how would i trigger the event