This commit is contained in:
2021-04-05 16:23:09 +02:00
parent 340c071fa0
commit 072be07e98

View File

@@ -93,7 +93,10 @@
});
if (currentShape == colshapeDumptruck) {
mp.gui.chat.push("in colshape");
if (!hasBinBag) {
mp.gui.chat.push("OK.");
hasBinBag = false;
mp.events.callRemote('CLIENT:MuellmannAddSack');
@@ -116,7 +119,7 @@
mp.events.add("MuellmannUpdateColshape", (vector3) => {
let currBlip;
garbageToCollect.forEach((colShape, blip) => {
if (blip.getCoords == vector3) currBlip = blip;
if (blip.getCoords() == vector3) currBlip = blip;
});
if (!garbageToCollect.has(currBlip)) return;
@@ -125,8 +128,10 @@
if (currBlip && mp.blips.exists(currBlip))
currBlip.destroy();
if (colShape && mp.colshapes.exists(colShape))
if (colShape && mp.colshapes.exists(colShape)) {
mp.gui.chat.push("Delete Colshape.");
colShape.destroy();
}
garbageToCollect.delete(currBlip);
});