haus blips revive
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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));
|
||||
|
||||
Reference in New Issue
Block a user