Integration with External Resources

Integration with Other Resources

Example: Integrating with b2_vehicleEssentials (natively supported!)

b2_weatherEssentials can adjust NPC driving styles based on weather conditions if you have b2_vehicleEssentials installed. Ensure you have b2_vehicleEssentials installed and set Config.UsingVehicleEssentials = true in the configuration file.

Step-by-Step Integration Guide

  1. Ensure b2_vehicleEssentials is installed and running on your server.

  2. Enable integration in the b2_weatherEssentials config:

    Config.UsingVehicleEssentials = true
  3. Weather-based driving styles are automatically handled. When the weather changes, the NPC driving styles will adjust accordingly.

Example: Using Weather and Time Sync in Interiors

To disable weather sync when a player is inside an interior or shell, you can use the following exports:

exports.b2_weatherEssentials:DisableWeatherSync()
exports.b2_weatherEssentials:EnableWeatherSync()

Similarly, for time sync:

exports.b2_weatherEssentials:DisableTimeSync()
exports.b2_weatherEssentials:EnableTimeSync()

Last updated