# ENTITY::IS_ENTITY_UPRIGHT

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

## Signature

```c
BOOL IS_ENTITY_UPRIGHT(Entity entity, float angle);
```

## Parameters

- `entity` (`Entity`)
- `angle` (`float`)

## Returns

`BOOL`

## Usage

### Lua

```lua
local retval = IsEntityUpright(entity, angle)

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

### JavaScript

```js
const retval = IsEntityUpright(entity, angle);

// by hash
const retval = Citizen.invokeNative('0xF6F6AFD8D4FB2658', entity, angle + 0.0000001, Citizen.returnResultAnyway());
```

### C#

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

- Float parameters: Lua integers (`10`, or whole numbers decoded from NUI/JSON) are sent as ints and read as garbage. Write `10.0` or `value + 0.0`. The generated JS wrappers add `0.0000001` to non-zero floats for the same reason.

*Sources: alloc8or RDR3 NativeDB.*
