private static void AddBlipToProp(IProp item, string name, Entity entity) { if ((int)item.BlipSprite != 1) { Blip blip = entity.AddBlip(); blip.Sprite = item.BlipSprite; blip.Color = item.BlipColor; blip.Name = name; } }
public Blip CreateBlip(Entity entity, int netHandle) { if (entity == null) { return(null); } var blip = entity.AddBlip(); lock (HandleMap) HandleMap.Add(netHandle, blip.Handle); lock (Blips) Blips.Add(blip.Handle); return(blip); }
private static void AddBlipToProp(IProp item, string name, Entity entity) { if (item.BlipSprite == 1) { return; } Blip blip = entity.AddBlip(); blip.set_Sprite(item.BlipSprite); blip.set_Color(item.BlipColor); blip.set_Name(name); }
public static void AddEmergencyBlipOn(Entity en, float scale, BlipSprite bs, string bn) { if (Main.NoBlipOnDispatch || !ThereIs(en)) { return; } en.AddBlip(); en.CurrentBlip.Scale = scale; en.CurrentBlip.Sprite = bs; en.CurrentBlip.Name = bn; en.CurrentBlip.IsShortRange = true; }
public static void AddBlipOn(Entity en, float scale, BlipSprite bs, BlipColor bc, string bn) { if (Main.NoBlipOnCriminal || !ThereIs(en)) { return; } en.AddBlip(); en.CurrentBlip.Scale = scale; en.CurrentBlip.Sprite = bs; en.CurrentBlip.Color = bc; en.CurrentBlip.Name = bn; en.CurrentBlip.IsShortRange = true; }