# Enable/Disable Hotkey

Grammardisable|Enable/Disable hotkey for playerGroup
FlagsNative | Action | Restricted

Enables or disables a specific hotkey command.

# Arguments

Returns — void

native void UISetHotkeyAllowed(
	playergroup players,
	int hotkey,
	bool allow,
);

Category: UI / Game UI

# Examples

mods/core.sc2modbase.sc2data/TriggerLibs/NativeLib.galaxy:2035

        }

        UISetHotkeyAllowed(lv_validPlayers, c_hotkeyCameraFollow, false);
        libNtve_gf__CineModeTurnOnOffForPlayerGroup(lv_validPlayers, true);
        libNtve_gf__CineModeHideUI(lv_validPlayers);

mods/core.sc2modbase.sc2data/TriggerLibs/NativeLib.galaxy:2122

        }
        UIFlyerHelperClearOverride(lv_validPlayers);
        UISetHotkeyAllowed(lv_validPlayers, c_hotkeyCameraFollow, true);
        TriggerSendEvent("CinematicModeOff");
    }

mods/core.stormmodbase.stormdata/TriggerLibs/NativeLib.galaxy:1725

        }

        UISetHotkeyAllowed(lv_validPlayers, c_hotkeyCameraFollow, false);
        libNtve_gf__CineModeTurnOnOffForPlayerGroup(lv_validPlayers, true);
        libNtve_gf__CineModeHideUI(lv_validPlayers);

mods/core.stormmodbase.stormdata/TriggerLibs/NativeLib.galaxy:1812

        }
        UIFlyerHelperClearOverride(lv_validPlayers);
        UISetHotkeyAllowed(lv_validPlayers, c_hotkeyCameraFollow, true);
        TriggerSendEvent("CinematicModeOff");
    }

mods/heroesdata.stormmodbase.stormdata/TriggerLibs/StartingExperienceLib.galaxy:701

        UISetFrameVisible(lv_validPlayers, c_syncFrameTypeTextTag, true);
        if ((libCore_gv_sYSGameMode == libCore_ge_GameModes_Tutorial1Deprecated)) {
            UISetHotkeyAllowed(PlayerGroupAll(), c_hotkeyCameraFollow, false);
        }

mods/starcoop/starcoop.sc2modbase.sc2data/LibCOMI.galaxy:774

    }

    UISetHotkeyAllowed(lv_validPlayers, c_hotkeyCameraFollow, false);
    libNtve_gf__CineModeTurnOnOffForPlayerGroup(lv_validPlayers, true);
    libNtve_gf__CineModeHideUI(lv_validPlayers);

mods/starcoop/starcoop.sc2modbase.sc2data/LibCOUI.galaxy:1770

    // Implementation
    libCOUI_gf_CU_CustomMutatorUpdateData();
    UISetHotkeyAllowed(PlayerGroupAll(), c_hotkeyMenuAchievements, true);
    SoundChannelMute(PlayerGroupAll(), c_soundCategoryAmbient, false);
    SoundChannelMute(PlayerGroupAll(), c_soundCategoryDoodad, false);

mods/starcoop/starcoop.sc2modbase.sc2data/LibCOUI.galaxy:2015

    libCOUI_gf_CU_CustomMutatorInitFromData();
    UISetFrameVisible(PlayerGroupAll(), c_syncFrameTypeMenuBar, true);
    UISetHotkeyAllowed(PlayerGroupAll(), c_hotkeyMenuAchievements, false);
    DialogControlSetVisible(libCOUI_gv_cU_CustomMutatorChatDisplayStandard, PlayerGroupAll(), false);
    DialogSetVisible(libCOUI_gv_cU_CustomMutatorDialog, PlayerGroupAll(), true);