The Lab
DECORATOR native

DECOR_SET_STRING

returns BOOL3 paramsbuild 1207

Sets the decorator propertyName on entity to the string value, returning true on success.

Signature

C
BOOL DECOR_SET_STRING(Entity entity, const char* propertyName, const char* value); // 0x0671C1A3FF7AFDFC b1207

Parameters

#NameType
1entityEntity
2propertyNameconst char*
3valueconst char*

Facts

Facts about DECOR_SET_STRING
Name
DECOR_SET_STRING
Hash
0x0671C1A3FF7AFDFC
Namespace
Returns
BOOL
Game build
1207

Examples

Calls by hash work in every RedM runtime. Replace the placeholder arguments with your own values.

Lua
local result = Citizen.InvokeNative(0x0671C1A3FF7AFDFC, -- DECOR_SET_STRING
  PlayerPedId(), -- Entity entity
  "text", -- const char* propertyName
  "text" -- const char* value
)
if result then
  -- ...
end
JavaScript
const result = Citizen.invokeNative("0x0671C1A3FF7AFDFC", // DECOR_SET_STRING
  PlayerPedId(), // Entity entity
  "text", // const char* propertyName
  "text", // const char* value
  Citizen.returnResultAnyway()
);
if (result) {
  // ...
}
C#
bool result = Function.Call<bool>((Hash)0x0671C1A3FF7AFDFC, // DECOR_SET_STRING
  API.PlayerPedId(), // Entity entity
  "text", // const char* propertyName
  "text" // const char* value
);
All DECORATOR natives

Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.