diff --git a/ScaleformUI_Lua/src/Menus/UIMenu/UIMenu.lua b/ScaleformUI_Lua/src/Menus/UIMenu/UIMenu.lua index 471943f5..583048f0 100644 --- a/ScaleformUI_Lua/src/Menus/UIMenu/UIMenu.lua +++ b/ScaleformUI_Lua/src/Menus/UIMenu/UIMenu.lua @@ -251,7 +251,7 @@ end ---DisableNonMenuControls ---@param bool boolean function UIMenu:DisableGameControls(bool) - if bool then + if bool ~= nil then self.disableGameControls = bool else return self.disableGameControls