[c#] Move Blip
-
in my script the blip need to move with the player
Tick()
{
int blipsize = 80;
Blip car= World.CreateBlip(MiaAuto.Position, 50);
Function.Call(Hash.SET_BLIP_SPRITE, car, 225);
Function.Call(Hash.SET_BLIP_COLOUR, car, 3);
Function.Call(Hash.SET_BLIP_FLASHES, car, false);
Function.Call(Hash.SET_BLIP_ROUTE, car, false);
Function.Call(Hash.SET_BLIP_SCALE, car, blipsize);
}but it create infinite new blips how can i do? thanks
-
@Santo99 Just use UI::ADD_BLIP_FOR_ENTITY.
-
@Unknown-Modder said in [c#] Move Blip:
UI::ADD_BLIP_FOR_ENTITY.
it works but now doesn't work the blip scale
Function.Call(Hash.SET_BLIP_SCALE, car, blipsize);
-
@Santo99 Consider doing
blip.Scale = scale;
instead. It's a float (0.0f - 1.0f), not an int.
-
@Unknown-Modder @Santo99 In C# you can add a blip like this
Blip blip = MiaAuto.AddBlip();
-
@Jitnaught Well that's even better