The Lab
DECORATOR native

DECOR_GET_BOOL

returns BOOL2 paramsbuild 1207

Returns the boolean value of the decorator propertyName on entity.

Signature

C
BOOL DECOR_GET_BOOL(Entity entity, const char* propertyName); // 0xDEF3F1B071ABB197 b1207

Parameters

#NameType
1entityEntity
2propertyNameconst char*

Facts

Facts about DECOR_GET_BOOL
Name
DECOR_GET_BOOL
Hash
0xDEF3F1B071ABB197
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(0xDEF3F1B071ABB197, -- DECOR_GET_BOOL
  PlayerPedId(), -- Entity entity
  "text" -- const char* propertyName
)
if result then
  -- ...
end
JavaScript
const result = Citizen.invokeNative("0xDEF3F1B071ABB197", // DECOR_GET_BOOL
  PlayerPedId(), // Entity entity
  "text", // const char* propertyName
  Citizen.returnResultAnyway()
);
if (result) {
  // ...
}
C#
bool result = Function.Call<bool>((Hash)0xDEF3F1B071ABB197, // DECOR_GET_BOOL
  API.PlayerPedId(), // Entity entity
  "text" // const char* propertyName
);
All DECORATOR natives

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