fix ClotheShop
This commit is contained in:
@@ -8,7 +8,6 @@
|
|||||||
export default function playerBlips() {
|
export default function playerBlips() {
|
||||||
mp.events.add("entityStreamIn", (entity) => {
|
mp.events.add("entityStreamIn", (entity) => {
|
||||||
if (entity.type === "player") {
|
if (entity.type === "player") {
|
||||||
mp.gui.chat.push(entity.name);
|
|
||||||
let color = parseInt(entity.getVariable("blipColor"));
|
let color = parseInt(entity.getVariable("blipColor"));
|
||||||
if (entity.blip == 0) entity.createBlip(1);
|
if (entity.blip == 0) entity.createBlip(1);
|
||||||
entity.setBlipColor(isNaN(color) ? 0 : color);
|
entity.setBlipColor(isNaN(color) ? 0 : color);
|
||||||
|
|||||||
@@ -87,6 +87,11 @@ export default function clotheShopList(globalData: GlobalData) {
|
|||||||
switch (key) {
|
switch (key) {
|
||||||
case 11:
|
case 11:
|
||||||
for (var i = 0; i < Object.keys(tops[ClotheId]).length; i++) {
|
for (var i = 0; i < Object.keys(tops[ClotheId]).length; i++) {
|
||||||
|
if (gender) {
|
||||||
|
if (i = 0)
|
||||||
|
i++;
|
||||||
|
}
|
||||||
|
|
||||||
if (tops[ClotheId][i].Localized != "NULL") {
|
if (tops[ClotheId][i].Localized != "NULL") {
|
||||||
for (var x = 0; x < Object.keys(comb.combination).length; x++) {
|
for (var x = 0; x < Object.keys(comb.combination).length; x++) {
|
||||||
if (comb.combination[x].Top == ClotheId) {
|
if (comb.combination[x].Top == ClotheId) {
|
||||||
|
|||||||
Reference in New Issue
Block a user