From 697ccd860fd684fe0a15553ee9054f62be53ed07 Mon Sep 17 00:00:00 2001 From: Vortrex <3858226+VortrexFTW@users.noreply.github.com> Date: Tue, 21 Feb 2023 20:28:17 -0600 Subject: [PATCH] Use label distance, not pickup distance --- scripts/client/label.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/client/label.js b/scripts/client/label.js index 5c3c35c8..c7c40a97 100644 --- a/scripts/client/label.js +++ b/scripts/client/label.js @@ -316,7 +316,7 @@ function processLabelRendering() { if (!areServerElementsSupported() || getGame() == V_GAME_MAFIA_ONE || getGame() == V_GAME_GTA_IV || getGame() == V_GAME_GTA_IV_EFLC) { if (localPlayer != null) { getServerData().businesses.forEach((business) => { - if (getDistance(localPlayer.position, business.entrancePosition) <= propertyPickupRenderDistance) { + if (getDistance(localPlayer.position, business.entrancePosition) <= propertyLabelRenderDistance) { if (getGame() == V_GAME_GTA_IV || getGame() == V_GAME_GTA_IV_EFLC) { natives.drawColouredCylinder(getPosBelowPos(business.entrancePosition, 1.0), 0.0, 0.0, 0, 153, 255, 255); } @@ -326,7 +326,7 @@ function processLabelRendering() { }); getServerData().houses.forEach((house) => { - if (getDistance(localPlayer.position, house.entrancePosition) <= propertyPickupRenderDistance) { + if (getDistance(localPlayer.position, house.entrancePosition) <= propertyLabelRenderDistance) { if (getGame() == V_GAME_GTA_IV || getGame() == V_GAME_GTA_IV_EFLC) { natives.drawColouredCylinder(getPosBelowPos(house.entrancePosition, 1.0), 0.0, 0.0, 0, 200, 0, 255); } @@ -336,7 +336,7 @@ function processLabelRendering() { }); getServerData().jobs.forEach((job) => { - if (getDistance(localPlayer.position, job.position) <= propertyPickupRenderDistance) { + if (getDistance(localPlayer.position, job.position) <= propertyLabelRenderDistance) { if (getGame() == V_GAME_GTA_IV || getGame() == V_GAME_GTA_IV_EFLC) { natives.drawColouredCylinder(getPosBelowPos(job.position, 1.0), 0.0, 0.0, 255, 255, 0, 255); }