GetTime

From RAGE Multiplayer Wiki
Revision as of 14:05, 27 November 2019 by Avoid (talk | contribs) (Created page with "Gets the current time in the world. ==Syntax== {{#tag:pre|TimeSpan {{Template:CSharp_Serverside_namespace}}World.GetTime();}} ==Example== {{CSharpContainer| {{Example}} {{#t...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Gets the current time in the world.

Syntax

TimeSpan NAPI.World.GetTime();

Example

C# Syntax

Example

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