RedM Natives

SET_ENTITY_ALPHA

skin - everything alpha except skin Set entity alpha level.

Hash0x0DF7692B1D9E7BA7
Runtime nameSetEntityAlpha
NamespaceENTITY
SideClient
NameOfficial
Docs
Since build1207
GTA V hash0x44A0870B7E92D7C0

Signature

void SET_ENTITY_ALPHA(Entity entity, int alphaLevel, BOOL skin);

Parameters

NameTypeDescription
entityEntity—
alphaLevelint—
skinBOOL—

Returns void

Description

skin - everything alpha except skin
Set entity alpha level. Ranging from 0 to 255 but changes occur after every 20 percent (after every 51).

Usage

Lua
SetEntityAlpha(entity, alphaLevel, skin)

-- always works, by hash
Citizen.InvokeNative(0x0DF7692B1D9E7BA7, entity, alphaLevel, skin)
JavaScript and C#
JavaScript
SetEntityAlpha(entity, alphaLevel, skin);

// by hash
Citizen.invokeNative('0x0DF7692B1D9E7BA7', entity, alphaLevel, skin);
C#
Function.Call((Hash)0x0DF7692B1D9E7BA7, entity, alphaLevel, skin);

See also

Sources

alloc8or RDR3 NativeDB

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