The FiveM developer’s field guide
Know the native.
Build the world.
Engine functions, framework docs, and game assets.
One reference. From the first lookup to the last line.
knowledge base
Explore / FiveM
Native reference
- CLOCKvoid
ADD_TO_CLOCK_TIME
Description not yet documented
0xD716F30D8C8980E2 - CLOCKvoid
ADVANCE_CLOCK_TIME_TO
Description not yet documented
0xC8CA9670B9D83B3B - CLOCKint
GET_CLOCK_DAY_OF_MONTH
Description not yet documented
0x3D10BC92A4DB1D35 - CLOCKint
GET_CLOCK_DAY_OF_WEEK
``` Gets the current day of the week. 0: Sunday 1: Monday 2: Tuesday 3: Wednesday 4: Thursday 5: Friday 6: Saturday ```
0xD972E4BD7AEB235F - CLOCKint
GET_CLOCK_HOURS
``` Gets the current ingame hour, expressed without zeros. (09:34 will be represented as 9) ```
0x25223CA6B4D20B7F - CLOCKint
GET_CLOCK_MINUTES
``` Gets the current ingame clock minute. ```
0x13D2B8ADD79640F2 - CLOCKint
GET_CLOCK_MONTH
Description not yet documented
0xBBC72712E80257A1 - CLOCKint
GET_CLOCK_SECONDS
``` Gets the current ingame clock second. Note that ingame clock seconds change really fast since a day in GTA is only 48 minutes in real life. ```
0x494E97C2EF27C470 - CLOCKint
GET_CLOCK_YEAR
Description not yet documented
0x961777E64BDAF717 - CLOCKvoid
GET_LOCAL_TIME
``` Gets local system time as year, month, day, hour, minute and second. Example usage: int year; int month; int day; int hour; int minute; int second; or use std::tm struct TIME::GET_LOCAL_TIME(&year, &month, &day, &hour, &minute, &second); ```
0x50C7A99057A69748 - CLOCKint
GET_MILLISECONDS_PER_GAME_MINUTE
Returns how many real ms are equal to one game minute. A getter for [`SetMillisecondsPerGameMinute`](#\_0x36CA2554).
0x2F8B4D1C595B11DB - CLOCKvoid
GET_POSIX_TIME
``` Gets system time as year, month, day, hour, minute and second. Example usage: int year; int month; int day; int hour; int minute; int second; TIME::GET_POSIX_TIME(&year, &month, &day, &hour, &minute, &second); ```
0xDA488F299A5B164E - CLOCKvoid
GET_UTC_TIME
``` Gets current UTC time ```
0x8117E09A19EEF4D3 - CLOCKvoid
PAUSE_CLOCK
Description not yet documented
0x4055E40BD2DBEC1D - CLOCKvoid
SET_CLOCK_DATE
Description not yet documented
0xB096419DF0D06CE7 - CLOCKvoid
SET_CLOCK_TIME
``` SET_CLOCK_TIME(12, 34, 56); ```
0x47C3B5848C3E45D8
A living reference. Documentation coverage varies by native and source.