SetBlipSprite

From GT-MP
Jump to: navigation, search
SetBlipSprite
Shared Function
Utilities-terminal.png Server-Side System-users.png Client-Side
Csharp.png C# Javascript.png JavaScript

Sets the sprite (icon type) of a blip.

Syntax

API.setBlipSprite(NetHandle blip, int sprite);

Required Arguments

  • blip: The blip to set the sprite. This parameter input should be in NetHandle type.
  • sprite: The blip sprite ID to use. This parameter input should be in int 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 = API.getAllBlips();
foreach (var bhandle in blips)
    API.setBlipSprite(bhandle, 84);

References