Code Studio
Tebex DiscordYoutubeGitHub
  • 🌟Welcome to Code Studio
  • Overview
    • 💡What we do
  • 📜Our Scripts
    • Ultimate License System
      • 🛠️Setup
    • Bodycam & Dashcam
      • 🛠️Setup
    • Weather Management
      • 🛠️Setup
    • Car Radio - Car Play Pro
      • 🛠️Setup
    • Modern HUD
      • 🛠️Setup
    • Modern Shops
      • 🛠️Setup
    • Advanced Radio
      • 🛠️Setup
    • Modern ID Card
      • 🛠️Setup
    • Billing Invoice System
      • 🛠️Setup
    • Radial Menu
      • 🛠️Setup
    • Death Screen
      • 🛠️Setup
    • Boss & Gang Menu
      • 🛠️Setup
    • Advanced Notification
      • 🛠️Setup
    • Fingerprint Scanner
      • 🛠️Setup
    • Drunk System + Alcohol Tester
      • 🛠️Setup
    • Advanced Job + ID Card
      • 🛠️Setup
    • Drug Selling + Level Based
      • 🛠️Setup
    • Multi Job System
      • 🛠️Setup
    • Discord2FiveM [V2]
      • 🛠️Setup
    • Modern Radio
      • 🛠️Setup
    • Grappling Gun
      • ♦️Standalone
  • ⚠️FiveM Escrow Protection FAQ
    • Home
    • Error parsing script ... <\1>
    • Failed to verify protected resource
    • You lack the required entitlement
    • What to do if nothing is fixing the errors
Powered by GitBook
On this page
  • Detailed Config is Provided with the script with detailed information:
  • Exports
  • Events
  • Commands
  • Additional detailed guidance can be found in the config itself. If you need further assistance, please feel free to contact us on Discord.
  1. Our Scripts
  2. Weather Management

Setup

This is a detailed setup guide for Weather Management. If you have any questions before making a purchase, you can contact us on Discord

PreviousWeather ManagementNextCar Radio - Car Play Pro

Last updated 7 months ago

Detailed Config is Provided with the script with detailed information:

Supports: Every Server

  • Integrated sync of events and exports from qb-weathersync, cd_easytime, and vSync. (Note: You only need our script running, no other weather script is required)

Exports

setWeather [type]

Switch to a specified weather type from CodeStudio.WeatherTypes

exports["cs_weather"]:setWeather("snow")

setTime [hour] (minute)

Sets sun position based on time to specified

exports["cs_weather"]:setTime(9, 20) -- 9:1=20 AM

setTimeFreeze [toggle]

Freeze or Unfreeze Time

exports["cs_weather"]:setTimeFreeze(true) -- true/false

setBlackout (true|false)

Sets or toggles blackout state

exports["cs_weather"]:setBlackout()

setDynamicWeather (true|false)

Sets or toggles dynamic weather state

exports["cs_weather"]:setDynamicWeather(); -- Toggle

getBlackoutState

Returns if the blackout is enabled or disabled

exports["cs_weather"]:getBlackoutState();

getTimeFreezeState

Returns if time progression is enabled or disabled

exports["cs_weather"]:getTimeFreezeState();

getWeatherState

Returns the current weather type

exports["cs_weather"]:getWeatherState();

getDynamicWeather

Returns if time progression is enabled or disabled

exports["cs_weather"]:getDynamicWeather();

getTime

Returns current server time

exports["cs_weather"]:getTime();

Events

All of these examples are triggered CLIENT side!

EnableSync

TriggerEvent('cs:weather:client:EnableSync')

DisableSync

TriggerEvent("cs:weather:client:DisableSync")

setTime

TriggerServerEvent("cs:weather:server:setTime", hour, minute)

setWeather

TriggerServerEvent("cs:weather:server:setWeather", TYPE)

Commands

/weather_panel - Toggle Dashboard

/freezeweather - Freeze weather

/weather [type] - Set weather

/freezetime [1/0] - Toggle Freeze Time

/blackout - Toggle blackout

/morning - Set time to 9am

/noon - Set time to 12pm

/evening - Set time to 6pm

/night - Set time to 11pm

/time [hour] [minute] - Set time to whatever you want

Additional detailed guidance can be found in the config itself. If you need further assistance, please feel free to contact us on Discord.

📜
🛠️