GetAllBlips

From GTA Network Wiki
Jump to: navigation, search

GetAllBlips
Server-Side Function

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

Gets all blips created with CreateBlip.

Syntax

List<Blip> NAPI.Pools.GetAllBlips();

NOTE: This function returns a list of all created blips, as List<Blip>.

Usage example(s)

Print the amount of loaded blips:

List<Blip> blips = NAPI.Pools.GetAllBlips();
NAPI.Util.ConsoleOutput("Total blips: " + blips.Count);

Change all blip sprites to a skull icon:

var blips = NAPI.Pools.GetAllBlips();
foreach(Blip bhandle in blips)
    NAPI.Blip.SetBlipSprite(bhandle, 84);

Changelog

Version Description
1.0 Release.

References