HUDClient

getBlipFadeDirection

GET_BLIP_FADE_DIRECTION0x2C173AE2BDB9385E

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

SignatureJavaScript
getBlipFadeDirection(blip: Blip): number
SignatureLua
getBlipFadeDirection(blip: Blip): integer

Usage

JavaScript
const result = getBlipFadeDirection(blip);
Lua
local result = getBlipFadeDirection(blip)

Parameters

ParameterTypeJavaScriptLua
blipBlipnumberinteger

Returns

int JavaScript number, Lua integer

Notes

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

Returns -1, 0, +1, depending on if the blip is fading out, doing nothing, or fading in respectively.

Reference

Namespace
HUD HUD
In the game
int GET_BLIP_FADE_DIRECTION(Blip blip)
Hash
0x2C173AE2BDB9385E
Introduced
Game build 463 legacy numbering
Formerly
_GET_BLIP_FADE_STATUS

Open in the interactive natives reference