# DECORATOR::DECOR_EXIST_ON

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

## Signature

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

## Parameters

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

## Returns

`BOOL`

## Description

Returns whether or not the specified property is set for the entity.

## Usage

### Lua

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

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

### JavaScript

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

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

### C#

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

*Sources: alloc8or RDR3 NativeDB.*
