getRealWorldTime
GET_REAL_WORLD_TIME0x3F60413F5DF65748The 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.
getRealWorldTime(): numbergetRealWorldTime(): integerUsage
JavaScript
const result = getRealWorldTime();Lua
local result = getRealWorldTime()Parameters
None.
Returns
int JavaScript number, Lua integerNotes
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