Possible to get frames per second in game using natives?

For a script that I made for testing. I want to cancel and delete the entities if your FPS drops below a certain number.

Something like this I guess :woman_shrugging:

local currentFps = GetCurrentFramesPerSecond()

if currentFps < 30 then
     print("NicePotatoBro")
end

A rolling average of GetFrameTime - Natives @ Cfx.re Docs maybe (‘current’ FPS is 1000 / frameTime, but you kind of want to average it out in case of inconsistent frame times).

Thank you dude :smiley: