This is a mobile optimized page that loads fast, if you want to load the real page, click this text.

Мануал FAQ -----------------------------------

14 Сен 2020
48
-42
82
---------------------------------
 
Последнее редактирование:

shaz3ro

Новый участник
15 Сен 2020
10
0
20
Спасибо !, как заменит кнопку показа ?
 

filecore

Начинающий специалист
BackEnd developer
6 Окт 2020
227
74
82
Спасибо !, как заменит кнопку показа ?
в гите в index
Код:
mp.keys.bind(KEYCODE_Z, false, async () => {
    if (mp.players.local.isTypingInTextChat) {
        return;
    }

    playerListCurPage = DEFAULT_PAGE;

    if (playerListOpen) {
        if (cardScaleform) {
            cardScaleform.dispose();
            cardScaleform = null;
        }

        mp.gui.chat.show(true);
        mp.game.audio.playSoundFrontend(-1, CLOSE_SOUND_NAME, CARD_SOUNDSET_NAME, true);
    } else {
        mp.gui.chat.show(false);

        playerList = mp.players.toArray();
        playerList.sort((a, b) => a.remoteId - b.remoteId); // Not even sure if needed, just in case
        playerListMaxPage = Math.ceil(playerList.length / PLAYERS_PER_PAGE);

        // Load the scaleform
        cardScaleform = await Scaleform.request("mp_mm_card_freemode");

        // Update scaleform
        updateTitle();
        updateCard();

        // Play sound effect
        mp.game.audio.playSoundFrontend(-1, OPEN_SOUND_NAME, CARD_SOUNDSET_NAME, true);
    }

    playerListOpen = !playerListOpen;
});

ТС исправь ты два раза по факту один и тот же скрипт в тег code взял(=
 

shaz3ro

Новый участник
15 Сен 2020
10
0
20

Написал вот так:
mp.keys.bind(KEYCODE_Tab, false, async () => {
if (mp.players.local.isTypingInTextChat) {
return;

Как написно вот тут: click
Потому что с этом не сроботало: VK_TAB