From 066c47d209778ec3f4f4abf0ba8e167c80bacd6a Mon Sep 17 00:00:00 2001 From: kookroach <62265045+kookroach@users.noreply.github.com> Date: Sun, 4 Apr 2021 19:12:55 +0200 Subject: [PATCH] fix --- ReallifeGamemode.Client/Interaction/clothes/ClotheShop.ts | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/ReallifeGamemode.Client/Interaction/clothes/ClotheShop.ts b/ReallifeGamemode.Client/Interaction/clothes/ClotheShop.ts index 4aef566b..a34b8665 100644 --- a/ReallifeGamemode.Client/Interaction/clothes/ClotheShop.ts +++ b/ReallifeGamemode.Client/Interaction/clothes/ClotheShop.ts @@ -183,8 +183,7 @@ export default function clotheShopList(globalData: IGlobalData) { var txData = getClothingName(key, item.ClotheId, gender); - mp.gui.chat.push('Key ' + key); - mp.gui.chat.push(item); + if (txData != undefined && txData.length > 0) { categoryMenu.AddItem(new UIMenuItem(mp.game.ui.getLabelText(txData[0].data[0].GXT), "")); @@ -419,7 +418,7 @@ export default function clotheShopList(globalData: IGlobalData) { nextMenu.Visible = true; menuTransition = true; - submenuItemChangeHandler(nextMenu.menu.CurrentSelection); + // submenuItemChangeHandler(nextMenu.menu.CurrentSelection); }); mainMenu.MenuClose.on(() => { @@ -449,7 +448,7 @@ export default function clotheShopList(globalData: IGlobalData) { nextMenu.menu.Visible = true; menuTransition = true; - //submenuItemChangeHandler(nextMenu.menu.CurrentSelection); + submenuItemChangeHandler(nextMenu.menu.CurrentSelection); }); categoryMenu.MenuClose.on(() => {