См. определение в файле PluginDeveloper.c строка 820
Перекрестные ссылки GetGame(), UIManager::GetMenu(), CGame::GetUIManager() и MENU_SCRIPTCONSOLE.