NetworkClient

setGhostAlpha

SET_GHOST_ALPHA0x658500AE6D723A7E

The GTA V native SET_GHOST_ALPHA of the NETWORK namespace, as LS:MP client scripts call it: the global function setGhostAlpha, in JavaScript and in Lua.

SignatureJavaScript
setGhostAlpha(alpha: number): void
SignatureLua
setGhostAlpha(alpha: integer)

Usage

JavaScript
setGhostAlpha(alpha);
Lua
setGhostAlpha(alpha)

Parameters

ParameterTypeJavaScriptLua
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.

Must be a value between 1 and 254

Reference

Namespace
Network NETWORK
In the game
void SET_GHOST_ALPHA(int alpha)
Hash
0x658500AE6D723A7E
Introduced
Game build 791 legacy numbering
Formerly
_SET_GHOSTED_ENTITY_ALPHA

Open in the interactive natives reference