GetBlipName

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

Gets the name of a blip.


Syntax

API.getBlipName(NetHandle blip);

Required Arguments

  • blip: The blip to get the name from. This parameter input should be in NetHandle type.

NOTE: This function returns the blip name as string type.

Usage example(s)

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

var blips = API.getAllBlips();
for (int i = 0; i < blips.Count; i++)
    if (string.IsNullOrEmpty(API.getBlipName(b)))
        API.setBlipName(b, "Blip No." + i);

References