From 2b547fdab3188a9472b25d3f15165c266b5cc39e Mon Sep 17 00:00:00 2001 From: kookroach Date: Mon, 5 Apr 2021 18:42:17 +0200 Subject: [PATCH] blip blup --- ReallifeGamemode.Client/Gui/blips.ts | 10 +++------- ReallifeGamemode.Client/Jobs/RefuseCollector.ts | 2 +- 2 files changed, 4 insertions(+), 8 deletions(-) diff --git a/ReallifeGamemode.Client/Gui/blips.ts b/ReallifeGamemode.Client/Gui/blips.ts index b02ca9f7..3cbf73be 100644 --- a/ReallifeGamemode.Client/Gui/blips.ts +++ b/ReallifeGamemode.Client/Gui/blips.ts @@ -1,8 +1,4 @@ - - -export default function playerBlips() { - - +export default function playerBlips() { var playerBlipMap: Map; var ready = false; @@ -14,9 +10,10 @@ export default function playerBlips() { (player) => { if (mp.players.local == player) return; - + if (!playerBlipMap.has(player)) { let pBlip = mp.blips.new(1, player.position, { + alpha: 200, shortRange: true, dimension: mp.players.local.dimension, drawDistance: 300 @@ -47,7 +44,6 @@ export default function playerBlips() { } }); - mp.events.addDataHandler("blipColor", (entity, value) => { if (entity.type === "player") { let color = parseInt(value); diff --git a/ReallifeGamemode.Client/Jobs/RefuseCollector.ts b/ReallifeGamemode.Client/Jobs/RefuseCollector.ts index f5a9f4d7..673e4cfd 100644 --- a/ReallifeGamemode.Client/Jobs/RefuseCollector.ts +++ b/ReallifeGamemode.Client/Jobs/RefuseCollector.ts @@ -29,7 +29,7 @@ for (var i = 0; i < posArr.length; i++) { let pos = new mp.Vector3(posArr[i].x, posArr[i].y, posArr[i].z - 1) - let newBlip = mp.blips.new(1, new mp.Vector3(pos.x, pos.y, pos.z), { name: 'Mülltonne', color: 5, shortRange: false, scale: 0.5 }); + let newBlip = mp.blips.new(1, new mp.Vector3(pos.x, pos.y, pos.z), { name: 'Mülltonne', color: 0, shortRange: false, scale: 0.7 }); let newColShape = mp.colshapes.newSphere(posArr[i].x, posArr[i].y, posArr[i].z + 0.5, 1.75); newBlip.setPriority(1000);