GetTime

From GTA Network Wiki
Jump to: navigation, search

GetTime
Server-Side Function

utilities-terminal.png Server-Side csharp.png C#

Gets the current time in the world. You can set this with SetTime.

Syntax

TimeSpan NAPI.World.GetTime();

Usage example(s)

[Command("gettime")]
public void GetTimeCommand(Client sender)
{
  sender.sendChatMessage("Time: " + NAPI.World.GetTime().ToString());
}

References