Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- hook.Add("Think", "HookKeyManagement", function()
- for i=1, 159 do
- if(!vgui.CursorVisible) then break; end;
- if(input.WasKeyPressed(i)) then
- hook.Call("KeyPressed", nil, i);
- end;
- if(input.WasKeyReleased(i)) then
- hook.Call("KeyReleased", nil, i);
- end;
- end;
- end);
- hook.Add("KeyReleased", "TestShiftBlablabla", function(Key)
- if(Key == KEY_LSHIFT) then
- print("hello world")
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement