NetworkClient

getNetworkTime

GET_NETWORK_TIME0x7A5487FE9FAA6B48

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

SignatureJavaScript
getNetworkTime(): number
SignatureLua
getNetworkTime(): integer

Usage

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

Parameters

None.

Returns

int JavaScript number, Lua integer

Reference

Namespace
Network NETWORK
In the game
int GET_NETWORK_TIME()
Hash
0x7A5487FE9FAA6B48

Open in the interactive natives reference