floatGET_FRAME_TIME(/* parameters not documented */);
Property
Value
Native Name
GET_FRAME_TIME
Hash
0x15C40837039FFAF7
Return Type
float
Description: Gets the high precision frame time of the last frame in seconds.
note: the example above is way less precise.
Examples
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)