Exports

Exports

The b2_vehicleEssentials script includes exports that allow other scripts to interact with its features.

ChangeNPCDrivingStyle

Change the driving style of NPCs dynamically.

  • Usage:

    exports.b2_vehicleEssentials:ChangeNPCDrivingStyle(drivingStyle)
  • Example:

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

Last updated