DECOR_GET_BOOL
Returns the boolean value of the decorator propertyName on entity.
Signature
BOOL DECOR_GET_BOOL(Entity entity, const char* propertyName); // 0xDEF3F1B071ABB197 b1207Parameters
| # | Name | Type |
|---|---|---|
| 1 | entity | Entity |
| 2 | propertyName | const char* |
Facts
| 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.
local result = Citizen.InvokeNative(0xDEF3F1B071ABB197, -- DECOR_GET_BOOL
PlayerPedId(), -- Entity entity
"text" -- const char* propertyName
)
if result then
-- ...
endconst result = Citizen.invokeNative("0xDEF3F1B071ABB197", // DECOR_GET_BOOL
PlayerPedId(), // Entity entity
"text", // const char* propertyName
Citizen.returnResultAnyway()
);
if (result) {
// ...
}bool result = Function.Call<bool>((Hash)0xDEF3F1B071ABB197, // DECOR_GET_BOOL
API.PlayerPedId(), // Entity entity
"text" // const char* propertyName
);Related DECORATOR natives
Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.