local menushow = false
hook.Add("Think", "ShowUI", function()
if input.IsKeyDown(KEY_INSERT) and !ui:IsVisible() and !menushow then
menushow = true
ui:Show()
elseif input.IsKeyDown(KEY_INSERT) and ui:IsVisible() and !menushow then
menushow = true
ui:Hide()
elseif !input.IsKeyDown(KEY_INSERT) then
menushow = false
end
end)