SAFScriptsDocs

Commands & keys

SAF Weather is coming soon. These docs describe the build that will ship.

On this page

Command names come from Config.Commands, so yours may differ if you renamed them. Any command set to false is turned off.

Staff commands

These need weather.staff or a group in Config.StaffGroups (see Installation).

CommandWhat it does
/weatherOpen the control panel
/setweather <type> [seconds]Change the weather, e.g. /setweather thunder 60
/settime <hour> [minute]Set the time, e.g. /settime 18 30 or /settime 18:30
/freezetime [on/off]Freeze or unfreeze the clock. No argument toggles
/blackout [on/off]Turn the city lights out or back on. No argument toggles

/setweather, /settime, /freezetime and /blackout also work from the server console. The seconds in /setweather is the blend time; without it, Config.Weather.TransitionSeconds is used.

Player commands

CommandWhat it does
/forecastShow the forecast card: the weather now, temperature, wind and the next changes

Keys

No keys are bound by default. Set Config.Commands.PanelKey or ForecastKey to give players a default, or let them bind /weather and /forecast in Settings > Key Bindings > FiveM.

In the panel

KeyWhat it does
Shift while dragging the dialSnap to 1 minute instead of 5
EscClose the panel
SAF Scripts by San Andreas' Finest StoreDiscordsupprot@safrp.org

Not affiliated with or endorsed by Rockstar Games, Take-Two Interactive or Cfx.re.