Skip to content

Commit

Permalink
Merge pull request #27 from carmineos/master
Browse files Browse the repository at this point in the history
Avoid disabling MenuToggleKey
  • Loading branch information
TomGrobbe authored May 13, 2020
2 parents 19431f2 + 17174de commit 0a8be0d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion MenuAPI/MenuController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -458,11 +458,11 @@ private async Task ProcessToggleMenuButton()
{

#if FIVEM
Game.DisableControlThisFrame(0, MenuToggleKey);
if (!Game.IsPaused && !IsPauseMenuRestarting() && IsScreenFadedIn() && !IsPlayerSwitchInProgress() && !Game.Player.IsDead && !DisableMenuButtons)
{
if (IsAnyMenuOpen())
{
Game.DisableControlThisFrame(0, MenuToggleKey);
if (Game.CurrentInputMode == InputMode.MouseAndKeyboard)
{
if ((Game.IsControlJustPressed(0, MenuToggleKey) || Game.IsDisabledControlJustPressed(0, MenuToggleKey)) && !PreventExitingMenu)
Expand Down

0 comments on commit 0a8be0d

Please sign in to comment.