From 0bacc0964c7e2b975655e6853753a06bb54ba030 Mon Sep 17 00:00:00 2001 From: Vortrex <3858226+VortrexFTW@users.noreply.github.com> Date: Tue, 15 Mar 2022 04:14:57 -0500 Subject: [PATCH] Draw house/job checkpoints --- scripts/client/label.js | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/scripts/client/label.js b/scripts/client/label.js index 4f20d67a..973bf20f 100644 --- a/scripts/client/label.js +++ b/scripts/client/label.js @@ -255,6 +255,18 @@ function processLabelRendering() { natives.drawColouredCylinder(getPosBelowPos(businesses[i].entrancePosition, 1.0), 0.0, 0.0, 0, 153, 255, 255); } } + + for(let i in houses) { + if(getDistance(localPlayer.position, houses[i].entrancePosition) <= 75.0) { + natives.drawColouredCylinder(getPosBelowPos(houses[i].entrancePosition, 1.0), 0.0, 0.0, 0, 200, 0, 255); + } + } + + for(let i in jobs) { + if(getDistance(localPlayer.position, jobs[i].position) <= 75.0) { + natives.drawColouredCylinder(getPosBelowPos(jobs[i].position, 1.0), 0.0, 0.0, 255, 255, 0, 255); + } + } } }