diff --git a/ReallifeGamemode.Client/core/rage-mp/game.ts b/ReallifeGamemode.Client/core/rage-mp/game.ts index 5094ba9f..62c9661a 100644 --- a/ReallifeGamemode.Client/core/rage-mp/game.ts +++ b/ReallifeGamemode.Client/core/rage-mp/game.ts @@ -11,7 +11,7 @@ export default class RageGame implements IGame { ui: IUi = new RageUi; wait(ms: number): void { - mp.game.wait(ms); + mp.game.waitAsync(ms); } disableDefaultEngineBehaviour(): void { diff --git a/ReallifeGamemode.Client/inputhelper/index.ts b/ReallifeGamemode.Client/inputhelper/index.ts index ce216572..5898bd5c 100644 --- a/ReallifeGamemode.Client/inputhelper/index.ts +++ b/ReallifeGamemode.Client/inputhelper/index.ts @@ -69,7 +69,7 @@ export default class InputHelper { private valueGetter(): Promise { return new Promise(resolve => { while (this.value === undefined) { - mp.game.wait(1); + mp.game.waitAsync(1); } resolve(this.value); });