F2 Hook

I’m having troubles, These hooks never seem to get called, they are in cl_init.lua:

[lua]
function RP._ShowF2( ply )
ply:SendLua(“RP.ShowInventoryMenu()”)

return false

end
hook.Add(“ShowTeam”, “RP_ShowF2”, RP._ShowF2)

function RP._ShowF3( ply )
ply:SendLua(“RP.PropProtectionMenu()”)

return false

end
hook.Add(“ShowSpare1”, “RP_ShowF3”, RP._ShowF3)
[/lua]

No errors, what am I doing wrong?

There’s no need to return anything.

Wouldn’t using concommands be better though? Or usermessages?

Okay, I’ll try that

[editline]17th July 2011[/editline]

Doesn’t work, my hooks arn’t even getting called

[editline]17th July 2011[/editline]

Fixed, It was running on the client by accident.