NetworkClient

getCloudTimeAsInt

GET_CLOUD_TIME_AS_INT0x9A73240B49945C76

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

SignatureJavaScript
getCloudTimeAsInt(): number
SignatureLua
getCloudTimeAsInt(): integer

Usage

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

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.

Returns POSIX timestamp, an int representing the cloud time.

Reference

Namespace
Network NETWORK
In the game
int GET_CLOUD_TIME_AS_INT()
Hash
0x9A73240B49945C76

Open in the interactive natives reference