RedM Natives

DECOR_SET_STRING

Hash0x0671C1A3FF7AFDFC
Runtime nameDecorSetString
NamespaceDECORATOR
SideClient
NameOfficial
Docs
Since build1207

Signature

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

Parameters

NameTypeDescription
entityEntity—
propertyNameconst char*—
valueconst char*—

Returns BOOL

Usage

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

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

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

Sources

alloc8or RDR3 NativeDB

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