# INTERIOR::GET_INTERIOR_FROM_ENTITY

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

## Signature

```c
Interior GET_INTERIOR_FROM_ENTITY(Entity entity);
```

## Parameters

- `entity` (`Entity`)

## Returns

`Interior`

## Description

Returns the handle of the interior that the entity is in. Returns 0 if outside.

## Usage

### Lua

```lua
local retval = GetInteriorFromEntity(entity)

-- always available, by hash
local retval = Citizen.InvokeNative(0xB417689857646F61, entity, Citizen.ResultAsInteger())
```

### JavaScript

```js
const retval = GetInteriorFromEntity(entity);

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

### C#

```csharp
int retval = Function.Call<int>((Hash)0xB417689857646F61, entity);
```

*Sources: alloc8or RDR3 NativeDB.*
