Revert "try fix chat"

This reverts commit 4566865a88.
This commit is contained in:
hydrant
2021-04-05 02:40:57 +02:00
parent 9e3379dfc0
commit ecdb2bb11a

View File

@@ -7,18 +7,12 @@
import { IGame } from './game';
import RageGame from './core/rage-mp/game';
(async () => {
await mp.game.waitAsync(2500);
// Disables default RageMP Chat
mp.gui.chat.show(false);
// Disables default RageMP Chat
mp.gui.chat.show(false);
// Initialize chatbox CEF, mark it as default server chat
const chatbox = mp.browsers.new('package://assets/chat/index.html');
await mp.game.waitAsync(2500);
chatbox.markAsChat();
})();
// Initialize chatbox CEF, mark it as default server chat
const chatbox = mp.browsers.new('package://assets/chat/index.html');
chatbox.markAsChat();
var inMenu: boolean = false;