start car shop

This commit is contained in:
hydrant
2018-12-20 22:20:19 +01:00
parent b16ed270c2
commit 9f9d84f383
14 changed files with 144 additions and 70 deletions

View File

@@ -68,8 +68,10 @@ mp.events.add("toggleUi", (show) => {
// return ('$' + num.toFixed(2).replace('.', ',').replace(/(\d)(?=(\d{3})+(?!\d))/g, '$1.'));
//}
const moneyFormat = require("moneyformat");
mp.events.add("updateMoney", (money) => {
playerMoney = money.toLocaleString("de-DE", { minimumFractionDigits: 0 });
playerMoney = moneyFormat(money);
});
mp.events.add("render", () => {