SetBlipColor

From RAGE Multiplayer Wiki
Revision as of 15:23, 26 November 2019 by Muphy (talk | contribs) (Created page with "Sets the color of a blip. ==Syntax== <pre>void NAPI.Blip.SetBlipColor(Blip blip, int color);</pre> === Required Arguments === *'''blip:''' The blip to get the color from. Pa...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Sets the color of a blip.

Syntax

void NAPI.Blip.SetBlipColor(Blip blip, int color);

Required Arguments

  • blip: The blip to get the color from. Parameter input should be in Blip type
  • name: The name to use on that blip. This parameter input should be in string type

Example

Sets names based on ID to any existing blip without a name.

C# Syntax

Example

var blips = NAPI.Pools.GetAllBlips();
for (int i = 0; i < blips.Count; i++)
    if (string.IsNullOrEmpty(NAPI.Blip.GetBlipName(b)))
        NAPI.Blip.SetBlipName(b, "Blip No." + i);