GetBlipName

From GTA Network Wiki
Jump to: navigation, search

GetBlipName
Server-Side Function

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

Gets the name of a blip.

Syntax

string NAPI.Blip.GetBlipName(Blip blip);

Required Arguments

  • blip: The blip to get the name from. This parameter input should be in Blip 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 = NAPI.Pools.GetAllBlips();
for (int i = 0; i < blips.Count; i++)
    if (string.IsNullOrEmpty(NAPI.Blip.GetBlipName(blips[i])))
        NAPI.Blip.SetBlipName(blips[i], "Blip No." + i);

Changelog

Version Description
1.0 Release.

References