The Lab
CLOCK native

SET_CLOCK_TIME

returns void3 paramsbuild 1207

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

C
void SET_CLOCK_TIME(int hour, int minute, int second); // 0x3A52C59FFB2DEED8 b1207

Parameters

#NameType
1hourint
2minuteint
3secondint

Facts

Facts about SET_CLOCK_TIME
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.

Lua
Citizen.InvokeNative(0x3A52C59FFB2DEED8, -- SET_CLOCK_TIME
  0, -- int hour
  0, -- int minute
  0 -- int second
)
JavaScript
Citizen.invokeNative("0x3A52C59FFB2DEED8", // SET_CLOCK_TIME
  0, // int hour
  0, // int minute
  0 // int second
);
C#
Function.Call((Hash)0x3A52C59FFB2DEED8, // SET_CLOCK_TIME
  0, // int hour
  0, // int minute
  0 // int second
);
All CLOCK natives

Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.