diff --git a/ReallifeGamemode.Server.Core.API/IBlipAPI.cs b/ReallifeGamemode.Server.Core.API/IBlipAPI.cs index ca2f4730..c87fc7e1 100644 --- a/ReallifeGamemode.Server.Core.API/IBlipAPI.cs +++ b/ReallifeGamemode.Server.Core.API/IBlipAPI.cs @@ -6,6 +6,6 @@ namespace ReallifeGamemode.Server.Core.API { public interface IBlipAPI { - IBlip CreateBlip(uint sprite, Position position, string name, byte color, byte alpha, float scale, float drawDistance, bool shortRange); + IBlip CreateBlip(uint sprite, Position position, string name, byte color, float scale, byte alpha = 255, float drawDistance = 0, bool shortRange = false); } } diff --git a/ReallifeGamemode.Server.Core.RageMP/RageBlipAPI.cs b/ReallifeGamemode.Server.Core.RageMP/RageBlipAPI.cs index 3de58500..a797f211 100644 --- a/ReallifeGamemode.Server.Core.RageMP/RageBlipAPI.cs +++ b/ReallifeGamemode.Server.Core.RageMP/RageBlipAPI.cs @@ -8,9 +8,10 @@ namespace ReallifeGamemode.Server.Core.RageMP { class RageBlipAPI : IBlipAPI { - public IBlip CreateBlip(uint sprite, Position position, string name, byte color, byte alpha, float scale, float drawDistance, bool shortRange) + public IBlip CreateBlip(uint sprite, Position position, string name, byte color, float scale, byte alpha = 255, float drawDistance = 0, bool shortRange = false) { - return new RageBlip(NAPI.Blip.CreateBlip(sprite, position.ToVector3(), scale, color, name, alpha, drawDistance, shortRange)); + var blip = NAPI.Blip.CreateBlip(sprite, position.ToVector3(), scale, color, name, alpha, drawDistance, shortRange); + return new RageBlip(blip); } } } diff --git a/ReallifeGamemode.Server.Core/Managers/HouseManager.cs b/ReallifeGamemode.Server.Core/Managers/HouseManager.cs index 0b6e0851..c1dd3fae 100644 --- a/ReallifeGamemode.Server.Core/Managers/HouseManager.cs +++ b/ReallifeGamemode.Server.Core/Managers/HouseManager.cs @@ -67,6 +67,7 @@ namespace ReallifeGamemode.Server.Core.Managers else { //houseBlips[house.Id] = NAPI.Blip.CreateBlip(40, house.Position, 0.7f, 11, "Haus", shortRange: true); too many blips + houseBlips[house.Id] = Api.Blip.CreateBlip(40, house.Position, "Haus", 11, 0.7f, shortRange: true); } houseLabels[house.Id] = Api.TextLabel.CreateTextLabel(text, housePos, 10f, 1f, 0, new Color(255, 255, 255));