• KeyPress not responding to F Keys, PlayerBindPress not working at all.
    1 replies, posted
Someone please help me out here, i'm not getting any errors and i'm not even getting the hello printed when i press the F keys :/ The KeyPressed function works completely fine besides my if statement :? but for some reason the pbp function doesn't do anything. [CODE]function KeyPressed(ply, key) ply:ChatPrint(tostring(key)) if key == KEY_F3 then ply:ChatPrint('test') end end hook.Add( "KeyPress", "KeyPressedHook", KeyPressed ) function pbp(ply, bind, press) ply:ChatPrint('Hello') ply:ChatPrint(tostring(bind)) end hook.Add('PlayerBindPress', 'pbp', pbp)[/CODE]
Are you sure you are creating those hooks in correct realms? As far as I can remember PlayerBindPress was clientside only.
Sorry, you need to Log In to post a reply to this thread.