diff --git a/addons/interact_menu/functions/fnc_keyDown.sqf b/addons/interact_menu/functions/fnc_keyDown.sqf index 1f4bd55247..e7c6815d50 100644 --- a/addons/interact_menu/functions/fnc_keyDown.sqf +++ b/addons/interact_menu/functions/fnc_keyDown.sqf @@ -13,7 +13,9 @@ #include "script_component.hpp" if(!GVAR(keyDown)) then { - closeDialog 0; + while {dialog} do { + closeDialog 0; + }; // Only interact with others if on foot if (vehicle ACE_player != ACE_player) exitWith {}; diff --git a/addons/interact_menu/functions/fnc_keyDownSelfAction.sqf b/addons/interact_menu/functions/fnc_keyDownSelfAction.sqf index f378964d01..ae51d36109 100644 --- a/addons/interact_menu/functions/fnc_keyDownSelfAction.sqf +++ b/addons/interact_menu/functions/fnc_keyDownSelfAction.sqf @@ -13,7 +13,9 @@ #include "script_component.hpp" if(!GVAR(keyDownSelfAction)) then { - closeDialog 0; + while {dialog} do { + closeDialog 0; + }; GVAR(keyDownSelfAction) = true; GVAR(keyDown) = false;