> For the complete documentation index, see [llms.txt](https://jerzys-sandbox.gitbook.io/jerzys-sandbox/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://jerzys-sandbox.gitbook.io/jerzys-sandbox/spawn-selector/integration/weather-sync.md).

# Weather Sync

In our latest update (0.0.7), we have introduced an exciting new feature: the Implementation Weather Sync Feature. This innovative configuration allows for dynamic weather synchronization, enhancing the immersion and realism in our environment.

## Configuration Details

**Setting Key:** `Config.SETTINGS.USE_WEATHER_SYNC`

**Purpose:** This setting enables real-time weather synchronization when players spawn into the game. It ensures that all players experience the same weather conditions simultaneously, providing a cohesive and unified environment.

## Implementation

{% hint style="info" %}
**Note:** The Weather Sync Feature is triggered automatically when a player joins the server, ensuring immediate synchronization of weather conditions for all players.
{% endhint %}

1. **Location:**
   * File: `client -> cl_custom.lua`
   * Line Number: 547
2. **How to Implement:**
   * Within the specified file and line, users can insert their custom weather sync event. This event will trigger upon player spawn, ensuring that the weather conditions are consistent across the server.
   * **Example Code Snippet:**

     ```lua
     CUSTOM.CUSTOM_WEATHER_SNYC = function()
         if not Config.SETTINGS.USE_WEATHER_SYNC then return end
         -- Place your Weather Sync trigger in here
         TriggerEvent('your-weather-sync:client:triggerSync')
     end
     ```
3. **Customization:**
   * The feature is designed to be flexible. Users can customize the weather sync event to suit the specific needs and themes of their server.
   * It’s important to ensure that the custom event is well-tested to avoid any conflicts or bugs that might affect the gameplay experience.

{% content-ref url="/pages/iGr7r8vuLEfRPHqib566" %}
[Basic Step](/jerzys-sandbox/spawn-selector/basic-step.md)
{% endcontent-ref %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://jerzys-sandbox.gitbook.io/jerzys-sandbox/spawn-selector/integration/weather-sync.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
