原贴:https://forum.cfx.re/t/qb-weathersync-but-blackout-effect-will-be-overridden-in-zones/5254025
QBCore WeatherSync 与停电区 该资源是 QBCore Framework 的 qb-weathersync 的增强版本,其中包括管理停电区域的功能。它允许特定区域在停电期间保持灯光,为您的服务器提供更加身临其境且可定制的环境。
QBCore WeatherSync 与停电区 该资源是 QBCore Framework 的 qb-weathersync 的增强版本,其中包括管理停电区域的功能。它允许特定区域在停电期间保持灯光,为您的服务器提供更加身临其境且可定制的环境。
特征
- 新的 可定制的停电区域,即使在停电期间灯也保持亮着。
配置
在配置文件中添加自定义停电区域。打开 config.lua 并添加您的停电区域,如下所示:
lua:
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
}
下载
GitHub - SinorSystem/qb-weathersync: qb-weathersync but This script defines specific zones where the blackout effect will be overridden
qb-weathersync but This script defines specific zones where the blackout effect will be overridden - SinorSystem/qb-weathersync
github.com