Cant get SendLua to work

Iv been trying to SendLua to the client so it will open a derma menu and display some stats but Im getting the error:
[Lua][LuaCmd:1] attempt to call method ‘StatsMenu’ (a nil value)[/Lua]
I dumbed down the function so it will just call it then the called function will just print a string. Im still getting the same error, what am I doing wrong?

ServerSide:
[Lua]
function GM:SendStats()
for _,ply in pairs(player.GetAll()) do
ply:SendLua(“GAMEMODE:StatsMenu()”)
end
end
[/Lua]

ClientSide:
[Lua]
function GM:StatsMenu()
print(“test”)
end
[/Lua]

You don’t want to be using SendLua. Use a usermessage instead.

Ok I tried it, and I get this error:
[Lua]Warning: Unhandled usermessage ‘SendStats’
[/Lua]

ServerSide:
[Lua]
function GM:SendStats()
for _,ply in pairs(player.GetAll()) do
SendUserMessage(“SendStats”, ply)
end
end
[/Lua]

ClientSide:
[Lua]
function StatsMenu()
print(“test”)
end
usermessage.Hook(“SendStats”, StatsMenu)
[/Lua]

just for interest why use usermessage instead of sendlua?

Much more efficient

Never mind I fixed it I was being dumb

Use the proper usermessages please, eg. the umsg library.