NetworkClient

getCloudTimeAsString

GET_CLOUD_TIME_AS_STRING0xF12E6CD06C73D69E

The GTA V native GET_CLOUD_TIME_AS_STRING of the NETWORK namespace, as LS:MP client scripts call it: the global function getCloudTimeAsString, in JavaScript and in Lua.

SignatureJavaScript
getCloudTimeAsString(): string
SignatureLua
getCloudTimeAsString(): string

Usage

JavaScript
const text = getCloudTimeAsString();
Lua
local text = getCloudTimeAsString()

Parameters

None.

Returns

string JavaScript string, Lua string

Notes

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

Same as getCloudTimeAsInt but returns the value as a hex string (%I64X).

Reference

Namespace
Network NETWORK
In the game
const char* GET_CLOUD_TIME_AS_STRING()
Hash
0xF12E6CD06C73D69E
Introduced
Game build 1103 legacy numbering
Formerly
_GET_CLOUD_TIME_AS_STRING

Open in the interactive natives reference