GetFrameTime
Docslocal retval = GetFrameTime()Description
Gets the high precision frame time of the last frame in seconds.
note: the example above is way less precise.
Returns
floatReturns a floating-point number.
Examples
Official
local time1 = GetGameTimer()
Citizen.Wait(0)
-- Prints for example 0.01253530010581 at around 90 FPS
print(GetFrameTime())
-- This would print about the same as above, but is less accurate, ie: 0.012
print((GetGameTimer() - time1) / 1000)