HUDClient

setBlipAlpha

SET_BLIP_ALPHA0x45FF974EEE1C8734

The GTA V native SET_BLIP_ALPHA of the HUD namespace, as LS:MP client scripts call it: the global function setBlipAlpha, in JavaScript and in Lua.

SignatureJavaScript
setBlipAlpha(blip: Blip, alpha: number): void
SignatureLua
setBlipAlpha(blip: Blip, alpha: integer)

Usage

JavaScript
setBlipAlpha(blip, alpha);
Lua
setBlipAlpha(blip, alpha)

Parameters

ParameterTypeJavaScriptLua
blipBlipnumberinteger
alphaintnumberinteger

Returns

Nothing. In JavaScript the call evaluates to undefined.

Notes

From the community native database. Names are LS:MP’s; samples may be written for C++ or another framework.

Sets alpha-channel for blip color.

Example:

Blip blip = addBlipForEntity(entity);
setBlipColour(blip , 3);
setBlipAlpha(blip , 64);

Reference

Namespace
HUD HUD
In the game
void SET_BLIP_ALPHA(Blip blip, int alpha)
Hash
0x45FF974EEE1C8734

Open in the interactive natives reference