require('moonloader')
function main()
if not isSampfuncsLoaded() or not isSampLoaded() then return end
while not isSampAvailable() do wait(100) end
sampAddChatMessage('Тестовый скрипт запущен! Активация - /helplua', -1)
sampRegisterChatCommand('helplua', function()
sampShowDialog(1111, 'Text Dialog', "Ок", "Закрыть", DIALOG_STYLE_MSGBOX) -- "1111" - ид диалога | "Ок" - первая кнопка | "Закрыть" - вторая кнопка | DIALOG_STYLE_MSGBOX - стиль диалога
end)
while true do
wait(0)
end
end