Skip to content
View in the app

A better way to browse. Learn more.

LCPDFR.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Traffic Block 1.4.1

(10 reviews)

4 Screenshots

This plugin allows you to place barriers and cones to stop the traffic.

Alternatively you can use your police car to block the road and stop the traffic.

 

 

Do you need Help with this plugin?

Read the "Troubleshooting" section!

 

Details

 

This lightweight plugin will add two features to your game. It will allow you to place barriers and cones via a menu. You can open the menu via U. The barriers and cones will block traffic, but cones only in a small radius. You can change the assigned menu key, just edit the TrafficBlock.ini file. It also allows you to disable the barrier feature in case you want to use a plugin with more options for this, like Richs Scene Manager.

 

With the second feature you can use your police car as a roadblock while you are not in the car yourself. This feature allows you to operate on a street in case of an emergency, without having NPCs driving around you. Traffic stops will not be blocked by this feature, because it triggers only when you park your car diagonally to the road. Adjustments to this feature can be made by editing the TrafficBlock.ini file. To activate the roadblock do the following steps:

 

  1. Slow down your police vehicle
  2. Park diagonally on the road you are on
  3. Ensure the siren is active
  4. Leave the vehicle

 

Traffic will now slow down in front of your vehicle, like you can see it on the uploaded plugin pictures. If you want to end the roadblock, go back to your vehicle and drive away. The traffic block will end once your police car is faster than 10 km/h. This is to ensure that the traffic will not start to flow just because you hit a movement button by mistake.

 

Requirements

 

Installation

 

Just copy the plugin folder into your GTA V folder and enable the plugin in the Rage Hook Settings. You can find more detailed instructions within the ReadMe file.

 

Troubleshooting

  1. Ensure that you have followed the instructions within the ReadMe
  2. Ensure that the plugin was installed into GTA/plugins
  3. Ensure you have installed all requirements
  4. Ensure that you have at least RageNativeUI 1.9
  5. Try to set the IgnoreTabViews .ini option to true in case of any problems with the menu (for example, if the menu does not open)
  6. Acknowledge: Controller / Game-pad input is not officially supported by me for this plugin
  7. Acknowledge: By downloading another mod you may have downgraded your RageNativeUI, see point 4.

 

99% of all support requests that reach me are about errors that can be avoided. Please read the tips above very carefully. Most of the time the right version of RageNativeUI is not installed or the IgnoreTabViews fix was not used.

 

If you still have problems contact me via private message and attach the RagePluginHook.log. I can't help you without this log file!

 

Special Thanks

  • @alexguirre for the awesome RageNativeUI
  • @Mac Tavish for testing
  • All guys and ladys from the LSPDFR Developer community



About the future of Traffic Block
In January 2024 I released a new plugin: Traffic Suite. You can check it out here on lcpdfr.com. It does offer enhanced versions of Traffic Block's features and much more. Traffic Block will stay in maintenance mode. I will not release new features for Traffic Block, but fix critical bugs if reported. You can continue to use Traffic Block if you prefer it! Traffic Block is not abandoned, it's just feature complete 🙂
 

Edited by NightYield
Add Traffic Suite info.

What's New in Version 1.4.1

Released

Maintenance Update

 

This update fixes bugs and brings the plugin up-to-date.

 

  • Bug fix: Police motorcycle is now supported. Thank you for the bug report @Parzival.Zio
  • Bug fix: Barriers and speed-zones are now removed when Traffic Block is unloaded. Thank you for the bug report @manu450
  • Updated: Now using the latest RageSDK
  • Updated: Now using the latest RageNativeUI (1.9+)
  • Updated: Contents of the "ReadMe" file

Short Description

Place barriers and cones or block the traffic with your police car

User Feedback

Recommended Comments

mikkiw

Members

No longer works, just crashes on start up

Narobic

Members

The only thing this mod is missing is turning off roadblocks during a traffic stop

249Xeno

Members

Question. I love this script! It works very well when I do a traffic stop or when I am on pursuit.

But I want to know how come it does not work on the motorcycle. Is there a way or a code that can fix that issue?

NightYield

Members Author

On 7/19/2023 at 1:28 AM, Parzival.Zio said:

Question. I love this script! It works very well when I do a traffic stop or when I am on pursuit.

But I want to know how come it does not work on the motorcycle. Is there a way or a code that can fix that issue?

Thank you for using Traffic Block.

You found a bug! Motorcycles are now supported, I just released a new version.

when dowloaded I am detecting a virus

javier0911

Members

thanks for the update can you more on  the future maybe when you block street make the cars do a u turn... and slow traffic make them go around you 

NightYield

Members Author

(edited)

1 hour ago, javier0911 said:

thanks for the update can you more on  the future maybe when you block street make the cars do a u turn... and slow traffic make them go around you 

 

Traffic Block is designed to be simple and light-weight. While I think your idea is great, this is something for more complex mods to implement. Traffic Block is really just about stopping the traffic. It does not know about the specific car's, path's and more. It just does one thing, blocking the road 😅

Edited by NightYield

javier0911

Members

19 minutes ago, NightYield said:

 

Traffic Block is designed to be simple and light-weight. While I think your idea is great, this is something for more complex mods to implement. Traffic Block is really just about stopping the traffic. It does not know about the specific car's, path's and more. It just does one thing, blocking the road 😅

