Troubleshooting
Troubleshooting
In this section, we will address some common issues you might encounter while using b2_weatherEssentials and provide solutions to help you resolve them.
Table of Contents
Installation Issues
Configuration Issues
Weather Sync Issues
Time Sync Issues
Live Weather Integration Issues
Extreme Weather Events Issues
Blackout Issues
Voting System Issues
General Debugging Tips
Installation Issues
Issue: Resource Not Starting
Symptoms:
The resource does not start when the server is launched.
You see error messages related to b2_weatherEssentials in the console.
Solutions:
Ensure that the
b2_weatherEssentialsfolder is placed correctly in theresourcesdirectory.Verify that
ensure b2_weatherEssentialsis added to yourserver.cfgfile.Check for any typos in the resource folder name or the
server.cfgentry.
Configuration Issues
Issue: Invalid Weather Type
Symptoms:
Admin commands return "Invalid weather type" errors.
Weather does not change as expected.
Solutions:
Verify that the weather types specified in
config.luamatch the valid FiveM weather types.Ensure that the weather types are written in uppercase.
Issue: Configuration Changes Not Applying
Symptoms:
Changes made in
config.luado not take effect.
Solutions:
Restart the server after making changes to
config.lua.Check for syntax errors in
config.luathat might prevent the script from loading correctly.
Weather Sync Issues
Issue: Weather Not Synchronizing Across Players
Symptoms:
Players see different weather conditions.
Weather changes do not propagate to all clients.
Solutions:
Ensure that weather synchronization is enabled using
exports.b2_weatherEssentials:EnableWeatherSync().Check for any errors in the server and client logs related to weather synchronization.
Verify that there are no conflicting weather scripts running on the server.
Time Sync Issues
Issue: Time Not Synchronizing with Server Time
Symptoms:
In-game time does not match the server's real-world time.
Time changes do not apply to all players.
Solutions:
Ensure that time synchronization is enabled using
exports.b2_weatherEssentials:EnableTimeSync().If using real-time synchronization, verify that
Config.UseRealTimeis set totrueinconfig.lua.Check for any errors in the server and client logs related to time synchronization.
Live Weather Integration Issues
Issue: Live Weather Data Not Fetching
Symptoms:
The in-game weather does not match real-world weather conditions.
Errors related to fetching weather data appear in the logs.
Solutions:
Verify that
Config.UseLiveWeatheris set totrueinconfig.lua.Ensure that the correct latitude and longitude are provided in
config.lua.Check for any errors in the server logs related to HTTP requests.
Verify that the server has internet access to reach the Open-Meteo API.
Extreme Weather Events Issues
Issue: Extreme Events Not Triggering
Symptoms:
Commands to trigger extreme events do not work.
No changes occur when attempting to trigger an event.
Solutions:
Ensure that the extreme event is enabled in
Config.ExtremeEvents.Check for any errors in the server and client logs related to extreme events.
Verify that the command syntax is correct (e.g.,
/extremeevent EARTHQUAKE).
Blackout Issues
Issue: Blackouts Not Working
Symptoms:
Commands to trigger or clear blackouts do not work.
No changes occur when attempting to trigger a blackout.
Solutions:
Check for any errors in the server and client logs related to blackout events.
Ensure that
isBlackoutis being set correctly in the script.Verify that the command syntax is correct (e.g.,
/blackoutand/clearblackout).
Voting System Issues
Issue: Voting System Not Starting
Symptoms:
Voting sessions do not begin as scheduled.
Players cannot vote for weather changes.
Solutions:
Ensure that
Config.EnableVotingSystemis set totrueinconfig.lua.Check for any errors in the server and client logs related to the voting system.
Verify that the server is running without any conflicts from other scripts that may interfere with voting.
Issue: Votes Not Counting
Symptoms:
Votes do not get registered during voting sessions.
Players receive errors when trying to vote.
Solutions:
Ensure that the voting session is active when players are attempting to vote.
Check for any errors in the server and client logs related to vote handling.
Verify that players are using the correct command syntax (e.g.,
/weathervote CLEAR).
General Debugging Tips
Enable Debugging:
Set
Config.Debuggingtotrueinconfig.luato enable detailed debug output in the server and client logs.
Check Logs:
Review the server and client logs for any error messages or warnings. These logs can provide valuable information about what might be going wrong.
Verify Dependencies:
Ensure that all required dependencies (such as b2_vehicleEssentials if used) are installed and running correctly.
Test in Isolation:
Disable other scripts temporarily to see if the issue persists. This can help identify if there are conflicts with other resources.
Update Resources:
Make sure you are using the latest version of b2_weatherEssentials and any related dependencies.
Reach Out for Support:
If you are unable to resolve an issue, join our Discord server for support: B2Scripts Discord
Last updated