Built-inClient

timestep

TIMESTEP0x0000000050597EE2

The GTA V native TIMESTEP of the BUILTIN namespace, as LS:MP client scripts call it: the global function timestep, in JavaScript and in Lua.

SignatureJavaScript
timestep(): number
SignatureLua
timestep(): number

Usage

JavaScript
const value = timestep();
Lua
local value = timestep()

Parameters

None.

Returns

float JavaScript number, Lua number

Notes

From the community native database. Names are LS:MP’s; samples may be written for C++ or another framework.

Gets the current frame time.

Reference

Namespace
Built-in BUILTIN
In the game
float TIMESTEP()
Hash
0x0000000050597EE2

Open in the interactive natives reference