GetBlipName: Difference between revisions

From RAGE Multiplayer Wiki
(Created page with "Gets the name of a blip. ==Syntax== <pre>string NAPI.Blip.GetBlipName(Blip blip);</pre> === Required Arguments === *'''blip:''' The blip to get the name from. Parameter inpu...")
 
m (Xabi moved page NAPI.Blip.GetBlipName to GetBlipName)
(No difference)

Revision as of 12:41, 27 November 2019

Gets the name of a blip.

Syntax

string NAPI.Blip.GetBlipName(Blip blip);

Required Arguments

  • blip: The blip to get the name from. Parameter input should be in Blip type

Example

C# Syntax

Example

var list = NAPI.Pools.GetAllBlips();

foreach (Blip blip in list)
{
    if (string.IsNullOrEmpty(NAPI.Blip.GetBlipName(blip)))
    {
        NAPI.Blip.SetBlipName(blip, "My blip");
    }
}