fix servercrash taxifahrer
This commit is contained in:
@@ -33,6 +33,13 @@ export default function taximeterInput(globalData: IGlobalData) {
|
||||
myVar = setInterval(myTimer, 100);
|
||||
});
|
||||
|
||||
mp.events.add('CLIENT:stopFare', () => {
|
||||
browser.destroy()
|
||||
browser = null;
|
||||
globalData.InInput = false;
|
||||
return;
|
||||
});
|
||||
|
||||
function myTimer() {
|
||||
if (totalPrice == lastPrice) return;
|
||||
let payPrice = +totalPrice - +lastPrice;
|
||||
|
||||
@@ -51,6 +51,7 @@ export default function (globalData: IGlobalData) {
|
||||
mp.events.callRemote("CLIENT:Job_StartJob");
|
||||
} else if (index === 1) { // Job stoppen
|
||||
mp.events.callRemote("CLIENT:Job_StopJob");
|
||||
mp.events.callRemote("CLIENT:stopFare");
|
||||
} else {
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user