require "lib.moonloader"
local status = false
function main()
while not isSampAvailable() do wait(100) end
sampRegisterChatCommand('pressh', activate)
end
function activate()
status = not status
flooder()
end
function flooder()
lua_thread.create(function()
while status do
setVirtualKeyDown(VK_H, true)
wait(50)
setVirtualKeyDown(VK_H, false)
end
end)
end