Fixed money display #1

This commit is contained in:
hydrant
2018-10-20 17:51:03 +02:00
parent 36b3a56401
commit 30ada7aeda
3 changed files with 21 additions and 3 deletions

View File

@@ -47,6 +47,10 @@ mp.events.add("draw", (pName, pId) => {
// return ('$' + num.toFixed(2).replace('.', ',').replace(/(\d)(?=(\d{3})+(?!\d))/g, '$1.'));
//}
mp.events.add("updateMoney", (money) => {
playerMoney = money;
});
mp.events.add("render", () => {
if (draw === true) {
@@ -119,7 +123,6 @@ mp.events.add("render", () => {
dateString = nDay + ". " + nMonth + " " + year;
timeString = nHour + ":" + nMinute + ":" + nSecond + " Uhr";
playerMoney = mp.players.local.getVariable("money");
mp.game.graphics.requestStreamedTextureDict("digitaloverlay", true);
//static