GetBlipColor

From RAGE Multiplayer Wiki
Revision as of 19:16, 25 November 2019 by Xabi (talk | contribs) (Created page with "Gets the color of a blip. ==Syntax== <pre>int NAPI.Blip.GetBlipColor(Blip blip);</pre> === Required Arguments === *'''blip:''' The blip to get the color from. Parameter inpu...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Gets the color of a blip.

Syntax

int NAPI.Blip.GetBlipColor(Blip blip);

Required Arguments

  • blip: The blip to get the color from. Parameter input should be in Blip type

Example

C# Syntax

Example

var list = NAPI.Pools.GetAllBlips();

foreach (Blip blip in list)
{
    if (NAPI.Blip.GetBlipColor(blip) == 0)
    {
        NAPI.Blip.SetBlipColor(blip, 38);
    }
}