SetBlipName: Difference between revisions
(Created page with "Sets the name of a blip. A blip's name is a title which can be viewed through the game map. ==Syntax== <pre>void NAPI.Blip.SetBlipName(Blip blip, string name);</pre> === Req...") |
|||
| Line 9: | Line 9: | ||
==Example== | ==Example== | ||
{{CSharpContainer| | {{CSharpContainer| | ||
{{Example}} | {{Example}} | ||
Revision as of 15:32, 26 November 2019
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.
Example
C# Syntax
Example
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);