MiscClient

getRealWorldTime

GET_REAL_WORLD_TIME0x3F60413F5DF65748

The GTA V native GET_REAL_WORLD_TIME of the MISC namespace, as LS:MP client scripts call it: the global function getRealWorldTime, in JavaScript and in Lua.

SignatureJavaScript
getRealWorldTime(): number
SignatureLua
getRealWorldTime(): integer

Usage

JavaScript
const result = getRealWorldTime();
Lua
local result = getRealWorldTime()

Parameters

None.

Returns

int JavaScript number, Lua integer

Notes

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

getGameTimer() / 1000

Reference

Namespace
Misc MISC
In the game
int GET_REAL_WORLD_TIME()
Hash
0x3F60413F5DF65748
Introduced
Game build 2612 legacy numbering

Open in the interactive natives reference