public static Blip CreateStandardizedBlip(Entity entity, BlipTypes type = BlipTypes.Enemy)
        {
            var blip = new Blip(entity);

            blip.SetStandardColor(type);

            return(blip);
        }
 /// <summary>
 /// Set the color of the blip
 /// </summary>
 /// <param name="blip">The blip to set the color of</param>
 /// <param name="type">The color ((Blips default to yellow))</param>
 public static void SetStandardColor(this Blip blip, BlipTypes type)
 {
     if (type == BlipTypes.Standard)
     {
         return;
     }
     if (blip)
     {
         NativeFunction.Natives.SET_BLIP_COLOUR(blip, (int)type);
     }
 }
        public static Blip CreateStandardizedBlip(Vector3 spawn, BlipTypes type = BlipTypes.Enemy, BlipScale scale = BlipScale.Normal)
        {
            Blip blip;

            switch (scale)
            {
            case BlipScale.Ped:
                blip = new Blip(spawn, 0.75f);
                blip.SetStandardColor(type);
                break;

            case BlipScale.SearchArea:
                blip = new Blip(spawn, 60f);
                blip.SetStandardColor(type);
                break;

            default:
                blip = new Blip(spawn);
                blip.SetStandardColor(type);
                break;
            }

            return(blip);
        }