Used to set a player's date and time.

Highly recommended to disable player clock on client-side while using this.


setDateTime(day: DateTimeDay, month: DateTimeMonth, year: number, hour: DateTimeHour, minute: DateTimeMinute, second: DateTimeSecond): void;

Example Usage

// day, month, year, hour, minute, second
player.setDateTime(24, 1, 1994, 7, 0, 0); // 7 AM on January 24, 1994

results matching ""

    No results matching ""