OnPlayerExitedMenu

From SA-MP Wiki

(Difference between revisions)
Jump to: navigation, search
Revision as of 22:29, 29 June 2014
Kilou (Talk | contribs)

← Previous diff
Current revision
OstGot (Talk | contribs)

Line 6: Line 6:
{{Param|playerid|The ID of the player that exited the menu}} {{Param|playerid|The ID of the player that exited the menu}}
-{{NoReturnCallback}}+{{Returns|This callback does not handle returns.
 +* It is always called first in gamemode.}}
 +{{Example}}
<pawn> <pawn>
public OnPlayerExitedMenu(playerid) public OnPlayerExitedMenu(playerid)

Current revision



Description:

Called when a player exits a menu.


Parameters:
(playerid)
playeridThe ID of the player that exited the menu


Return Values:

This callback does not handle returns.
  • It is always called first in gamemode.


Example Usage:

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

Related Callbacks

The following callbacks might be useful as well, as they are related to this callback in one way or another.


Related Functions

The following functions might be useful, as they're related to this callback in one way or another.

Personal tools
In other languages