debug
This commit is contained in:
@@ -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);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user