Add Name property for blip, fix blip scale

This commit is contained in:
Sardelka
2022-07-03 21:00:05 +08:00
parent f866151cc5
commit 0a5bb67c54
5 changed files with 20 additions and 9 deletions

View File

@ -42,9 +42,10 @@ namespace RageCoop.Client.Scripting
int id= (int)obj.Args[0];
var sprite=(BlipSprite)(short)obj.Args[1];
var color = (BlipColor)(byte)obj.Args[2];
var scale=(Vector2)obj.Args[3];
var scale=(float)obj.Args[3];
var pos=(Vector3)obj.Args[4];
int rot= (int)obj.Args[5];
var name=(string)obj.Args[6];
Blip blip;
API.QueueAction(() =>
{
@ -55,10 +56,10 @@ namespace RageCoop.Client.Scripting
}
blip.Sprite = sprite;
blip.Color = color;
blip.ScaleX = scale.X;
blip.ScaleY = scale.Y;
blip.Scale = scale;
blip.Position = pos;
blip.Rotation = rot;
blip.Name = name;
});
}