fix ClotheShop

This commit is contained in:
Siga
2020-03-23 19:08:52 +01:00
parent 9d08605bf1
commit 4875e33bf5
2 changed files with 5 additions and 1 deletions

View File

@@ -8,7 +8,6 @@
export default function playerBlips() {
mp.events.add("entityStreamIn", (entity) => {
if (entity.type === "player") {
mp.gui.chat.push(entity.name);
let color = parseInt(entity.getVariable("blipColor"));
if (entity.blip == 0) entity.createBlip(1);
entity.setBlipColor(isNaN(color) ? 0 : color);

View File

@@ -87,6 +87,11 @@ export default function clotheShopList(globalData: GlobalData) {
switch (key) {
case 11:
for (var i = 0; i < Object.keys(tops[ClotheId]).length; i++) {
if (gender) {
if (i = 0)
i++;
}
if (tops[ClotheId][i].Localized != "NULL") {
for (var x = 0; x < Object.keys(comb.combination).length; x++) {
if (comb.combination[x].Top == ClotheId) {