This commit is contained in:
kookroach
2021-04-05 00:48:35 +02:00
9 changed files with 19 additions and 20 deletions

View File

@@ -2,7 +2,7 @@
import game from "..";
const maxDistance = 25 * 25;
const maxDistance = 40 * 40;
const width = 0.03;
const height = 0.0065;
const border = 0.001;

View File

@@ -73,7 +73,6 @@ class RagePlayer extends RageEntity implements IPlayer {
get nametagColor(): number {
var color = this.player.getVariable("nameTagColor");
game.ui.sendChatMessage(`player = ${this.player.name} - color = ${color}`);
if (!color)
return 0;
return color;

View File

@@ -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 {

View File

@@ -69,7 +69,7 @@ export default class InputHelper {
private valueGetter(): Promise<string> {
return new Promise(resolve => {
while (this.value === undefined) {
mp.game.wait(1);
mp.game.waitAsync(1);
}
resolve(this.value);
});