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:
Any idea or can anyone point me to the right direction?
Thank you.
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.