local sampev = require 'lib.samp.events'
function sampev.onDisplayGameText(style, time, text)
if text:find("~w~PRESS: ~g~~k~~CONVERSATION_YES~") then
lua_thread.create(function()
wait(1000)
setVirtualKeyDown(VK_YES, true)
wait(100)
setVirtualKeyDown(VK_YES, false)
end)
elseif text:find("~w~PRESS: ~g~~k~~CONVERSATION_NO~") then
lua_thread.create(function()
wait(1000)
setVirtualKeyDown(VK_NO, true)
wait(100)
setVirtualKeyDown(VK_NO, false)
end)
end
end