From 043a2f3a830557d914b0d927e8d703ebc9a17ca9 Mon Sep 17 00:00:00 2001 From: "michael.reiswich" Date: Fri, 26 Mar 2021 19:36:47 +0100 Subject: [PATCH] hi --- ReallifeGamemode.Client/Gui/blips.ts | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/ReallifeGamemode.Client/Gui/blips.ts b/ReallifeGamemode.Client/Gui/blips.ts index a8ea88b1..e6a105f7 100644 --- a/ReallifeGamemode.Client/Gui/blips.ts +++ b/ReallifeGamemode.Client/Gui/blips.ts @@ -12,11 +12,21 @@ export default function playerBlips() { if (entity.type === "player") { mp.gui.chat.push("Player recieved: Yes"); + let color = parseInt(entity.getVariable("blipColor")); + mp.gui.chat.push("Color : " + color); + entity.createBlip(1); + + mp.gui.chat.push(parseInt(entity.blip) == 0 ? "Blip was not created" : "Blip was created"); - + + mp.gui.chat.push("entity.blip is actually " + entity.blip); + var blip = mp.blips.at(entity.blip); + + mp.gui.chat.push("1 -" + blip.getAlpha() + " 2- " + blip.doesExist() + " 3-" + blip.dimension); + entity.setBlipColor(isNaN(color) ? 0 : color); mp.game.invoke(Natives.SET_BLIP_CATEGORY, entity.blip, 7); mp.game.invoke(Natives.SHOW_HEADING_INDICATOR_ON_BLIP, entity.blip, true);