add real names of clothes and hair styles

This commit is contained in:
michael.reiswich
2021-01-27 21:47:59 +01:00
parent 0678e19a7f
commit f693f3ac66
2 changed files with 6 additions and 6 deletions

View File

@@ -178,13 +178,13 @@ export default function clotheShopList(globalData: IGlobalData) {
var txData = getClothingName(key, item.ClotheId, gender); var txData = getClothingName(key, item.ClotheId, gender);
for (const x of txData) { for (const x of txData) {
//var itemDescription = (key === 11 ? mp.game.ui.getLabelText(x.undershirt[1].GXT) : "Clothing item."); var itemDescription = (key === 11 ? mp.game.ui.getLabelText(x.undershirt[1].GXT) : "Clothing item.");
var itemDescription = (key === 11 ? x.undershirt[1].GXT + " - " + x.id: "Clothing item."); //var itemDescription = (key === 11 ? x.undershirt[1].GXT + " - " + x.id: "Clothing item.");
if (itemDescription == "NULL") { if (itemDescription == "NULL") {
itemDescription = "Clothing item."; itemDescription = "Clothing item.";
} }
//const tempItem = new UIMenuItem(mp.game.ui.getLabelText(x.data[0].GXT), itemDescription); const tempItem = new UIMenuItem(mp.game.ui.getLabelText(x.data[0].GXT), itemDescription);
const tempItem = new UIMenuItem(x.data[0].GXT + " - " + x.id , itemDescription); //const tempItem = new UIMenuItem(x.data[0].GXT + " - " + x.id , itemDescription);
tempItem.SetRightLabel(`${item.Price > 0 ? `$${item.Price}` : "FREE"}`); tempItem.SetRightLabel(`${item.Price > 0 ? `$${item.Price}` : "FREE"}`);

View File

@@ -116,8 +116,8 @@ export default function friseurShopList(globalData: IGlobalData) {
if (itemDescription == "NULL") { if (itemDescription == "NULL") {
itemDescription = "Clothing item."; itemDescription = "Clothing item.";
} }
//const tempItem = new UIMenuItem(mp.game.ui.getLabelText(x.data[0].GXT), itemDescription); const tempItem = new UIMenuItem(mp.game.ui.getLabelText(x.data[0].GXT), itemDescription);
const tempItem = new UIMenuItem(x.data[0].GXT + " - " + x.id, itemDescription); //const tempItem = new UIMenuItem(x.data[0].GXT + " - " + x.id, itemDescription);
tempItem.SetRightLabel(`${item.Price > 0 ? `$${item.Price}` : "FREE"}`); tempItem.SetRightLabel(`${item.Price > 0 ? `$${item.Price}` : "FREE"}`);