# DECORATOR::DECOR_GET_FLOAT

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

## Signature

```c
float DECOR_GET_FLOAT(Entity entity, const char* propertyName);
```

## Parameters

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

## Returns

`float`

## Usage

### Lua

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

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

### JavaScript

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

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

### C#

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

*Sources: alloc8or RDR3 NativeDB.*
