From efba83b6ed10e2d0fb1a6185e241f7d94937a266 Mon Sep 17 00:00:00 2001 From: icedream Date: Thu, 23 Apr 2015 21:56:23 +0200 Subject: [PATCH] Use the same method Garry's Mod uses to detect key presses. --- lua/autorun/client/prophunt_tauntmenu.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lua/autorun/client/prophunt_tauntmenu.lua b/lua/autorun/client/prophunt_tauntmenu.lua index e552185..1dec223 100644 --- a/lua/autorun/client/prophunt_tauntmenu.lua +++ b/lua/autorun/client/prophunt_tauntmenu.lua @@ -100,7 +100,7 @@ local function CreateMenu() end hook.Add( "PlayerBindPress", "PlayerBindPressFKeyMenus", function(pl, bind, pressed) - if string.find(bind, "gm_showspare2") then + if bind == "gm_showspare2" and pressed then local menu = CreateMenu() if menu ~= nil then menu:Open()