Fixed tuning issue
This commit is contained in:
@@ -182,10 +182,15 @@ mp.events.add("showTuningMenu", () => {
|
||||
}
|
||||
|
||||
modMenu.ItemSelect.on((selectedItem, index) => {
|
||||
currentModItem.SetRightBadge(BadgeStyle.None);
|
||||
selectedItem.SetRightBadge(BadgeStyle.Car);
|
||||
currentModItem = selectedItem;
|
||||
if (currentModItem !== undefined) {
|
||||
currentModItem.SetRightBadge(BadgeStyle.None);
|
||||
}
|
||||
if (selectedItem !== undefined) {
|
||||
selectedItem.SetRightBadge(BadgeStyle.Car);
|
||||
currentModItem = selectedItem;
|
||||
}
|
||||
mp.events.callRemote("setVehicleMod", modSlot, index);
|
||||
if (index === 0) index = -1;
|
||||
currentMod = index - 1;
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user