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

SetTime

Материал из RAGE MP Wiki Archive
Версия от 20:52, 27 ноября 2019; imported>Avoid
(разн.) ← Предыдущая версия | Текущая версия (разн.) | Следующая версия → (разн.)

This function sets the world time.

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

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

Example

Set time to 23:15. <syntaxhighlight lang="csharp"> NAPI.World.SetTime(23, 15, 0); </syntaxhighlight>