RedM Natives

GET_ENTITY_ALPHA

Hash0x1BB501624FAF2BEA
Runtime nameGetEntityAlpha
NamespaceENTITY
SideClient
NameOfficial
Docs
Since build1207
GTA V hash0x5A47B3B5E63E94C6

Signature

int GET_ENTITY_ALPHA(Entity entity);

Parameters

NameTypeDescription
entityEntity—

Returns int

Usage

Lua
local retval = GetEntityAlpha(entity)

-- always works, by hash
local retval = Citizen.InvokeNative(0x1BB501624FAF2BEA, entity, Citizen.ResultAsInteger())
JavaScript and C#
JavaScript
const retval = GetEntityAlpha(entity);

// by hash
const retval = Citizen.invokeNative('0x1BB501624FAF2BEA', entity, Citizen.returnResultAnyway(), Citizen.resultAsInteger());
C#
int retval = Function.Call<int>((Hash)0x1BB501624FAF2BEA, entity);

See also

Sources

alloc8or RDR3 NativeDB

Something wrong or missing? Contribute a verified note — corrections ship through pull requests.