diff --git a/addons/screenshotMode/functions/fn_toggleDuiHud.sqf b/addons/screenshotMode/functions/fn_toggleDuiHud.sqf index 487c838b..e8397d8c 100644 --- a/addons/screenshotMode/functions/fn_toggleDuiHud.sqf +++ b/addons/screenshotMode/functions/fn_toggleDuiHud.sqf @@ -1,7 +1,4 @@ params ["_stateChange"]; -if (_stateChange) then { - diwako_dui_main_toggled_off = true; -}else{ - diwako_dui_main_toggled_off = false; -}; +diwako_dui_main_toggled_off = !_stateChange; +