This is not working... when it should.
[lua]
function HandleChat(ply,txt)
print("lol")
end
hook.Add("OnPlayerChat","EnerChatHandle",HandleChat)
[/lua]
It does nothing, no errors. Its being run clientside.
edit:
Okay so it only works... in singleplayer?
Are you sure it's running? It works fine for me online.
Yeah, i go into any multiplayer server, open that script with lua_openscript_cl and say something, nothing happens.
Maybe the script enforcer is enable so you can't run your script...
Or your going onto a DarkRP server, DarkRP use chat.AddText
[QUOTE=Tobba;22953900]Or your going onto a DarkRP server, DarkRP use chat.AddText[/QUOTE]
Darkrp doesnt break print does it?
No, because i can do lua_run_cl print("Script enforcer is off yay!!!") and it works perfectly. No, it's a sandbox server.
PlayerSay hook?
He is running it Client side and PlayerSay is server :P
ORRRRRRRR seeing as he is trying to run it multiplayer, maybe SE is blocking it
[editline]03:46PM[/editline]
or gmod has another bug
[editline]03:46PM[/editline]
BUTTTTTT ..... a bug is just a useless feature!!!!
[editline]03:47PM[/editline]
I think we found gmod's easter egg!!
He has proved SE is off, and i doubt its an easter egg and thejokerr got it to work too, im guessing he hasnt posted his whole lua file to use.
Maybe some other hook that is called before it returns something stopping it from being called at all?
[QUOTE=ralle105;23010380]Maybe some other hook that is called before it returns something stopping it from being called at all?[/QUOTE]
this
Sorry, you need to Log In to post a reply to this thread.