haus blips revive

This commit is contained in:
hydrant
2020-04-05 17:24:40 +02:00
parent cc7cd416e6
commit ee205a7f5b
3 changed files with 5 additions and 3 deletions

View File

@@ -6,6 +6,6 @@ namespace ReallifeGamemode.Server.Core.API
{ {
public interface IBlipAPI 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);
} }
} }

View File

@@ -8,9 +8,10 @@ namespace ReallifeGamemode.Server.Core.RageMP
{ {
class RageBlipAPI : IBlipAPI 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);
} }
} }
} }

View File

@@ -67,6 +67,7 @@ namespace ReallifeGamemode.Server.Core.Managers
else else
{ {
//houseBlips[house.Id] = NAPI.Blip.CreateBlip(40, house.Position, 0.7f, 11, "Haus", shortRange: true); too many blips //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)); houseLabels[house.Id] = Api.TextLabel.CreateTextLabel(text, housePos, 10f, 1f, 0, new Color(255, 255, 255));