player.setDateTime

Description

Used to set a player's date and time.

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

Syntax

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

Real World Example

// 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 ""