Merge branch 'develop' of ssh://development.life-of-german.org:451/log-gtav/reallife-gamemode into develop
This commit is contained in:
@@ -34,12 +34,9 @@ export default function taximeterInput(globalData: GlobalData) {
|
||||
});
|
||||
|
||||
function myTimer() {
|
||||
mp.gui.chat.push("" + totalPrice);
|
||||
//if (mp.players.local.vehicle.getNumberOfPassengers() == 0) return;
|
||||
if (totalPrice == lastPrice) return;
|
||||
let payPrice = +totalPrice - +lastPrice;
|
||||
lastPrice = totalPrice;
|
||||
mp.gui.chat.push("" + totalPrice);
|
||||
mp.events.callRemote("SERVER:payFare", payPrice, lastkilometer);
|
||||
}
|
||||
|
||||
@@ -57,7 +54,6 @@ export default function taximeterInput(globalData: GlobalData) {
|
||||
});
|
||||
|
||||
mp.events.add("CLIENT:updateFare", (km) => {
|
||||
mp.gui.chat.push("" + lastkilometer)
|
||||
browser.execute(`updateKilometer('${JSON.parse(km)}')`)
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user