EntityClient

getEntityAlpha

GET_ENTITY_ALPHA0x5A47B3B5E63E94C6

The GTA V native GET_ENTITY_ALPHA of the ENTITY namespace, as LS:MP client scripts call it: the global function getEntityAlpha, in JavaScript and in Lua.

SignatureJavaScript
getEntityAlpha(entity: Entity): number
SignatureLua
getEntityAlpha(entity: Entity): integer

Usage

JavaScript
const result = getEntityAlpha(entity);
Lua
local result = getEntityAlpha(entity)

Parameters

ParameterTypeJavaScriptLua
entityEntitynumberinteger

Returns

int JavaScript number, Lua integer

Reference

Namespace
Entity ENTITY
In the game
int GET_ENTITY_ALPHA(Entity entity)
Hash
0x5A47B3B5E63E94C6

Open in the interactive natives reference