yeah or add more details on the  the blocking   road , have trafficontroll desingned,  make detective car    read all the signs or when you  have your emergency lights on , make the  cars merge around you..  a big ProJet  lol 🤪

249Xeno

Members

3 hours ago, NightYield said:

 

Traffic Block is designed to be simple and light-weight. While I think your idea is great, this is something for more complex mods to implement. Traffic Block is really just about stopping the traffic. It does not know about the specific car's, path's and more. It just does one thing, blocking the road 😅

speaking of which with the traffic stop. When we do a traffic stop, is there a way you can stop all lanes instead of the one that you are on or between? What I have noticed when I use it is that, When you do a traffic stop. The stop will only be either one lane or two (if you are in the middle of both lanes).

It would be good if we could stop all traffic until we release them and it would not affect opposite traffic flows. It doesn't make sense if you stop traffic on the lane you're on and not the others. Normally all traffic will stop when CHP does traffic breaks. Can you do it the same or similar to it?

NightYield

Members Author

1 hour ago, Parzival.Zio said:

speaking of which with the traffic stop. When we do a traffic stop, is there a way you can stop all lanes instead of the one that you are on or between? What I have noticed when I use it is that, When you do a traffic stop. The stop will only be either one lane or two (if you are in the middle of both lanes).

It would be good if we could stop all traffic until we release them and it would not affect opposite traffic flows. It doesn't make sense if you stop traffic on the lane you're on and not the others. Normally all traffic will stop when CHP does traffic breaks. Can you do it the same or similar to it?

The plugin simply stops traffic within a certain radius around the car. You can configure this in the ini. There is no detection of lanes.

MattWestGaming

Members

Simple plugin and works really well love how simple the menu is as well.

Murdnox

Members

In case I missed it: is there a way to deactivate the vehicle traffic block without having to drive off? It's my favorite feature, but sometimes after the road is clear, I'd like to let traffic go without having to move my vehicle. 

NightYield

Members Author

@DavidJD051 there is no way to deactivate the roadblock manually while outside your police vehicle.

Loikas

Members

(edited)

@DavidJD051 I also had this idea and modified the file in order to add this feature, I could send it to you if you want to use it aswell. 

Edited by Loikas

Pupsy7

Members

On 12/28/2023 at 11:22 PM, Loikas said:

@DavidJD051 I also had this idea and modified the file in order to add this feature, I could send it to you if you want to use it aswell. 

Would you mind sharing how you did that?

Loikas

Members

(edited)

8 hours ago, Pupsy7 said:

Would you mind sharing how you did that?

I edited the dll file using dnSpy, you need some csharp knowledge for this however

 

I could help you with this if you want

Edited by Loikas

Pupsy7

Members

9 hours ago, Loikas said:

I edited the dll file using dnSpy, you need some csharp knowledge for this however

 

I could help you with this if you want

Could you share the file, I don't have experience in csharp

249Xeno

Members

@NightYield I was wondering....

 

If you can implement a traffic break like how CHP into your plugin. Not when the emergency vehicle stops, but during traffic. Here is a video for an example... 

 

 

I'm not sure if you're able to do this or implement this into your traffic break plugin, but it would be nice to have. Vehicles would stay back when traffic breaks and when emergency vehicles stop, the ped vehicles would merge into the free lane (nicely without hitting each other) and continue. Also, are you able to push the vehicle spawn back for about 300 ft? so it cannot cause an issue with merge ped vehicles or spawn within the accident scene?

NightYield

Members Author

Hey @Parzival.Zio,

I really love your idea! Sadly this is beyond what I'm capable of. My plugin use a rather simple method to stop the traffic with the siren traffic stop feature. I don't know how to manipulate the traffic like you asked for. Hopefully one day another mod creator will create a plugin based on the video.

249Xeno

Members

(edited)

1 hour ago, NightYield said:

Hey @Parzival.Zio,

I really love your idea! Sadly this is beyond what I'm capable of. My plugin use a rather simple method to stop the traffic with the siren traffic stop feature. I don't know how to manipulate the traffic like you asked for. Hopefully one day another mod creator will create a plugin based on the video.

There is another mod creator who goes by the name of "Timnboys" who created "ClearTheWayV" may be able to do it, but this method would fit your mod more. I am sure if you contact the creator of that mod, maybe you two can team up and create a great plugin that comes from the two of you. I hope you and him can collaborate and come up with an awesome plugin.

To be honest, with his plugin and his, I can do a traffic stop and block two lanes or three with one lane open for traffic to flow. The problem I have is that ped vehicles will stay in their lane and will not merge into the free lane to continue the traffic flow and if they did merge, the ambient would collide with one another when attempting to merge. I wonder if you're able to fix that issue too and also stop the vehicle spawning within the traffic break.

Edited by Parzival.Zio

NightYield

Members Author

On 11/12/2023 at 10:15 PM, DavidJD051 said:

In case I missed it: is there a way to deactivate the vehicle traffic block without having to drive off? It's my favorite feature, but sometimes after the road is clear, I'd like to let traffic go without having to move my vehicle. 


Good News, I just released my new mod Traffic Suite, a successor to Traffic Block. It has a function to do exactly what you asked for.

About Traffic Blocks Future
Traffic Block can still be used, but will stay in Maintenance mode. I plan to fix critical bugs (if reported), but I will not add new features here. Traffic Block will stay the light weight mod it is, running almost at zero (CPU) cost.

HasiqTR

Members

I love using this mod!

Create an account or sign in to comment

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.