fix: console/chat open still available when menu is open & cleanup

This commit is contained in:
MihailRis
2025-02-16 00:38:33 +03:00
parent 31d5cb6880
commit c7061c70cb
3 changed files with 8 additions and 6 deletions
+2 -2
View File
@@ -330,7 +330,7 @@ function __vc_on_hud_open()
hud._set_debug_cheats(value)
end)
input.add_callback("devtools.console", function()
if hud.is_paused() then
if menu.page ~= "" then
return
end
time.post_runnable(function()
@@ -338,7 +338,7 @@ function __vc_on_hud_open()
end)
end)
input.add_callback("hud.chat", function()
if hud.is_paused() then
if menu.page ~= "" then
return
end
time.post_runnable(function()