RedM Natives

DECOR_SET_INT

Sets property to int.

Hash0xE88F4D7F52A6090F
Runtime nameDecorSetInt
NamespaceDECORATOR
SideClient
NameOfficial
Docs
Since build1207
GTA V hash0x0CE3AA5E1CA19E10

Signature

BOOL DECOR_SET_INT(Entity entity, const char* propertyName, int value);

Parameters

NameTypeDescription
entityEntity—
propertyNameconst char*—
valueint—

Returns BOOL

Description

Sets property to int.

Usage

Lua
local retval = DecorSetInt(entity, propertyName, value)

-- always works, by hash
local retval = Citizen.InvokeNative(0xE88F4D7F52A6090F, entity, propertyName, value, Citizen.ReturnResultAnyway())
JavaScript and C#
JavaScript
const retval = DecorSetInt(entity, propertyName, value);

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

Sources

alloc8or RDR3 NativeDB

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