# INTERIOR::FORCE_ROOM_FOR_GAME_VIEWPORT

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

## Signature

```c
void FORCE_ROOM_FOR_GAME_VIEWPORT(int interiorID, Hash roomHashKey);
```

## Parameters

- `interiorID` (`int`)
- `roomHashKey` (`Hash`)

## Returns

`void`

## Usage

### Lua

```lua
ForceRoomForGameViewport(interiorID, roomHashKey)

-- always available, by hash
Citizen.InvokeNative(0x115B4AA8FB28AB43, interiorID, roomHashKey)
```

### JavaScript

```js
ForceRoomForGameViewport(interiorID, roomHashKey);

// by hash
Citizen.invokeNative('0x115B4AA8FB28AB43', interiorID, roomHashKey);
```

### C#

```csharp
Function.Call((Hash)0x115B4AA8FB28AB43, interiorID, roomHashKey);
```

- Hash parameters: the named function also accepts a string and hashes it for you; `Citizen.InvokeNative` needs the number — pass `joaat("name")` or a backtick literal like `` `name` ``.

## See also

- [INTERIOR::CLEAR_ROOM_FOR_GAME_VIEWPORT](https://natives.borderlinerp.com/natives/INTERIOR/CLEAR_ROOM_FOR_GAME_VIEWPORT.md)

*Sources: alloc8or RDR3 NativeDB.*
