--[[ Generated with https://github.com/TypeScriptToLua/TypeScriptToLua ]] fps = 60 duration = 5 menu.add_feature( "test", "action", 0, function() do local i = 0 while i < (fps * duration) do scriptdraw.draw_rect( v2(0, 0), v2(1, 1), 4294967295 ) system.wait(0) i = i + 1 end end end )