SAFScriptsDocs

Troubleshooting

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

On this page

The sky flickers or the weather keeps changing back

Another script is setting the weather or time too. Look for the conflict warning in the server console on start, then remove qb-weathersync, qbx_weathersync, cd_easytime or vSync from server.cfg. See Other weather scripts.

vMenu keeps overriding the time

vMenu's own sync is on. Add these to server.cfg and restart:

server.cfg
setr vmenu_enable_weather_sync false
setr vmenu_enable_time_sync false

It rains inside houses and shells

Your housing script pauses the weather through qb-weathersync events. Check that Config.Sync.Compat is true. If the script calls exports['qb-weathersync'] directly, change it to exports['saf-weather']:PauseSync(true) on enter and PauseSync(false) on exit.

/weather does nothing

The player isn't staff. Check the add_ace group.admin weather.staff allow line and the player's group. Run test_ace player.<id> weather.staff in the server console. Framework groups only count when they are in Config.StaffGroups.

Time changes slowly instead of jumping

That is the ease: clients run the clock forward over Config.Time.EaseSeconds so the sky doesn't snap. Set it to 0 to jump straight to the new time, or pass instant = true as the third argument to SetTime.

The weather never changes on its own

Dynamic mode is off. Turn it on with the Dynamic button in the panel, Config.Dynamic.Enabled = true, or exports['saf-weather']:SetDynamic(true). Some presets, like Storm night, turn it off.

The clock doesn't match real time

Config.Time.RealTime follows UTC plus Config.Time.RealTimeOffset. Set the offset to your timezone's hours from UTC and change it when daylight saving starts or ends.

A restart lost the weather and time

Config.Sync.Save is false, or the server can't write state.json in the resource folder. Check the folder is writable.

Halloween rain or snow shows as clear

RAIN_HALLOWEEN and SNOW_HALLOWEEN need game build 3095 or newer. Raise sv_enforceGameBuild or remove those types from 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.