Add Paycheck to interaction menu

This commit is contained in:
hydrant
2019-07-30 19:05:49 +02:00
parent db005f30fc
commit 933760d773
6 changed files with 74 additions and 8 deletions

View File

@@ -46,6 +46,7 @@
this.browser.destroy();
this.data.InInput = false;
this.created = false;
this.browser = null;
}
}
@@ -60,9 +61,10 @@
private valueGetter(): Promise<string> {
return new Promise(resolve => {
setInterval(() => {
if (this.value !== undefined) resolve(this.value);
}, 50);
while (this.value !== undefined) {
mp.game.wait(1);
}
resolve(this.value);
});
}