Loading...

Better Traffic Laws 3.2.1

Download

37,061

Better Traffic Laws

This modification adds traffic rules to the game. The following penalties are enabled by default:
  • Running a red light (speed > 5 KPH/MPH; turning right on red is allowed)
  • Speeding (time > 2 seconds)
  • Driving against traffic (time > 2 seconds)
  • Driving on a pavement (time > 2 seconds)
  • Hitting a pedestrian
  • Crashing into another car (speed > 10 KPH/MPH)
  • Using a mobile phone while driving (time > 3 seconds)
  • Driving without a helmet (speed > 10 KPH/MPH)
  • Performing a wheelie (time > 3 seconds)
  • Performing a burnout (time > 3 seconds)

All penalties have some soft conditions (in the braces), these conditions must be met for triggering a violation. For example you should drive on the pavement for at least 2 seconds to trigger the nearby cops that can see you (there's no obstacle between you and the cop, and the cop is looking in your direction).

Running a red light works a little differently: the moment you cross the line while the surrounding traffic is held at the red it remembers whether a cop saw you, then waits 4 seconds to see what you do. If you have turned right by then it counts as a legal turn on red and nothing happens; otherwise the ticket lands using the cop that witnessed the crossing. Because only the crossing and the moment 4 seconds later are checked, a quick wiggle of the wheel, a brief stop, or backing up a bit won't get you off the hook.

Any siren-equipped vehicle with the siren on is exempt from all detection - police cars, FBI, riot vans, the police bike, the park ranger, ambulance and fire trucks alike - so responding to a call won't earn you a wanted level. This can be turned off in the menu or .ini.

This mod is compatible with Rebalanced Dispatch Enhanced.

All penalties are configurable in the .ini file.

Mod data location
As of 3.0.4 the mod stores its data (log and BetterTrafficLaws.ini) in %APPDATA%\GTA V Mods\KernelPryanic\BetterTrafficLaws instead of the game folder. This fixes the log and settings not updating on GTA V Enhanced, where the game locks every file inside the game directory for the whole session. If you are upgrading and want to keep your settings, manually copy your old BetterTrafficLaws.ini from your old scripts (or game root) folder into the new location above.

Default keys
  • Shift+B - Open menu

Dependencies

Recommendations

Installation
Just extract the content of the BetterTrafficLaws.zip to the root of your GTA 5 directory.
Or use my Vortex extension for GTA 5.

⚠️ Note ⚠️
New major versions (2.X.X, 3.X.X, etc.) are not compatible with the old configuration files, please remove scripts/BetterTrafficLaws.ini config before switching to the new major version.

Source
Open source on GitHub.

License
Released under the MIT License - free to use, modify and build on, including in your own mods. The only condition is to credit the author (Daniil Trishkin aka Kernel Pryanic) and keep the copyright and licence notice in any copy or derivative.

Changelog

3.2.1
  • Exempt every siren-equipped vehicle on duty, not just the Emergency class - the police bike, park ranger, FBI and riot vans are now covered too
  • Log applied tickets and red-light verdicts at the default level, so the log explains what happened without switching to Debug; internal status lines no longer show up as errors

3.2.0
  • Allow turning right on red - a red-light crossing is now judged 4 seconds later by how far you turned, so a genuine right turn is no longer ticketed
  • Make red-light detection harder to cheat - a quick wheel wiggle, a brief stop, or backing up after crossing no longer avoids the penalty
  • The red-light ticket now reflects the cop that witnessed the crossing, not whoever happens to be nearby a few seconds later
  • Exempt on-duty emergency vehicles (police/ambulance/fire) with the siren on from all detection (configurable)
  • Add a configurable log level (Info/Debug/Error) in the menu for easier troubleshooting
  • Fix a crash that could silently disable detection near parked, driverless cars

3.1.0
  • Change the default menu key to Shift+B (existing users keep their configured key)

3.0.4
  • Fix log and settings not updating on GTA V Enhanced - mod data now lives in %APPDATA%\GTA V Mods\KernelPryanic\BetterTrafficLaws, outside the game folder the game locks (see "Mod data location" above)

3.0.3
  • Open and close the menu with the same key
  • Fix penalties disabled in the .ini being reset to enabled on every launch
  • Write the log file next to the DLL in scripts/ instead of the game root
  • Improve stability: don't crash on despawning peds or logging errors
  • Update for the latest ScriptHookVDotNet API

3.0.2
  • Fix triggering a violation while the vehicle is standing still

3.0.1
  • Don't trigger violations if the player is in plane, helicopter, boat, train or bicycle

3.0.0
  • Fix out of range speed unit issue (KPH/MPH)
  • Fix preserving the "Enabled" checkbox state
  • Fix the issue with the dead cop detects violation
  • Make cops detecting only the violations that they can see directly
  • Make some soft conditions a little bit softer/realistic
  • Instantiate configuration file on the first run instead of supplying it in the separate file
  • Rename KMH to KPH
  • Add more "Cops Visibility Distance" variants

2.0.3
  • Remove dependencies from the archive as people seems to struggle installing the mod when all the dependencies included in the archive and possibly conflict with the installed ones

2.0.2
  • Update SHVDN dependency to the latest version due to the NullReferenceException issue
  • Migrate from NativeUI to LemonUI

2.0.1
  • Fix bug with occasional mod crash

2.0.0
  • Fix inability to change the menu button key
  • Fix and don't charge penalties on bicycle anymore
  • Increased the peed limit customization up to 200
  • Add penalties for: using mobile phone while driving, driving without
    helmet, wheeling and burnout
  • Add ability to turn on and off penalties in the .ini file

1.3.0
  • Migrate to ScriptHookVDotNet3
  • Make more stable
  • Try to avoid triggering police if somebody runs into your car

1.2.0
  • Reduce false triggering of red light overpass
  • Add 1.5 sec interval before triggering of overspeed violation

1.1.0
  • Calibrate red light detection

1.0.2
  • Bug fixes

1.0.1
  • Bug fixes
Show Full Description

First Uploaded: June 29, 2019
Last Updated: July 01, 2026
Last Downloaded: 2 hours ago

All Versions

 3.2.1 (current)

842 downloads , 10 KB
July 01, 2026

 3.2.0

316 downloads , 10 KB
June 28, 2026

 3.1.0

244 downloads , 8 KB
June 26, 2026

 3.0.4

234 downloads , 7 KB
June 24, 2026

 3.0.3

216 downloads , 7 KB
June 23, 2026

 3.0.2

5,371 downloads , 7 KB
August 04, 2024

 3.0.1

562 downloads , 7 KB
July 31, 2024

 3.0.0

162 downloads , 7 KB
July 31, 2024

 2.0.3

1,835 downloads , 7 KB
July 03, 2024

 2.0.2

569 downloads , 2.38 MB
July 02, 2024

 2.0.1

10,273 downloads , 2.03 MB
June 26, 2022

 2.0.0

143 downloads , 2.03 MB
June 26, 2022

 1.3.0

793 downloads , 2.03 MB
June 23, 2022

 1.2.0

13,412 downloads , 407 KB
July 07, 2019

 1.1.0

1,169 downloads , 406 KB
July 01, 2019

 1.0.2

252 downloads , 406 KB
July 01, 2019

 1.0.1

210 downloads , 406 KB
June 30, 2019

 1.0.0

495 downloads , 407 KB
June 29, 2019

96 Comments