- Версия MoonLoader
- .025-beta
В чем ошибка? Нужно найти текст в диалоге(46) и сделать скрин
Lua:
huy = -1
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_F8) then makeScreenshot() end
lua_thread.create(function() sampev.onShowDialog() end)
end
end
end
function sampev.onShowDialog(id, style, title, button1, button1, dialogText)
for n in dialogText:gmatch("[^\r\n]+") do
if n:find('- Метеоролог: Отличная работа, вот твои деньги!') then
huy = hu
end
hu = hu + 1
end
end
function makeScreenshot(disable)
if disable then displayHud(false) sampSetChatDisplayMode(0) end
require('memory').setuint8(sampGetBase() + 0x119CBC, 1)
if disable then displayHud(true) sampSetChatDisplayMode(2) end
end