---
title: "GameModeExit | open.mp"
description: "Ends the current gamemode."
canonical: https://omp.itsneufox.com/docs/scripting/functions/GameModeExit
language: en
---

# GameModeExit

## Description

Ends the current gamemode.

## Returns

This function does not return any specific values.

## Examples

```c
if (OneTeamHasWon)
{
    GameModeExit();
}
```

## Related Functions

-   [SetModeRestartTime](https://omp.itsneufox.com/docs/scripting/functions/SetModeRestartTime): Sets the delay between loading main scripts, in seconds.

## Related Callbacks

-   [OnGameModeExit](https://omp.itsneufox.com/docs/scripting/callbacks/OnGameModeExit): Called when a gamemode ends.
