GetBlipColor

From GTA Network Wiki
Jump to: navigation, search

GetBlipColor
Server-Side Function

utilities-terminal.png Server-Side csharp.png C#

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.

NOTE: This function returns the blip's color as int type.

Usage example(s)

Sets any existing white blip to blue blip.

var list = NAPI.Pools.GetAllBlips();
foreach (Blip blip in list)
    if (NAPI.Blip.GetBlipColor(blip) == 0)
        NAPI.Blip.SetBlipColor(blip, 38);

Changelog

Version Description
1.0 Release.

References