[FREE RELEASE] b2_vehicleEssentials v1.1.0

[FREE RELEASE] b2_vehicleEssentials v1.1.0

Hello FiveM Community!

We are thrilled to introduce b2_vehicleEssentials v1.1.0, a comprehensive script designed to enhance your server’s vehicle management experience. This latest version brings a host of features, optimizations, and improvements to ensure smooth and realistic gameplay.

Features

  • Dynamic Traffic Management: Adjusts traffic and pedestrian density based on the number of players online.
  • Automatic Seatbelts: Automatically applies seatbelts when players enter a vehicle.
  • Manual Seatbelts: Toggle seatbelts manually with a customizable keybind.
  • Speed Limiter: Set global and zone-specific speed limits for better traffic control.
  • Realistic Vehicle Damage: Advanced damage system including engine explosions, wheel fall-offs, and tire punctures.
  • NPC Driving Style: Configure various driving behaviors for NPCs.
  • Disable Vehicle Weapons: Prevents vehicles from giving weapons to players.
  • Steal NPC Cars: Players can carjack NPC vehicles with the engine running.
  • Debug Mode: Enable detailed debug information for developers.

Optimizations

We have optimized the script to ensure minimal impact on performance, running efficiently at 0.00-0.02ms.

Configuration

The script is highly customizable via the config.lua file. Here are some key settings:

  • Dynamic Traffic Management

    • Config.DynamicTrafficManagement = true
    • Adjusts density based on player count.
  • Automatic Seatbelts

    • Config.AutoSeatbeltOnEntry = true
  • Manual Seatbelts

    • Config.SeatbeltKey = 303 (Default: U key)
  • Speed Limiter

    • Config.SpeedLimiterEnabled = true
    • Global and zone-specific speed limits.
  • Traffic, Pedestrians, and Parked Vehicles

    • Config.TrafficAmount, Config.PedestrianAmount, Config.ParkedAmount
  • Enable/Disable Services

    • Config.EnableDispatch, Config.EnableBoats, Config.EnableTrains, Config.EnableGarbageTrucks
  • Disable Vehicle Weapons

    • Config.DisableVehicleWeapons = true
  • NPC Driving Style

    • Config.MentalState.DrivingStyle
  • Realistic Vehicle Damage

    • Config.DamageSystem.enabled = true
    • Various damage configurations.

Driving Style Options

  • 786603: Normal driving (default behavior)
  • 1074528293: Normal driving but avoiding obstacles more aggressively
  • 2883621: Fast and aggressive driving
  • 6: Very cautious driving
  • 1076: Sometimes stop before junctions, drive normally otherwise
  • 7: Ignore all traffic lights and drive normally
  • 16777216: Follow traffic laws strictly
  • 536871299: Very careful, stops a lot
  • 536871044: Reverse with care
  • 536871045: Reverse very carefully
  • 536870912: Very slow driving, usually used for non-road vehicles
  • 536871356: Use paths only (no roads)
  • 16777215: A combination of cautious and aggressive

Export Usage

You can dynamically change the NPC driving style from other scripts using the following export:

exports.b2_vehicleEssentials:ChangeNPCDrivingStyle(drivingStyle)

Example:

-- Change NPC driving style to fast and aggressive
exports.b2_vehicleEssentials:ChangeNPCDrivingStyle(2883621)

Installation

  1. Download the script and place it in your resources folder.
  2. Add start b2_vehicleEssentials to your server.cfg.

Support

For any issues, suggestions, or feedback, feel free to reach out on the forums or create an issue on the GitHub Repo.


We hope you enjoy the enhancements brought by b2_vehicleEssentials v1.1.0! Thank you for your support, and happy driving! :red_car::dash:


[GitHub Repository Link]


Screenshots



Code is accessible Yes
Subscription-based No
Lines (approximately) 450-500
Requirements Requirements
Support Yes
13 Likes

The NPC no CarJAck function does not work. GameBuild 3095