FRY DEVELOPMENT
TEBEXYOUTUBEDISCORD
  • πŸ“–Welcome
  • Information
    • πŸ”‘Licensing System
    • πŸ“ƒTerms of Service (ToS)
  • πŸ—ΊοΈSPAWN SELECTOR
    • ℹ️Basic Step
    • πŸ”ŒIntegration
      • πŸ’»FW: QBCore
      • πŸ’»FW: QBX
      • 🏬Setup Apartments
      • ☁️Weather Sync
    • βš™οΈConfiguration Settings
      • 🎨UI Customization Guide
      • πŸ› οΈConfig
      • 🌐Translation
      • πŸ–οΈCustomizing Player Spawn-In
    • πŸ› οΈCommon Issues
      • Soon Edit
Powered by GitBook
On this page
  • Configuration Details
  • Implementation

Was this helpful?

  1. SPAWN SELECTOR
  2. Integration

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

Note: The Weather Sync Feature is triggered automatically when a player joins the server, ensuring immediate synchronization of weather conditions for all players.

  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:

      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.

PreviousSetup ApartmentsNextConfiguration Settings

Last updated 1 year ago

Was this helpful?

πŸ—ΊοΈ
πŸ”Œ
☁️
ℹ️Basic Step