# DECORATOR::DECOR_GET_BOOL

- **Hash:** `0xDEF3F1B071ABB197`
- **Namespace:** DECORATOR
- **Runtime name (Lua/JS):** `DecorGetBool`
- **Side:** client (game native)
- **Name status:** official
- **Documentation:** named only
- **Since game build:** 1207
- **URL:** https://natives.borderlinerp.com/natives/DECORATOR/DECOR_GET_BOOL

## Signature

```c
BOOL DECOR_GET_BOOL(Entity entity, const char* propertyName);
```

## Parameters

- `entity` (`Entity`)
- `propertyName` (`const char*`)

## Returns

`BOOL`

## Usage

### Lua

```lua
local retval = DecorGetBool(entity, propertyName)

-- always available, by hash
local retval = Citizen.InvokeNative(0xDEF3F1B071ABB197, entity, propertyName, Citizen.ReturnResultAnyway())
```

### JavaScript

```js
const retval = DecorGetBool(entity, propertyName);

// by hash
const retval = Citizen.invokeNative('0xDEF3F1B071ABB197', entity, propertyName, Citizen.returnResultAnyway());
```

### C#

```csharp
bool retval = Function.Call<bool>((Hash)0xDEF3F1B071ABB197, entity, propertyName);
```

*Sources: alloc8or RDR3 NativeDB.*
