NetworkClientChecked by LS:MP

networkOverrideClockTime

NETWORK_OVERRIDE_CLOCK_TIME0xE679E3E06E363892

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

SignatureJavaScript
networkOverrideClockTime(
  hours: number,
  minutes: number,
  seconds: number
): void
SignatureLua
networkOverrideClockTime(hours: integer, minutes: integer, seconds: integer)

Usage

JavaScript
networkOverrideClockTime(hours, minutes, seconds);
Lua
networkOverrideClockTime(hours, minutes, seconds)

Parameters

ParameterTypeJavaScriptLua
hoursintnumberinteger
minutesintnumberinteger
secondsintnumberinteger

Returns

Nothing. In JavaScript the call evaluates to undefined.

On LS:MP

ℹ
Checked by LS:MP

hours must be between 0 and 23. minutes and seconds must be between 0 and 59. Otherwise the call is ignored: nothing reaches the game, and no error is raised.

Notes

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

Works in Singleplayer too.
Passing wrong data (e.g. hours above 23) will cause the game to crash.

Reference

Namespace
Network NETWORK
In the game
void NETWORK_OVERRIDE_CLOCK_TIME(int hours, int minutes, int seconds)
Hash
0xE679E3E06E363892

Open in the interactive natives reference