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...")
 
No edit summary
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.



Revision as of 16:37, 26 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);
}