setBlipAlpha
SET_BLIP_ALPHA0x45FF974EEE1C8734The 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.
setBlipAlpha(blip: Blip, alpha: number): voidsetBlipAlpha(blip: Blip, alpha: integer)Usage
JavaScript
setBlipAlpha(blip, alpha);Lua
setBlipAlpha(blip, alpha)Parameters
| Parameter | Type | JavaScript | Lua |
|---|---|---|---|
blip | Blip | number | integer |
alpha | int | number | integer |
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