World::time.set: Difference between revisions

From RAGE Multiplayer Wiki
No edit summary
Line 1: Line 1:
__NOTOC__
__TOC__
 
{{ServersideJsFunction}}
 
This function sets time.
This function sets time.


==Params==
{{JSContainer|
*<span style="color: green;">'''int'''</span> '''hour''' (0 - 23)<br />
== Syntax ==
*<span style="color: green;">'''int'''</span> '''minute''' (0 - 59)<br />
<pre>
*<span style="color: green;">'''int'''</span> '''second''' (0 - 59)
mp.world.time.set(hour, minute, second);
</pre>
 
== Required Arguments ==
*{{Required}}'''hour''': {{RageType|Int}} (0 - 23)
*{{Required}}'''minute''': {{RageType|Int}} (0 - 59)
*{{Required}}'''second''': {{RageType|Int}} (0 - 59)


==Example==
==Example==
<syntaxhighlight lang="javascript">
{{ServersideCode|
mp.world.time.set(hour, minute, second);
// TODO: Example
</syntaxhighlight>
}}
}}


==See Also==
==See Also==
{{World_definition}}
{{World_definition}}
[[Category:TODO: Example]]

Revision as of 09:00, 7 December 2019

Server-Side
Function

 JavaScript



This function sets time.

JavaScript Syntax

Syntax

mp.world.time.set(hour, minute, second);

Required Arguments

  • *hour: Int (0 - 23)
  • *minute: Int (0 - 59)
  • *second: Int (0 - 59)

Example

Server-Side

// TODO: Example


See Also