Add globalData.InMenu to InputHelpers
This commit is contained in:
@@ -91,6 +91,7 @@ export default function business(globalData: IGlobalData) {
|
||||
|
||||
bankMenu.ItemSelect.on((item, index) => {
|
||||
if (item === depositItem) {
|
||||
globalData.InInput = true;
|
||||
var depositInput = new InputHelper("Wie viel Geld möchtest du auf deine Businesskasse einzahlen?", globalData);
|
||||
depositInput.show();
|
||||
depositInput.getValue((data) => {
|
||||
@@ -100,11 +101,13 @@ export default function business(globalData: IGlobalData) {
|
||||
return;
|
||||
}
|
||||
|
||||
globalData.InInput = false;
|
||||
mp.events.callRemote('Business_DepositMoney', amount);
|
||||
|
||||
mainMenu.Close();
|
||||
});
|
||||
} else if (item === withdrawItem) {
|
||||
globalData.InInput = true;
|
||||
var withdrawInput = new InputHelper("Wie viel Geld möchtest du von deiner Businesskasse abheben?", globalData);
|
||||
withdrawInput.show();
|
||||
withdrawInput.getValue((data) => {
|
||||
@@ -113,7 +116,7 @@ export default function business(globalData: IGlobalData) {
|
||||
mp.game.graphics.notify('~r~Du musst eine Nummer eingeben!');
|
||||
return;
|
||||
}
|
||||
|
||||
globalData.InInput = false;
|
||||
mp.events.callRemote('Business_WithdrawMoney', amount);
|
||||
|
||||
mainMenu.Close();
|
||||
|
||||
Reference in New Issue
Block a user