SetTime

From RAGE Multiplayer Wiki
Revision as of 13:40, 27 November 2019 by Avoid (talk | contribs) (Created page with "This function sets the world time. ==Syntax== {{#tag:pre|void {{Template:CSharp_Serverside_namespace}}World.SetTime(int hours, int minutes, int seconds);}} === Required Arg...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

This function sets the world time.


Syntax

void NAPI.World.SetTime(int hours, int minutes, int seconds);

Required Arguments

  • hours: parameter input should be in int type
  • minutes: parameter input should be in int type
  • seconds: parameter input should be in int type


Example

C# Syntax

Parameters

  • hours: parameter input should be in int type
  • minutes: parameter input should be in int type
  • seconds: parameter input should be in int type

Set time to 23:15.

Example

NAPI.World.SetTime(23, 15, 0);