Для начала нужно скачать саму систему Ссылка
Копируем этот файл в папку clientscripts
Далее подключаем, открываем settings
Код:
<clientscript>Dialogs.nut</clientscript>
В сам мод нужно вписать
Ко всем const
Код:
const DIALOG_STYLE_MSGBOX = 0; const DIALOG_STYLE_INPUT = 1; const DIALOG_STYLE_LIST = 2;
Далее
Код:
function onDialogResponse(playerid, dialogid, response, listitem, inputtext)
{
togglePlayerControls(playerid, true);
return true;
}
addEvent("dialogResponse", onDialogResponse);И в самом конце мода
Код:
function showPlayerDialog(playerid, dialogid, type, windowtext, maintext, firstbuttontext, secondbuttontext = "")
{
triggerClientEvent(playerid, "GUIDialog", dialogid, type, windowtext, maintext, firstbuttontext, secondbuttontext);
togglePlayerControls(playerid, false);
return true;
}Ну вот и все.