FIX TUNING
This commit is contained in:
@@ -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);
|
var price = getModSlotPrice(modType);
|
||||||
|
|
||||||
|
|
||||||
@@ -327,7 +326,9 @@ export default function tuning(globalData: IGlobalData) {
|
|||||||
mp.events.add("SERVER:Tuning_ModSucessfull", (modType: number, index: number) => {
|
mp.events.add("SERVER:Tuning_ModSucessfull", (modType: number, index: number) => {
|
||||||
currentMod[modType] = index - 1;
|
currentMod[modType] = index - 1;
|
||||||
currentActiveModItem[modType].SetRightLabel("$" + moneyformat(currentSelectedItem.price));
|
currentActiveModItem[modType].SetRightLabel("$" + moneyformat(currentSelectedItem.price));
|
||||||
|
currentActiveModItem[modType].SetRightBadge(NativeUI.BadgeStyle.None);
|
||||||
currentSelectedItem.SetRightBadge(BadgeStyle.Car);
|
currentSelectedItem.SetRightBadge(BadgeStyle.Car);
|
||||||
|
currentSelectedItem.SetRightLabel("");
|
||||||
currentActiveModItem[modType] = currentSelectedItem;
|
currentActiveModItem[modType] = currentSelectedItem;
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user