RedM Natives

GET_FRAME_TIME

Also known as "delta time"

Hash0x5E72022914CE3C38
Runtime nameGetFrameTime
NamespaceMISC
SideClient
NameOfficial
Docs
Since build1207
GTA V hash0x15C40837039FFAF7

Signature

float GET_FRAME_TIME();

Returns float

Description

Also known as "delta time"

Usage

Lua
local retval = GetFrameTime()

-- always works, by hash
local retval = Citizen.InvokeNative(0x5E72022914CE3C38, Citizen.ResultAsFloat())
JavaScript and C#
JavaScript
const retval = GetFrameTime();

// by hash
const retval = Citizen.invokeNative('0x5E72022914CE3C38', Citizen.returnResultAnyway(), Citizen.resultAsFloat());
C#
float retval = Function.Call<float>((Hash)0x5E72022914CE3C38);

Sources

alloc8or RDR3 NativeDB

Something wrong or missing? Contribute a verified note — corrections ship through pull requests.