Qb-weathersync but blackout effect will be overridden in zones

QBCore WeatherSync with Blackout Zones

This resource is an enhanced version of qb-weathersync for QBCore Framework, which includes the functionality to manage blackout zones. It allows specific areas to have lights during a blackout, providing a more immersive and customizable environment for your server.

Features

new

  • Customizable blackout zones where lights remain on even during a blackout.

Configuration

Add your custom blackout zones in the configuration file. Open config.lua and add your blackout zones as follows:

Config = {}
Config.DynamicWeather = false -- Set this to false if you don't want the weather to change automatically every 10 minutes.

-- On server start
Config.StartWeather = 'FOGGY' -- Default weather                       default: 'EXTRASUNNY'
Config.BaseTime = 8 -- Time                                             default: 8
Config.TimeOffset = 0 -- Time offset                                      default: 0
Config.FreezeTime = false -- freeze time                                  default: false
Config.Blackout = true -- Set blackout                                 default: false
Config.BlackoutVehicle = false -- Set blackout affects vehicles                default: false
Config.NewWeatherTimer = 10 -- Time (in minutes) between each weather change   default: 10
Config.Disabled = false -- Set weather disabled                         default: false

Config.AvailableWeatherTypes = { -- DON'T TOUCH EXCEPT IF YOU KNOW WHAT YOU ARE DOING
    'EXTRASUNNY',
    'CLEAR',
    'NEUTRAL',
    'SMOG',
    'FOGGY',
    'OVERCAST',
    'CLOUDS',
    'CLEARING',
    'RAIN',
    'THUNDER',
    'SNOW',
    'BLIZZARD',
    'SNOWLIGHT',
    'XMAS',
    'HALLOWEEN',
}

Config.blackoutZones = {
    {coords = vector3(440.84, -981.14, 30.69), radius = 50.0}, -- Example
    {coords = vector3(1850.74, 3685.76, 34.26), radius = 100.0},  -- Example
    -- Add more zones
}

Link:

github

preview

Click me to watch the video

Other Scripts

Standalone|AdvancedZombieSystem
Standalone|ZombieSystem
Standalone|VehicleSpawner
standalone|SurvivalHUD
QBCore|RobberyCreator
QBCore|SafeZone
QBCore|Shop
QBCore|PhoneStoreRobbery
QBCore|CamperHousing
QBCore|LootBags
ESX|LootBags
ESX/QBCore|InGameMusic
ESX/QBCore|RadiationZones
ESX/QBCore|LootAreas
ESX/QBCore|CraftingVehicles

Support:
you can join my discord for any support ! Sinor System

Code is accessible Yes
Subscription-based Yes
Lines (approximately) N/A
Requirements qb-core
Support Yes
4 Likes

Hello, what should I do to make the days last longer? What does time offset do?

i think its “Config.BaseTime = 8 – Time” 8 is in minutes you can change there to make days last longer and i believe days = nights so 8 minutes for both