NetworkClient

getNetworkTimeAccurate

GET_NETWORK_TIME_ACCURATE0x89023FBBF9200E9F

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

SignatureJavaScript
getNetworkTimeAccurate(): number
SignatureLua
getNetworkTimeAccurate(): integer

Usage

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

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 the same value as getNetworkTime in freemode, but as opposed to getNetworkTime it always gets the most recent time, instead of once per tick.
Could be used for benchmarking since it can return times in ticks.

Reference

Namespace
Network NETWORK
In the game
int GET_NETWORK_TIME_ACCURATE()
Hash
0x89023FBBF9200E9F

Open in the interactive natives reference