• Chat commands stoped working.
    8 replies, posted
Hello, every one. I had some sort of problem, with chat and chat commanders. For about one month ago access to ulx and addons like awarn for excample, via chat stoped working. In other words any commands starting from "!" or "/" wont work. We tryed changing chat, even moving back to default one, we tried to re-install addons aswell as using default clean lua folder, but nothing working. Problem appeared really suddenly, without installing any new addons\mods. Maybe someone can help me finding out whats happened and possible ways to fix this problem. Thx for the help.
These things don't just happen out of the blue. Are you sure you didn't modify anything related to GM/PlayerSay?
Nope, nothing at all. We didnt change anything in gamemode itself, aswell as I mentioned we tried to use vannila lua folder and also removing all addons, nothing seems to work for some reason.
If it's not working - it's one of your addons. You tried to re-install and remove all your addons, but you didn't try to disable them one by one?
Well, if you tried to re-install and remove all addons, reinstall your Garry's Mod, should work!
What? No. Did you even read his original problem?
hook.Add("PlayerSay", "neverdothis", function(sen, txt, tm) if string.sub(txt, 1, 1) == "!" then return "" end if string.sub(txt, 1, 1) == "/" then return "" end end ) Even something as destructive as this might not completely kill the functionality of the chat commands. There is no specific order that hooks are called in, unless of course you are a monster and do this. function GM:PlayerSay(sen, txt, tm) return txt end But the intention of this is pretty direct, and would span over just chat commands. Pretty backdoory.
Thats correct, but its odd that this problem appeared out of nowhere with no warning according to him. Surely if it is just shit code that manages to get run first because of hook behaviour, the chat command would work after some server restarts and more attempts at the command. Since he didn't modify any gamemode files, the GM.PlayerSay wouldn't apply here. I wouldn't know what to do to fix this other than checking each addon one by one or get all the PlayerSay hooks and check them out.
Well after browsing both gamemode aswell as all addons\lua, found nothing regarding anything which would be close to PlayerSay, sadly. I think I should start removing everything ones again manually. Seems to be the only option here.
Sorry, you need to Log In to post a reply to this thread.