---
title: "DisableInteriorEnterExits | open.mp"
description: "Disable all the interior entrances and exits in the game (the yellow arrows at doors)."
canonical: https://omp.itsneufox.com/docs/scripting/functions/DisableInteriorEnterExits
language: en
---

# DisableInteriorEnterExits

## Description

Disable all the interior entrances and exits in the game (the yellow arrows at doors).

## Returns

This function always returns **true**.

## Examples

```c
public OnGameModeInit()
{
    DisableInteriorEnterExits();
    return 1;
}
```

## Notes

warning

This function will only work if it has been used BEFORE a player connects (it is recommended to use it in [OnGameModeInit](https://omp.itsneufox.com/docs/scripting/callbacks/OnGameModeInit)). It will not remove a connected player's markers.

If the gamemode is changed after this function has been used, and the new gamemode doesn't disable markers, the markers will NOT reappear for already-connected players (but will for newly connected players).

tip

You can also disable interior entrance markers via [config.json](https://omp.itsneufox.com/docs/server/config.json)

```json
"use_entry_exit_markers": false,
```

## Related Functions

-   [AllowInteriorWeapons](https://omp.itsneufox.com/docs/scripting/functions/AllowInteriorWeapons): Determine if weapons can be used in interiors.
