SetBlipName

From GTA Network Wiki
Jump to: navigation, search

SetBlipName
Server-Side Function

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

Sets the name of a blip. A blip's name is a title which can be viewed through the game map.

Syntax

void NAPI.Blip.SetBlipName(Blip blip, string name);

Required Arguments

  • blip: The blip to set the name. This parameter input should be in Blip type.
  • name: The name to use on that blip. This parameter input should be in string type.


icon-info.png

You can use long names, though when the blip name is very long it will be seen with seperated lines.


Usage example(s)

setblipname.png

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(b)))
        NAPI.Blip.SetBlipName(b, "Blip No." + i);

Changelog

Version Description
1.0 Release.

References