warning Not Translated
This page has not been translated into the language that your browser requested yet. The English content is being shown as a fallback.
If you want to contribute a translation for this page then please click here.
GetPlayerDialog
warning
This function is deprecated. Use GetPlayerDialogID.
Description
Get the ID of the dialog currently show to the player.
Name | Description |
---|---|
playerid | The ID of the player. |
Return Values
Returns the dialog ID.
Or INVALID_DIALOG_ID if the player is not connected or has no dialog open.
Examples
new dialogID = GetPlayerDialog(playerid);
if (dialogID != INVALID_DIALOG_ID)
{
// The player has an open dialog
}
Related Functions
- GetPlayerDialogData: Get the data of the dialog currently show to the player.
- ShowPlayerDialog: Shows the player a synchronous (only one at a time) dialog box.
Related Callbacks
- OnDialogResponse: Called when a player responds to a dialog.