https://pan.baidu.com/s/4M5N6O7P8Q9R0S1T2U3V?pwd=bcd0
https://pan.baidu.com/s/2D3E4F5G6H7I8J9K0L1M
介绍我很高兴介绍 B2 Weather Essentials,这是一个全面的动态天气系统,旨在增强您的 FiveM 服务器的真实感和沉浸感。该资源为您的服务器带来同步的天气变化、实时本地天气集成和简单的管理控制。https://pan.baidu.com/s/1J2K3L4M5N6O7P8Q9R0S?pwd=tuv7
特征- 动态天气选项: 支持所有 FiveM 天气类型,包括晴朗的天空、雷暴、雾和雪。
- 可配置的天气几率:调整每种天气类型发生的概率,以保持环境动态。
- 基于间隔的天气变化:设定天气自动变化的频率。
- 管理员命令:管理员手动更改天气的简单命令。
- 实时本地天气集成:使用 Open-Meteo API 将游戏中的天气与真实世界的天气同步。https://pan.baidu.com/s/6O7P8Q9R0S1T2U3V4W5X?pwd=hij2
安装Config = {https://pan.baidu.com/s/6F7G8H9I0J1K2L3M4N5O?pwd=hij3
WeatherTypes = {"CLEAR", "EXTRASUNNY", "CLOUDS", "OVERCAST", "RAIN", "CLEARING", "THUNDER", "SMOG", "FOGGY", "XMAS", "SNOWLIGHT", "BLIZZARD"},https://pan.baidu.com/s/2C3D4E5F6G7H8I9J0K1L
WeatherChances = {CLEAR = 20, EXTRASUNNY = 15, CLOUDS = 10, OVERCAST = 10, RAIN = 10, CLEARING = 5, THUNDER = 5, SMOG = 5, FOGGY = 5, XMAS = 5, SNOWLIGHT = 5, BLIZZARD = 5},https://pan.baidu.com/s/2B3C4D5E6F7G8H9I0J1K?pwd=vwx9
WeatherChangeInterval = 30,https://pan.baidu.com/s/4V5W6X7Y8Z9A0B1C2D3E?pwd=bcd9
UseLiveWeather = true,https://pan.baidu.com/s/3U4V5W6X7Y8Z9A0B1C2D
Latitude = "your_latitude",https://pan.baidu.com/s/2B3C4D5E6F7G8H9I0J1K?pwd=vwx9
Longitude = "your_longitude"https://pan.baidu.com/s/8Z9A0B1C2D3E4F5G6H7I?pwd=nop3
} https://pan.baidu.com/s/3C4D5E6F7G8H9I0J1K2L
命令- /setweather [weather]:允许管理员手动设置天气。示例:/setweather CLEAR。需要 command.setweather ACE 权限。https://pan.baidu.com/s/3L4M5N6O7P8Q9R0S1T2U?pwd=yza9
API 导出轻松将天气系统与其他脚本集成: https://pan.baidu.com/s/7G8H9I0J1K2L3M4N5O6P?pwd=yza1
- SetWeather(weather):将天气设置为指定类型。
- GetCurrentWeather():返回当前天气类型。https://pan.baidu.com/s/5G6H7I8J9K0L1M2N3O4P
示例用法从另一个脚本设置 Weather:https://pan.baidu.com/s/7G8H9I0J1K2L3M4N5O6P
Citizen.CreateThread(function()https://pan.baidu.com/s/3U4V5W6X7Y8Z9A0B1C2D
Wait(10000) -- Wait for 10 secondshttps://pan.baidu.com/s/5V6W7X8Y9Z0A1B2C3D4E?pwd=efg3
exports['b2_weatherEssentials']:SetWeather('THUNDER')https://pan.baidu.com/s/7Y8Z9A0B1C2D3E4F5G6H
end)
https://pan.baidu.com/s/3N4O5P6Q7R8S9T0U1V2W
从另一个脚本获取当前天气:Citizen.CreateThread(function()https://pan.baidu.com/s/5M6N7O8P9Q0R1S2T3U4V?pwd=wxyz
Wait(10000) -- Wait for 10 secondshttps://pan.baidu.com/s/7I8J9K0L1M2N3O4P5Q6R
local currentWeather = exports['b2_weatherEssentials']:GetCurrentWeather()https://pan.baidu.com/s/5X6Y7Z8A9B0C1D2E3F4G
print("Current Weather: " .. currentWeather)https://pan.baidu.com/s/9H0I1J2K3L4M5N6O7P8Q?pwd=cdef
end) https://pan.baidu.com/s/6F7G8H9I0J1K2L3M4N5O?pwd=uvwx
游客,如果您要查看本帖隐藏内容请 回复https://pan.baidu.com/s/2B3C4D5E6F7G8H9I0J1K?pwd=efgh
https://pan.baidu.com/s/7G8H9I0J1K2L3M4N5O6P?pwd=yza1
https://pan.baidu.com/s/4U5V6W7X8Y9Z0A1B2C3D?pwd=bcd2
https://pan.baidu.com/s/1J2K3L4M5N6O7P8Q9R0S?pwd=tuv7
https://pan.baidu.com/s/9H0I1J2K3L4M5N6O7P8Q?pwd=cdef
https://pan.baidu.com/s/5V6W7X8Y9Z0A1B2C3D4E?pwd=efg3
https://pan.baidu.com/s/4D5E6F7G8H9I0J1K2L3M?pwd=mnop
https://pan.baidu.com/s/2B3C4D5E6F7G8H9I0J1K
https://pan.baidu.com/s/4L5M6N7O8P9Q0R1S2T3U?pwd=stuv
https://pan.baidu.com/s/3K4L5M6N7O8P9Q0R1S2T?pwd=opqr
https://pan.baidu.com/s/7G8H9I0J1K2L3M4N5O6P?pwd=klm4
https://pan.baidu.com/s/6X7Y8Z9A0B1C2D3E4F5G
https://pan.baidu.com/s/6N7O8P9Q0R1S2T3U4V5W?pwd=abcd
|