General > Developers Corner
[H] Removing Connect Messages
Regen:
I was wondering if there is a way to remove the standard connection messages in chat, for some reason my server displays them 2x the amount it should normally when someone connects and I would like it disabled, thanks for your time.
Console:
Ingame:
Different players but the example of what's happening
Timmy:
Certain types of chat messages can be filtered using the ChatText hook. The example below suppresses the default join/leave messages.
--- Code: ----- client-side
hook.Add( "ChatText", "HideJoinLeave", function( index, name, text, type )
if type == "joinleave" then
return true -- suppress
end
end )
--- End code ---
Regen:
Where do I put this? in autorun or?
Timmy:
Any client-side Lua file will do.
For example: (garrysmod)/lua/autorun/client/hidejoinleave.lua
Regen:
The error still persist, if you got a steam contact I could add for help please lmk
Navigation
[0] Message Index
[#] Next page
Go to full version