push debug clotheshop

This commit is contained in:
Siga
2020-04-05 16:44:16 +02:00
parent 3707158864
commit 6f17ecf88d

View File

@@ -178,11 +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.torso[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);
tempItem.SetRightLabel(`${item.Price > 0 ? `$${item.Price}` : "FREE"}`); tempItem.SetRightLabel(`${item.Price > 0 ? `$${item.Price}` : "FREE"}`);