local sampev = require('lib.samp.events')
function sampev.onDisplayGameText(style, time, text)
lua_thread.create(function()
if text:find('Press_N') then
setVirtualKeyDown(0x4E, true)
wait(100)
setVirtualKeyDown(0x4E, false)
wait(0)
end
if text:find('Press_Y') then
setVirtualKeyDown(0x59, true)
wait(100)
setVirtualKeyDown(0x59, false)
wait(0)
end
if text:find('Press_Alt') then
setVirtualKeyDown(0x12, true)
wait(100)
setVirtualKeyDown(0x12, false)
wait(0)
end
end)
end