getClockDayOfWeek
GET_CLOCK_DAY_OF_WEEK0xD972E4BD7AEB235FThe GTA V native GET_CLOCK_DAY_OF_WEEK of the CLOCK namespace, as LS:MP client scripts call it: the global function getClockDayOfWeek, in JavaScript and in Lua.
getClockDayOfWeek(): numbergetClockDayOfWeek(): integerUsage
JavaScript
const result = getClockDayOfWeek();Lua
local result = getClockDayOfWeek()Parameters
None.
Returns
int JavaScript number, Lua integerNotes
From the community native database. Names are LS:MP’s; samples may be written for C++ or another framework.
Gets the current day of the week.
0: Sunday
1: Monday
2: Tuesday
3: Wednesday
4: Thursday
5: Friday
6: Saturday
Reference
- Namespace
- Clock CLOCK
- In the game
int GET_CLOCK_DAY_OF_WEEK()- Hash
0xD972E4BD7AEB235F