From 072be07e98422bffdb655a4342cab5d4bfdbf739 Mon Sep 17 00:00:00 2001 From: kookroach Date: Mon, 5 Apr 2021 16:23:09 +0200 Subject: [PATCH] debug --- ReallifeGamemode.Client/Jobs/RefuseCollector.ts | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/ReallifeGamemode.Client/Jobs/RefuseCollector.ts b/ReallifeGamemode.Client/Jobs/RefuseCollector.ts index 047bd6fc..e4f69a44 100644 --- a/ReallifeGamemode.Client/Jobs/RefuseCollector.ts +++ b/ReallifeGamemode.Client/Jobs/RefuseCollector.ts @@ -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); });