Better Traffic Laws 3.2.1
37,061
340
37,061
340
Better Traffic Laws
This modification adds traffic rules to the game. The following penalties are enabled by default:
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
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
3.2.0
3.1.0
3.0.4
3.0.3
3.0.2
3.0.1
3.0.0
2.0.3
2.0.2
2.0.1
2.0.0
1.3.0
1.2.0
1.1.0
1.0.2
1.0.1
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
- Simple and stable cruise control - Simple Speed Limiter & Cruise Control
- Convenient and accurate speedometer - LeFix
Speedometer - More cops patrols - Cops: Back on
the Beat
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
First Uploaded: June 29, 2019
Last Updated: July 01, 2026
Last Downloaded: 2 hours ago
All Versions
96 Comments
Better Traffic Laws
This modification adds traffic rules to the game. The following penalties are enabled by default:
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
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
3.2.0
3.1.0
3.0.4
3.0.3
3.0.2
3.0.1
3.0.0
2.0.3
2.0.2
2.0.1
2.0.0
1.3.0
1.2.0
1.1.0
1.0.2
1.0.1
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
- Simple and stable cruise control - Simple Speed Limiter & Cruise Control
- Convenient and accurate speedometer - LeFix
Speedometer - More cops patrols - Cops: Back on
the Beat
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
First Uploaded: June 29, 2019
Last Updated: July 01, 2026
Last Downloaded: 2 hours ago



Seems that the SHVDN issue was fixed in the build nighlty.115 (https://github.com/scripthookvdotnet/scripthookvdotnet-nightly/releases/tag/v3.6.0-nightly.115), if you got any issues, please try this or the newer one (>= nightly.115).
@null_pointer Does this work with RDE?
@Chanex didn't check that, but I think it should be compatible.
@null_pointer it's compatible)
@sinoptick nice, thanks for the info!
@null_pointer Yeah I just installed it with RDE, it's compatible
Heyo, I installed this mod to give it a go and found that police were far too eager to pull me over for the smallest infractions, so I tried to get rid of it. Well, it turns out that removing the files isn't enough and the mod remains in my game despite me not physically having the files for it. Any fix for this? It's getting frustrating getting pulled over for going 1 kph over, even with config file changes that also never got registered in-game so I couldn't turn anything off.
Hello @Octavia038, please make sure the mod is no longer in the "scripts" folder that is in the root of the game. As soon as you remove the mod, it can't be executed anymore. Don't forget to either restart the game or hot-reload the scripts by pressing the reload key you set up in the SHVDN (if any).
got all the requirement , not working for me
@null_pointer does shvdn work with lemon ui i tried that with vitalityplus+ and it failed and i was wondering does you mod works with lemon ui and shvdn?
@CyJJ it does, you just need updated SHVDN version for Enhanced GTA 5 https://www.gta5-mods.com/tools/script-hook-v-net-enhanced.
@Bigsossa sorry, I forgot to update dependency link, please make sure you're using SHVDN for Enhanced game version.
@null_pointer im using legacy?
@CyJJ you can still try https://www.gta5-mods.com/tools/script-hook-v-net-enhanced - it claims that it also works with legacy, I didn't test myself, also please check if you have latest LemonUI
@justalemon hello why does lemonui dosent work with shvdn 3.7.0 legacy?
does this work on Enhanced?
@SweetCandy_3000 yes
Do the police try to pull you over to issue a ticket or fine... or is it just a typical 1-2 star where they shoot on site like in vanilla gta?
@MAKINxBACONx89 it's simple, just one star chase
The Menu opens, but it doesn't work at all, no 1 star chases
The mod doesn't work for me. It refuses to open the menu and I don't get chased after speeding
literally just isn't loading