Hello,
I just updated gmod on my server.
since the update I have a message when players connect to the server (Player Valou has joined the game)
i want to hide this message
anyone can help me ?
GM/ChatText
So can confirm that I tried all of these:
[Lua]
And none of them worked for me. So I have no idea now how to override this and it's really frustrating.
Firstly, I want to know, do you use any kind of custom chat? (Like Atlas or SH, etc..)
I have HatsChat which does have a ChatText hook but I've been using HatsChat for over a year and a half now and this join message issue hasn't come up until the update.
--Addon: HatsChat2
--[[Location: cl_init.lua (line: 888)]]--
local function ChatText( plyind, plyname, str, typ )
--[[if typ=="joinleave" then
local pnl = HatsChat:AddLine( ChatTextCol.JoinLeave, str )
if IsValid(pnl) then pnl.LineIcon = Material(HatsChat.LineIcon.Global) end
else
local pnl = HatsChat:AddLine( ChatTextCol.Default, str )
if IsValid(pnl) then pnl.LineIcon = Material(HatsChat.LineIcon.Global) end
end
]]
if ( typ == "joinleave" ) then return true end
end
hook.Add( "ChatText", "HatsChat2 AddLine ChatText", ChatText )
I tried that as well but it didn't seem to work. I can see if it works again in a few moments but I tried adding a flag to the hook last night as well and that didn't seem to work either.
Sorry, you need to Log In to post a reply to this thread.