# DECORATOR::DECOR_SET_BOOL

- **Hash:** `0xFE26E4609B1C3772`
- **Namespace:** DECORATOR
- **Runtime name (Lua/JS):** `DecorSetBool`
- **Side:** client (game native)
- **Name status:** official
- **Documentation:** described
- **Since game build:** 1207
- **URL:** https://natives.borderlinerp.com/natives/DECORATOR/DECOR_SET_BOOL

## Signature

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

## Parameters

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

## Returns

`BOOL`

## Description

This function sets metadata of type bool to specified entity.

## Usage

### Lua

```lua
local retval = DecorSetBool(entity, propertyName, value)

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

### JavaScript

```js
const retval = DecorSetBool(entity, propertyName, value);

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

### C#

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

*Sources: alloc8or RDR3 NativeDB.*
