RedM Natives

TIMESTEP

Gets the current frame time.

Hash0x0000000050597EE2
Runtime nameTimestep
NamespaceBUILTIN
SideClient
NameOfficial
Docs
Since build1207
GTA V hash0x0000000050597EE2

Signature

float TIMESTEP();

Returns float

Description

Gets the current frame time.

Usage

Lua
local retval = Timestep()

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

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

Sources

alloc8or RDR3 NativeDB

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