SET_CLOCK_TIME
Sets the in-game time of day to the given hour, minute and second.
On multiplayer servers the time is usually synced by a weather/time resource, so local changes may be overridden.
Signature
void SET_CLOCK_TIME(int hour, int minute, int second); // 0x3A52C59FFB2DEED8 b1207Parameters
| # | Name | Type |
|---|---|---|
| 1 | hour | int |
| 2 | minute | int |
| 3 | second | int |
Facts
| Name | SET_CLOCK_TIME |
|---|---|
| Hash | 0x3A52C59FFB2DEED8 |
| Namespace | |
| Returns | void |
| Game build | 1207 |
Examples
Calls by hash work in every RedM runtime. Replace the placeholder arguments with your own values.
Citizen.InvokeNative(0x3A52C59FFB2DEED8, -- SET_CLOCK_TIME
0, -- int hour
0, -- int minute
0 -- int second
)Citizen.invokeNative("0x3A52C59FFB2DEED8", // SET_CLOCK_TIME
0, // int hour
0, // int minute
0 // int second
);Function.Call((Hash)0x3A52C59FFB2DEED8, // SET_CLOCK_TIME
0, // int hour
0, // int minute
0 // int second
);Related CLOCK natives
Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.