FIX TUNING

This commit is contained in:
hydrant
2021-04-02 22:07:38 +02:00
parent 3e65964749
commit 899ae65b2c

View File

@@ -226,7 +226,6 @@ export default function tuning(globalData: IGlobalData) {
}
}
mp.gui.chat.push("getting price for modtype = " + modType.toString() + ", modtypename = " + modName);
var price = getModSlotPrice(modType);
@@ -327,7 +326,9 @@ export default function tuning(globalData: IGlobalData) {
mp.events.add("SERVER:Tuning_ModSucessfull", (modType: number, index: number) => {
currentMod[modType] = index - 1;
currentActiveModItem[modType].SetRightLabel("$" + moneyformat(currentSelectedItem.price));
currentActiveModItem[modType].SetRightBadge(NativeUI.BadgeStyle.None);
currentSelectedItem.SetRightBadge(BadgeStyle.Car);
currentSelectedItem.SetRightLabel("");
currentActiveModItem[modType] = currentSelectedItem;
});