SetBlipColor: Difference between revisions

From RAGE Multiplayer Wiki
Line 6: Line 6:
=== Required Arguments ===
=== Required Arguments ===
*'''blip:''' The blip to set the color. Parameter input should be in '''Blip''' type
*'''blip:''' The blip to set the color. Parameter input should be in '''Blip''' type
*'''color:''' The blip color to set. Parameter input should be in '''int''' type
*'''color:''' The <a href="https://wiki.rage.mp/index.php?title=Blip::color">color</a> to set. Parameter input should be in '''int''' type


==Example==
==Example==

Revision as of 15:25, 26 November 2019

Sets the color of a blip.

Syntax

void NAPI.Blip.SetBlipColor(Blip blip, int color);

Required Arguments

Example

Sets names based on ID to any existing blip without a name.

C# Syntax

Example

var blips = NAPI.Pools.GetAllBlips();
for (int i = 0; i < blips.Count; i++)
    if (string.IsNullOrEmpty(NAPI.Blip.GetBlipName(b)))
        NAPI.Blip.SetBlipName(b, "Blip No." + i);