Skip to Content
Mavix

Weather & Time

The same weather and clock for everyone, and the staff commands to change them.

What it is

Everyone on the server sees the same weather and the same time of day. The weather changes by itself in a natural order (sun, clouds, sometimes rain). One game day lasts 48 real minutes.

How it works

Nothing to do for players. Staff can change the weather and the clock at any time with the commands below. A manual change shows for everyone at once.

Keys & commands

CommandWhat it doesWho
/weather <type>Set the weather, e.g. /weather rainAdmin
/time <hour> <minute>Set the clock, e.g. /time 21 30Admin
/morning, /noon, /evening, /nightJump to 09:00, 12:00, 18:00 or 23:00Admin
/freezetimeStop or restart the clockAdmin
/freezeweatherStop or restart the automatic weather changesAdmin
/blackoutTurn all city lights off or onAdmin

Weather types: extrasunny, clear, neutral, smog, foggy, overcast, clouds, clearing, rain, thunder, snow, blizzard, snowlight, xmas, halloween.

Config options

At the top of [scripts]/[standalone]/mvx_scripts/modules/world_sync/vs_server.lua:

OptionWhat it changesExample
DynamicWeathertrue = the weather changes by itselftrue
CurrentWeatherWeather when the server starts"EXTRASUNNY"

Admin Quick Test

Setup

  1. Be admin or owner. A second player helps to see that both of you get the same weather.

Weather

  1. Type /weather rain. It starts raining at once for everyone.
  2. Type /weather thunder, then /weather foggy. Each one shows right away.
  3. Type /freezeweather. The weather stays as it is and stops changing by itself. Type it again to turn the automatic changes back on.

Time

  1. Type /night. The clock jumps to 23:00 and it gets dark.
  2. Type /time 12 30. The clock shows 12:30.
  3. Type /freezetime. The clock stops. Type it again and it runs on (one game minute is 2 real seconds).
  4. Type /blackout. All city lights go off. Type it again to turn them on.

Back to normal

  1. Type /weather extrasunny and /morning. Sunny morning again.

If it doesn't work: "You do not have access to that command." → your rank is not admin or owner. /morning, /noon, /evening and /night only work in game chat; in the console use time 9 0.

On this page