Add Paycheck to interaction menu
This commit is contained in:
@@ -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);
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user