GetBlipColor

From GT-MP
Jump to: navigation, search
GetBlipColor
Shared Function
Utilities-terminal.png Server-Side System-users.png Client-Side
Csharp.png C# Javascript.png JavaScript

Gets all blips created with createBlip.

Syntax

In C#
Server-Side Function

API.getBlipColor(NetHandle blip);

Required Arguments

  • blip parameter input should be in NetHandle type.


NOTE: This function returns data as color in int type.

In Javascript
Client-Side Function

API.getBlipColor(LocalHandle blip);

Required Arguments

  • blip parameter input should be in LocalHandle type.


NOTE: This function returns data as color in int type.

Usage example

In C#
Server-Side Function

var list = API.getAllBlips();
foreach (var blip in list)
    if (API.getBlipColor(blip) == 0)
        API.setBlipColor(blip, 38);

In Javascript
Client-Side Function

API.getBlipColor(LocalHandle blip);

References