lopata = -1
tyapka = -1
vedro = -1
function sampev.onShowDialog(id, style, title, button1, button1, dialogText)
lo = 0
ve = 0
ty = 0
for n in dialogText:gmatch("[^\r\n]+") do
if n:find('ведро') then
vedro = ve
end
if n:find('Лопата') then
lopata = lo
end
if n:find('Тяпка') then
tyapka = ty
end
ve = ve + 1
ty = ty + 1
lo = lo + 1
end
end
function main()
if not isSampLoaded() or not isSampfuncsLoaded() then return end
while not isSampAvailable() do wait(100) end
while true do wait(0)
if isKeyJustPressed(VK_твоя клавиша) then
sampSendDialogResponse(айди диалога выбора, 1, lopata, false)
end
--и так дальше
end
end