Haus Blips nicht immer auf minimap
This commit is contained in:
@@ -104,17 +104,17 @@ namespace ReallifeGamemode.Server.Managers
|
||||
houseMarkers[house.Id] = NAPI.Marker.CreateMarker(MarkerType.VerticalCylinder, house.Position.Subtract(new Vector3(0, 0, 1.7)), new Vector3(), new Vector3(), 1.6f, new Color(255, 255, 255));
|
||||
string text = $"~g~Zum Verkauf\n~s~{house.Type}\nPreis: ~y~{(house.Price == 0 ? "~r~Nicht verkäuflich" : house.Price.ToMoneyString())}";
|
||||
|
||||
byte houseColor = 11;
|
||||
if (house.OwnerId != null)
|
||||
{
|
||||
text = $"{house.Type}\n~s~Besitzer: ~y~{house.Owner.Name}\n~s~Mietpreis: ~g~{house.RentalFee.ToMoneyString()}";
|
||||
houseColor = 4;
|
||||
}
|
||||
else
|
||||
{
|
||||
houseBlips[house.Id] = NAPI.Blip.CreateBlip(40, house.Position, 1.0f, 11, "Haus", shortRange: true);
|
||||
}
|
||||
|
||||
houseBlips[house.Id] = NAPI.Blip.CreateBlip(40, house.Position, 1.0f, houseColor, "Haus");
|
||||
houseLabels[house.Id] = NAPI.TextLabel.CreateTextLabel(text, house.Position, 10f, 1f, 0, new Color(255, 255, 255));
|
||||
|
||||
|
||||
if (house.Price != 0)
|
||||
{
|
||||
houseColShapes[house.Id] = NAPI.ColShape.CreateCylinderColShape(house.Position.Subtract(new Vector3(0, 0, 2)), 2.0f, 5f);
|
||||
|
||||
Reference in New Issue
Block a user