RedM Natives

GET_CLOCK_DAY_OF_WEEK

Gets the current day of the week.

Hash0x4DD02D4C7FB30076
Runtime nameGetClockDayOfWeek
NamespaceCLOCK
SideClient
NameOfficial
Docs
Since build1207
GTA V hash0xD972E4BD7AEB235F

Signature

int GET_CLOCK_DAY_OF_WEEK();

Returns int

Description

Gets the current day of the week.

0: Sunday
1: Monday
2: Tuesday
3: Wednesday
4: Thursday
5: Friday
6: Saturday

Usage

Lua
local retval = GetClockDayOfWeek()

-- always works, by hash
local retval = Citizen.InvokeNative(0x4DD02D4C7FB30076, Citizen.ResultAsInteger())
JavaScript and C#
JavaScript
const retval = GetClockDayOfWeek();

// by hash
const retval = Citizen.invokeNative('0x4DD02D4C7FB30076', Citizen.returnResultAnyway(), Citizen.resultAsInteger());
C#
int retval = Function.Call<int>((Hash)0x4DD02D4C7FB30076);

Sources

alloc8or RDR3 NativeDB

Something wrong or missing? Contribute a verified note — corrections ship through pull requests.