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 2f0513a934
commit 2a2388f929
3 changed files with 8 additions and 6 deletions

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()