This commit is contained in:
kookroach
2021-04-04 19:12:55 +02:00
committed by VegaZ
parent 94270399ba
commit 86f594fc09
5 changed files with 16 additions and 11 deletions

View File

@@ -20,7 +20,7 @@ export default function licenses(globalData: IGlobalData): void {
mp.events.add("CEF:LicenseLoaded", () => {
licenseBrowser.execute(`add_licenses('${JSON.stringify(globalInfo)}');`);
licenseBrowser.execute(`add_licensesholder('${JSON.stringify(globalName)}');`);
licenseTimer = setInterval(DestroyLicenses, 7000);
licenseTimer = setInterval(DestroyLicenses, 15000);
});

View File

@@ -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(() => {