Oops, it was "Hide", not "Close".

master
Icedream 2015-04-23 22:16:19 +02:00
parent 8a5b486441
commit 21d3019a2d
1 changed files with 1 additions and 1 deletions

View File

@ -103,7 +103,7 @@ end
hook.Add( "PlayerBindPress", "PlayerBindPressFKeyMenus", function(pl, bind, pressed) hook.Add( "PlayerBindPress", "PlayerBindPressFKeyMenus", function(pl, bind, pressed)
if bind == "gm_showspare2" and pressed then if bind == "gm_showspare2" and pressed then
if lastMenu ~= nil then if lastMenu ~= nil then
lastMenu:Close() lastMenu:Hide()
end end
lastMenu = CreateMenu() lastMenu = CreateMenu()
if lastMenu ~= nil then if lastMenu ~= nil then