Configuration

Configuration

The configuration for b2_vehicleEssentials is managed through the config.lua file. Below are detailed explanations and examples for each configuration option.

Dynamic Traffic Management

The traffic density dynamically adjusts based on the number of players online.

  • Enable Dynamic Traffic Management:

    Config.DynamicTrafficManagement = true
  • Traffic Density Settings:

    Config.MaxTrafficDensity = 0.5 -- Base density when no players are online
    Config.MinTrafficDensity = 0.1 -- Minimum density when maximum players are online
    Config.MaxPlayers = 32 -- Maximum number of players expected on the server

Automatic Seatbelts

Automatically applies seatbelts when the player enters a vehicle.

  • Enable Automatic Seatbelts:

    Config.AutoSeatbeltOnEntry = true

Manual Seatbelts

Toggle seatbelts manually using a customizable keybind.

  • Manual Seatbelt Keybind:

    Config.SeatbeltKey = 303 -- U key (changeable)

Speed Limiter

Configure global and zone-specific speed limits.

  • Global Speed Limit:

  • Zone-Specific Speed Limits:

Traffic, Pedestrians, and Parked Vehicles

Adjust the amount of traffic, pedestrians, and parked vehicles.

  • Traffic Amount:

  • Pedestrian Amount:

  • Parked Vehicle Amount:

Enable/Disable Services

Enable or disable dispatch services, boats, trains, and garbage trucks.

  • Dispatch Services:

  • Boats:

  • Trains:

  • Garbage Trucks:

Disable Vehicle Weapons

Prevent vehicles from giving weapons to players.

  • Disable Vehicle Weapons:

NPC Driving Style

Configure various driving behaviors for NPCs.

  • Driving Style Configuration:

  • 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

Realistic Vehicle Damage System

Configure the realistic vehicle damage system.

  • Damage System Configuration:

Last updated