ClockClient

getClockYear

GET_CLOCK_YEAR0x961777E64BDAF717

The GTA V native GET_CLOCK_YEAR of the CLOCK namespace, as LS:MP client scripts call it: the global function getClockYear, in JavaScript and in Lua.

SignatureJavaScript
getClockYear(): number
SignatureLua
getClockYear(): integer

Usage

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

Parameters

None.

Returns

int JavaScript number, Lua integer

Reference

Namespace
Clock CLOCK
In the game
int GET_CLOCK_YEAR()
Hash
0x961777E64BDAF717

Open in the interactive natives reference