Exemplo n.º 1
0
        public static List <Blip> AddBlip(string blipName, List <Vector3> locations, BlipOptions options = null)
        {
            var blipList = new List <Blip>();

            locations.ForEach(o =>
            {
                blipList.Add(AddBlip(blipName, o, options));
            });

            return(blipList);
        }
Exemplo n.º 2
0
        public static Blip AddBlip(string blipName, Vector3 location, BlipOptions options = null)
        {
            var blipOptions = options ?? defaultBlipOptions;

            var blip = World.CreateBlip(location);

            blip.Sprite       = blipOptions.Sprite;
            blip.Scale        = blipOptions.Scale;
            blip.Color        = blipOptions.Colour;
            blip.IsShortRange = blipOptions.IsShortRange;
            blip.Name         = blipName;

            return(blip);
        }
 public static void AddBlip(this Session.Session playerSession, string blipName, List <Vector3> blipPositions, BlipOptions blipOptions = null)
 {
     playerSession.TriggerEvent("Blips.AddBlips", blipName, blipPositions.Select(o => o.ToArray()).ToArray(), JsonConvert.SerializeObject(blipOptions));
 }
Exemplo n.º 4
0
        public static async Task <List <Blip> > AddBlipAsync(string blipName, List <Vector3> locations, BlipOptions options = null)
        {
            var blipList = new List <Blip>();

            await locations.ForEachAsync(async o =>
            {
                blipList.Add(AddBlip(blipName, o, options));
                await BaseScript.Delay(0);
            });

            return(blipList);
        }