---
title: "OnPlayerExitedMenu | open.mp"
description: "Called when a player exits a menu."
canonical: https://omp.itsneufox.com/th/docs/scripting/callbacks/OnPlayerExitedMenu
language: th
---

# OnPlayerExitedMenu

## คำอธิบาย

Called when a player exits a menu.

| Name | Description |
| --- | --- |
| playerid | The ID of the player that exited the menu |

## ส่งคืน

มันถูกเรียกในเกมโหมดก่อนเสมอ

## ตัวอย่าง

```c
public OnPlayerExitedMenu(playerid)
{
    TogglePlayerControllable(playerid, 1); // unfreeze the player when they exit a menu
    return 1;
}
```

## ฟังก์ชั่นที่เกี่ยวข้องกัน

-   [CreateMenu](https://omp.itsneufox.com/th/docs/scripting/functions/CreateMenu): Create a menu.
-   [DestroyMenu](https://omp.itsneufox.com/th/docs/scripting/functions/DestroyMenu): Destroy a menu.
