TTT: Zed time change key?

How can i change the key in zedtime from phys gun to a key on your keyboard? I tried replaced phys_gun with h but it doesnt work, instead its moved to D, the right walking key.

hook.Add(“PlayerBindPress”, “PlayerBindPressZedTime”, function(ply,key,pressed)
if string.find(string.lower(key), “h”) and pressed then
askZedTime()
end
end)

Player bind press doesn’t get called when a key is pressed, it is called when a console command is executed by pressing a key.

You might want to try http://wiki.garrysmod.com/page/PANEL/OnKeyCodePressed

Oh, and by the way, this section is not for coding Help & Support, this one is: http://facepunch.com/forumdisplay.php?f=65

Oh. Thanks, ill be sure to post it there instead next time

[editline]18th December 2013[/editline]

Not working i replaced h with KEY_E and when i press e, nothing happens

can somebody help me out? :downs: