playersay doesnt work..

I tried the playersay hook, and it does not work.
Does anyone know if evovle, ulx or DARKRP conflicts wich this hook?


Even when i copy paste this it does not work
function ISaid( ply, text, team, death )
if (string.sub(text, 1, 4) == “/all”) then–if the first 4 letters are /all continue
return “[Global]”…string.sub( text, 5 );–add [Global] infront of the players text then display
hook.Add( “PlayerSay”, “ISaid”, ISaid );

Are you using this Serverside?


It should work then

Why not use **[Gamemode.OnPlayerChat](** on the client?

ULX would not interfere with a hook like that.

Also this does not work:
function FirstSpawn( ply )

ply:PrintMessage(HUD_PRINTCENTER,"tes tes")


hook.Add( “PlayerInitialSpawn”, “playerInitialSpawn”, FirstSpawn )

mmh, what am I doing wrong? I have included a axe.lua in the init.lua of darkrp. I even placed this at the init.lua of darkrp, why doesn;'t it work?