After gmod got updated, this code stopped working.
hook.Add( "ChatText", "hide_servermsg", function( index, name, text, typ )
if ( typ == "servermsg" ) then return true end
end )
My server hasn't been updated yet, would that make it stop working?
Fire the current code and hire a new one. No one should work with a Code who doesn't want to work. There are plenty of more Codes in this world.
Please don't ban me
It should still work. What file is it in?
It's in lua/autorun
The hook ChatText is clientside
and why is that important? The whole code is clientside
And he's running it shared so that's not the problem.
What's the file name? If it's in 'lua/autorun/' then you need a unique name or other addons could conflict with it and cause it to not load.
Do you use a custom chatbox?
It's has a unique name, but I even put the code in different places and still doesn't work. I'm trying to get rid of the server convar messages if anyone's confused.
I found the problem, it was my code removing the hook.
in no code that you showed us you make any hook.Remove things. so you didnt show us all the code.
Sorry, you need to Log In to post a reply to this thread.