SetBlipSprite: Difference between revisions

From RAGE Multiplayer Wiki
(Created page with "Sets the sprite (icon type) of a blip. ==Syntax== <pre>void NAPI.Blip.SetBlipSprite(NetHandle blip, int/uint sprite);</pre> === Required Arguments === *'''sprite:''' The bli...")
 
m (Xabi moved page NAPI.Blip.SetBlipSprite to SetBlipSprite)
 
(One intermediate revision by one other user not shown)
Line 5: Line 5:


=== Required Arguments ===
=== Required Arguments ===
*'''blip:''' Parameter input should be in '''Blip''' type
*'''sprite:''' The blip sprite ID to use. This parameter input should be in '''int''' or '''uint''' type.
*'''sprite:''' The blip sprite ID to use. This parameter input should be in '''int''' or '''uint''' type.



Latest revision as of 12:44, 27 November 2019

Sets the sprite (icon type) of a blip.

Syntax

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

Required Arguments

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

Example

C# Syntax

Example

var blips = NAPI.Pools.GetAllBlips();

foreach (Blip blip in list)
{
    NAPI.Blip.SetBlipSprite(blip, 84);
}