From GTA Network Wiki
Jump to: navigation, search

Server-Side Function

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

Sets the color of a blip.


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

Required Arguments

  • blip: The blip to set the color. Parameter input should be in Blip type.
  • color: The blip color to set. Parameter input should be in int type.

  • Using a value lower than 0 will set a white color with different alpha, while using a value upper than 84 will have the same effect only as black color.
  • Setting a new sprite to a blip (with SetBlipSprite) will reset the color back to the default - 0 (white).

Usage example(s)

Sets any existing white blip to blue blip.

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


Version Description
1.0 Release.