SetBlipSprite

From GTA Network Wiki
Jump to: navigation, search

SetBlipSprite
Server-Side Function

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

Sets the sprite (icon type) of a blip.

Syntax

void NAPI.Blip.SetBlipSprite(NetHandle blip, int/uint sprite);

Required Arguments

  • blip: The blip to set the sprite. This parameter input should be in Blip type.
  • sprite: The blip sprite ID to use. This parameter input should be in int or uint type.


icon-info.png

Setting a new sprite to a blip will reset the color back to the default - 0 (white).


Usage example(s)

Change all blip sprites to a skull icon:

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

Changelog

Version Description
1.0 Release.

References