From ecdb2bb11adeb1ca29378bc87d7d3e5e615be1d6 Mon Sep 17 00:00:00 2001 From: hydrant Date: Mon, 5 Apr 2021 02:40:57 +0200 Subject: [PATCH] Revert "try fix chat" This reverts commit 4566865a880a24da0998d544e45befe82aa225e3. --- ReallifeGamemode.Client/index.ts | 16 +++++----------- 1 file changed, 5 insertions(+), 11 deletions(-) diff --git a/ReallifeGamemode.Client/index.ts b/ReallifeGamemode.Client/index.ts index bd9d1d87..91d6b678 100644 --- a/ReallifeGamemode.Client/index.ts +++ b/ReallifeGamemode.Client/index.ts @@ -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;