while true do wait(0)
if state then
for k, v in ipairs(counter) do
if (os.clock() - v) > 1.0 then
table.remove(counter, k)
end
end
printStringNow('~w~[~r~~h~VideoCard Lovec~g~~h~~h~ by Gruzin Gang~w~] ~b~~h~Dialogs Per Second~w~: ' .. #counter .. ' / ~r~~h~SEC', 100)
setGameKeyState(21, 255)
wait(0)
setGameKeyState(21, 0)
end
end