> For the complete documentation index, see [llms.txt](https://b2-scripts.gitbook.io/help/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://b2-scripts.gitbook.io/help/free-product-guides/b2-weather-essentials/troubleshooting.md).

# 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**

1. Installation Issues
2. Configuration Issues
3. Weather Sync Issues
4. Time Sync Issues
5. General Debugging Tips

***

### Installation Issues

<details>

<summary>Issue: Resource Not Starting</summary>

**Symptoms:**

* The resource does not start when the server is launched.
* You see error messages related to b2\_weatherEssentials in the console.

**Solutions:**

1. Ensure that the `b2_weatherEssentials` folder is placed correctly in the `resources` directory.
2. Verify that `ensure b2_weatherEssentials` is added to your `server.cfg` file.
3. Check for any typos in the resource folder name or the `server.cfg` entry.

</details>

### Configuration Issues

<details>

<summary>Issue: Invalid Weather Type</summary>

**Symptoms:**

* Admin commands return "Invalid weather type" errors.
* Weather does not change as expected.

**Solutions:**

1. Verify that the weather types specified in `config.lua` match the valid FiveM weather types.
2. Ensure that the weather types are written in uppercase.

</details>

<details>

<summary>Issue: Configuration Changes Not Applying</summary>

**Symptoms:**

* Changes made in `config.lua` do not take effect.

**Solutions:**

1. Restart the server after making changes to `config.lua`.
2. Check for syntax errors in `config.lua` that might prevent the script from loading correctly.

</details>

### Weather Sync Issues

<details>

<summary>Issue: Weather Not Synchronizing Across Players</summary>

**Symptoms:**

* Players see different weather conditions.
* Weather changes do not propagate to all clients.

**Solutions:**

1. Ensure that weather synchronization is enabled using `exports.b2_weatherEssentials:EnableWeatherSync()`.
2. Check for any errors in the server and client logs related to weather synchronization.
3. Verify that there are no conflicting weather scripts running on the server.

</details>

### Time Sync Issues

<details>

<summary>Issue: Time Not Synchronizing with Server Time</summary>

**Symptoms:**

* In-game time does not match the server's real-world time.
* Time changes do not apply to all players.

**Solutions:**

1. Ensure that time synchronization is enabled using `exports.b2_weatherEssentials:EnableTimeSync()`.
2. If using real-time synchronization, verify that `Config.UseRealTime` is set to `true` in `config.lua`.
3. Check for any errors in the server and client logs related to time synchronization.

</details>

### Live Weather Integration Issues

### General Debugging Tips

1. **Enable Debugging:**
   * Set `Config.Debugging` to `true` in `config.lua` to enable detailed debug output in the server and client logs.
2. **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.
3. **Verify Dependencies:**
   * Ensure that all required dependencies (such as b2\_vehicleEssentials if used) are installed and running correctly.
4. **Test in Isolation:**
   * Disable other scripts temporarily to see if the issue persists. This can help identify if there are conflicts with other resources.
5. **Update Resources:**
   * Make sure you are using the latest version of b2\_weatherEssentials and any related dependencies.
6. **Reach Out for Support:**
   * If you are unable to resolve an issue, join our Discord server for support: [B2Scripts Discord](https://discord.gg/KZRBA6H5kR)
