RedM Natives

DECOR_GET_INT

Hash0x44DB62727762FD9B
Runtime nameDecorGetInt
NamespaceDECORATOR
SideClient
NameOfficial
Docs
Since build1207
GTA V hash0xA06C969B02A97298

Signature

int DECOR_GET_INT(Entity entity, const char* propertyName);

Parameters

NameTypeDescription
entityEntity—
propertyNameconst char*—

Returns int

Usage

Lua
local retval = DecorGetInt(entity, propertyName)

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

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

Sources

alloc8or RDR3 NativeDB

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