Перейти к содержанию

GetTime

Материал из RAGE MP Wiki Archive

Gets the current time in the world.


TimeSpan NAPI.World.GetTime();

Example

<syntaxhighlight lang="csharp"> [Command("gettime")] public void GetTimeCommand(Client sender) {

   sender.sendChatMessage("Time: " + NAPI.World.GetTime().ToString());

}

</syntaxhighlight>