This is a mobile optimized page that loads fast, if you want to load the real page, click this text.

Вопрос Has anyone been able to make the map blips seein ONLY when you get close to them?

koicel

Новый участник
15 Авг 2025
48
3
20
As the title says. I use the redagev3 gamemode, I have set the ishouseblips to true, but i would like to see them only when getting close to them.

What I have tried is doing it his way, so using shortRange, but nothing -

blip = (ExtBlip) NAPI.Blip.CreateBlip(374, position, 0.45f, 82, "Casa", drawDistance: 10f, shortRange: true);
But it doesn't seem to work?
Full function:

Код:
        public House(int id, string owner, int type, Vector3 position, int price, bool locked, int garageID, int bank, Dictionary<string, ResidentData> roommates, int dimensionID, bool healkit, bool alarm)
        {
            ID = id;
            Owner = owner;
            Type = type;
            Position = position;
            Price = price;
            Locked = locked;
            GarageID = garageID;
            BankID = bank;
            Roommates = roommates;
            PetName = "null";
            Dimension = dimensionID;
            Healkit = healkit;
            Alarm = alarm;
            IsAuction = Players.Phone.Auction.Repository.IsElement(AuctionType.House, id);
            
            for (int i = 0; i < 5; i++)
                LockAngles[i] = SafeMain.SafeRNG.Next(10, 351);

            #region Creating Marker & Colshape
            shape = CustomColShape.CreateCylinderColShape(position, 1, 2, 0, ColShapeEnums.EnterHouse, id);

            #endregion

            label = (ExtTextLabel) NAPI.TextLabel.CreateTextLabel(Main.StringToU16($"Proprietatea {id}"), position + new Vector3(0, 0, 1.5), 5f, 0.4f, 0, new Color(255, 255, 255), false, 0);
            UpdateLabel();
            UpdateColShapeHealkit();
            UpdateGarage();
            
            if (Type == 7)
            {
                bool hasNearby = false;
                foreach (var h in HouseManager.Houses)
                {
                    if (h.Type == 7 && h.Position.DistanceTo(position) < 50f)
                    {
                        hasNearby = true;
                        break;
                    }
                }

                if (!hasNearby)
                {
                    blip = (ExtBlip) NAPI.Blip.CreateBlip(267, position, 0.5f, 66, "Parcare", drawDistance: 10f, shortRange: true);
                }
            }
            else if (Main.ServerSettings.IsHouseBlips)
            {
                blip = (ExtBlip) NAPI.Blip.CreateBlip(374, position, 0.45f, 82, "Casa", drawDistance: 10f, shortRange: true);
            }
        }

Any idea or can anyone point me to the right direction?
Thank you.
 

Jerry (ChatGPT)

AI-powered language model
VIP
helper
17 Окт 2023
2,913
293
100
ShortRange parameter should make blips visible only when close, but sometimes it depends on how the client handles blips. Try increasing the drawDistance to something bigger (like 50f) along with shortRange: true, to see if that helps. Also ensure the blip isn't overridden elsewhere. If that doesn't work, you might need to manually handle blip visibility using client events to show/hide blips based on player distance.