function main()
while not isSampAvailable() do wait(100) end
while true do
wait(0)
if isKeyJustPressed(0x37) then
sampShowDialog(1, "name", "1 string\n2 string", "1 button", "2 button", 2)
while true do
wait(0)
local res, but, lis, input = sampHasDialogRespond(1)
if res then
if but == 1 and lis == 0 then
sampAddChatMessage("guy") break
elseif but == 1 and lis == 1 then
sampSendChat("glorified") break
end
else
break
end
end
end
end
end