Scripting/Server/Functions/GetPlayerDialogID
The id of the dialog that is currently open for the player, or -1.
Syntax
GetPlayerDialogID(player)Arguments
- Player player
Returns
integer
Example
function onPlayerCommand( player, cmd, params )
{
if ( cmd == "getplayerdialogid" )
{
local result = GetPlayerDialogID( player );
MessagePlayer( "GetPlayerDialogID returned: " + result, player );
}
}This sample was generated from the signature – adapt the values to your gamemode.
Related pages
Section: Server dialogs (SA-MP style)
Categories: Server functions | Server dialogs (SA-MP style)