General > Developers Corner
Hook - OnPlayerChat
Decicus:
Did you put the function inside lua/autorun/server?
PlayerSay is a serverside hook, therefore it needs to be put into the serverside Lua section.
Zmaster:
No I had it in lua/autorun/client
Moved it to lua/autorun/server and it works fine now, thanks for the help, guys :)
Zmaster:
Unlocking this thread for a quick question;
concommand.Add is serverside right?
Decicus:
concommand.Add is shared (both client and server).
Zmaster:
Oh, alright, thanks again :P
Navigation
[0] Message Index
[*] Previous page
Go to full version