So, when I use GetPlayerDialogID to get ID of the dialog it clearly show's the correct ID, but when I close dialog GetPlayerDialogID always show the last dialog ID that's opened, so if I opened dialog ID: 50, GetPlayerDialogID will print ID: 50, but when I close dialog GetPlayerDialogID print the last dialog ID in this case ID:50, so I think it need's to print ID: -1 "INVALID_DIALOG_ID" when I close dialog