Jump to content

Traffic Control 1.1.1

   (45 reviews)

4 Screenshots

Traffic Control for GTA V
Copyright (C) 2018 Stealth22. All rights reserved.

Any unauthorized modification, reverse engineering, or distribution (including re-uploading of any kind) is strictly prohibited.

 

Requirements
You must have version 0.63 (or newer) of RAGE Plugin Hook. You must have a fully legal, non-pirated version of GTA V.

 

Automatic Installation
- Extract the ZIP archive; ensure that setup.exe and Traffic Control.msi are both in the same folder
- DON'T run Traffic Control.msi unless you know what you're doing
- Run setup.exe, and ensure that the installation directory detected matches the main/root folder of your GTA V install directory
- If setup.exe is unable to detect your GTA V directory, or fails in some other fashion, start Traffic Control.msi, AND SELECT YOUR GTA V PATH AS THE INSTALL DIRECTORY

 

Manual Installation
- Copy the TrafficControl.dll and TrafficControl.ini files into the Plugins folder of your GTA V directory.
- Copy the Stealth.Common.dll and RAGENativeUI.dll files into your main/root GTA V directory.

 

Features
- Stop or slow down all traffic within a certain radius of the player, in order to close a road for investigative purposes, or for safety reasons during a traffic stop
- Multiple "roadblocks" or "speed zones" can be placed
- Roadblocks will remain in place until removed by the player
- A (beta) setting to allow any emergency vehicles to drive through "roadblocks"/"stop zones" can be enabled in the INI file ("Stop Traffic" orders only; speed restrictions are not affected)
- The above setting can also be changed on-demand through the new in-game menu
[NEW!] - Traffic Control now includes a new in-game menu, powered by RAGENativeUI!
[NEW!] - Keyboard shortcuts can now be changed in the INI file!
[NEW!] - Keyboard shortcuts can be disabled, if desired (to use the in-game menu exclusively)

[NEW!] - Integration with Police SmartRadio!

 

Usage
- Press the menu keybind (CTRL + F10 by default) to open the Traffic Control menu; use the menu options to place/remove roadblocks
- Alternatively, you can use the shortcut keys (see the INI file) to place/remove roadblocks
- Keyboard shortcuts can be disabled through the INI file, if you wish to only use the in-game menu

 

Forum Thread

http://www.lcpdfr.com/forums/topic/51961-rel-traffic-control-beta-close-off-the-road-while-you-investigate-and-clear-a-scene/ 


What's New in Version 1.1.1

Released

VERSION 1.1.1

  • Added missing Police SmartRadio files; fixed directory structure
  • Had some issues building the auto installer; this version will be manual drag and drop only
     

VERSION 1.1.0

  • This version requires RPH 0.62+, as well as RAGENativeUI v.1.6.3.0
  • This version also requires Stealth.Common v2.0+ (included; older versions will not work)
  • Brought this plugin into the 21st century, and best of all...
  • Integration with Police SmartRadio, built by our very own @Albo1125!!
Assisted in Development: FinKone
Testing: Jeff Favignano, FinKone, DCP



User Feedback

Recommended Comments



Can you upload a video of this in action....

It's broke.

[7/8/2015 8:42:12 PM.354] Console variable 'WarnOnPluginLoad' is false, returning true.
[7/8/2015 8:42:12 PM.354] Loading plugin from path: D:\Program Files (x86)\Steam\steamapps\common\Grand Theft Auto V\Plugins\TrafficControl.dll
[7/8/2015 8:42:12 PM.641] UNLOADED: Initializing input system
[7/8/2015 8:42:12 PM.645] UNLOADED: Initializing game console
[7/8/2015 8:42:12 PM.646] UNLOADED: Initializing forms manager
[7/8/2015 8:42:12 PM.668] ERROR: Could not load plugin from "D:\Program Files (x86)\Steam\steamapps\common\Grand Theft Auto V\Plugins\TrafficControl.dll". Plugin Traffic Control in assembly tmpA0D7.tmp (TrafficControl, Version=0.0.0.1, Culture=neutral, PublicKeyToken=null) does not have a suitable entry point.
[7/8/2015 8:42:12 PM.668] Parameter name: assemblyPath

 

Share this comment


Link to comment
Share on other sites

broken. didnt update.

 

[7/8/2015 8:42:12 PM.641] UNLOADED: Initializing input system
[7/8/2015 8:42:12 PM.645] UNLOADED: Initializing game console
[7/8/2015 8:42:12 PM.646] UNLOADED: Initializing forms manager
[7/8/2015 8:42:12 PM.668] ERROR: Could not load plugin from "D:\Program Files (x86)\Steam\steamapps\common\Grand Theft Auto V\Plugins\TrafficControl.dll". Plugin Traffic Control in assembly tmpA0D7.tmp (TrafficControl, Version=0.0.0.1, Culture=neutral, PublicKeyToken=null) does not have a suitable entry point.
[7/8/2015 8:42:12 PM.668] Parameter name: assemblyPath

 

Share this comment


Link to comment
Share on other sites

It's broke.

[7/8/2015 8:42:12 PM.354] Console variable 'WarnOnPluginLoad' is false, returning true.
[7/8/2015 8:42:12 PM.354] Loading plugin from path: D:\Program Files (x86)\Steam\steamapps\common\Grand Theft Auto V\Plugins\TrafficControl.dll
[7/8/2015 8:42:12 PM.641] UNLOADED: Initializing input system
[7/8/2015 8:42:12 PM.645] UNLOADED: Initializing game console
[7/8/2015 8:42:12 PM.646] UNLOADED: Initializing forms manager
[7/8/2015 8:42:12 PM.668] ERROR: Could not load plugin from "D:\Program Files (x86)\Steam\steamapps\common\Grand Theft Auto V\Plugins\TrafficControl.dll". Plugin Traffic Control in assembly tmpA0D7.tmp (TrafficControl, Version=0.0.0.1, Culture=neutral, PublicKeyToken=null) does not have a suitable entry point.
[7/8/2015 8:42:12 PM.668] Parameter name: assemblyPath

 

broken. didnt update.

 

[7/8/2015 8:42:12 PM.641] UNLOADED: Initializing input system
[7/8/2015 8:42:12 PM.645] UNLOADED: Initializing game console
[7/8/2015 8:42:12 PM.646] UNLOADED: Initializing forms manager
[7/8/2015 8:42:12 PM.668] ERROR: Could not load plugin from "D:\Program Files (x86)\Steam\steamapps\common\Grand Theft Auto V\Plugins\TrafficControl.dll". Plugin Traffic Control in assembly tmpA0D7.tmp (TrafficControl, Version=0.0.0.1, Culture=neutral, PublicKeyToken=null) does not have a suitable entry point.
[7/8/2015 8:42:12 PM.668] Parameter name: assemblyPath

 

This issue has been fixed with v0.0.2.

Share this comment


Link to comment
Share on other sites

Stealth22 please add barrier roadblock to use in checkpoint like this in next version, please respond me

This is not a checkpoint mod, so there are no plans to add any barriers at this time.

If you wish to place barriers in the road, you might want to check out the Police Radio plugin by FinKone. 

http://www.lcpdfr.com/files/file/7866-coroner-tackle-suspect-tow-plate-checker-pit-request-barrier-police-radio-early-version/

Share this comment


Link to comment
Share on other sites

Can you upload a video of this in action....

That would be nice, so yeah - any chance of a video?

I'll try, but I can't promise anything.

If anyone else wants to make a video and post it here, by all means, be my guest.

Share this comment


Link to comment
Share on other sites

Hey to prevent the police/tow trucks/coroner from getting slowed down, you could just check the vehicle's hash / skiin hash and if it matches something then prevent any action on this specific vehicle/peds. At least that's how  I do it

Share this comment


Link to comment
Share on other sites

Hey to prevent the police/tow trucks/coroner from getting slowed down, you could just check the vehicle's hash / skiin hash and if it matches something then prevent any action on this specific vehicle/peds. At least that's how  I do it

I wish it was that easy, man. Unfortunately its an all or nothing sort of deal at the moment. For now there is a workaround...once I get Keep Calm stable, I may have another look at it.

Share this comment


Link to comment
Share on other sites

Well, idk your source but in asi files that's how I'd do it. (Not tested, just wrote that quickly(C++))

Hash cops[14] = {"police", "police2", "police3", "police4", "policet", "fib", "fib2", "riot", "sheriff", "sheriff2", "pranger", "policeold1", "policeold2", "policeb"};
				const int numElements = 100;
				const int arrSize = numElements * 2 + 2;
				Entity vehs[numElements];
				int count = GET_PED_NEARBY_VEHICLES(PLAYER_PED_ID(), vehs);
				for (int i = 0; i < count; i++)
				{
					int offsettedID = i * 2 + 2;
					//Make sure it exists
					if (vehs[offsettedID] != NULL && DOES_ENTITY_EXIST(vehs[offsettedID]))
					{
						//Do something
						Entity mveh = vehs[offsettedID];
						Hash currentVehicle = GET_ENTITY_MODEL(mveh);
						for(int x = 0; x < 14; x++){
						    if(cops[i] == currentVehicle){
						        //Vehicle is a cop car
						    } else {
						        //Vehicle isn't a cop car
						    }
						}
					}
				}

 

Well, idk your source but in asi files that's how I'd do it. (Not tested, just wrote that quickly(C++))

Hash cops[14] = {"police", "police2", "police3", "police4", "policet", "fib", "fib2", "riot", "sheriff", "sheriff2", "pranger", "policeold1", "policeold2", "policeb"};
				const int numElements = 100;
				const int arrSize = numElements * 2 + 2;
				Entity vehs[numElements];
				int count = GET_PED_NEARBY_VEHICLES(PLAYER_PED_ID(), vehs);
				for (int i = 0; i < count; i++)
				{
					int offsettedID = i * 2 + 2;
					//Make sure it exists
					if (vehs[offsettedID] != NULL && DOES_ENTITY_EXIST(vehs[offsettedID]))
					{
						//Do something
						Entity mveh = vehs[offsettedID];
						Hash currentVehicle = GET_ENTITY_MODEL(mveh);
						for(int x = 0; x < 14; x++){
						    if(cops[i] == currentVehicle){
						        //Vehicle is a cop car
						    } else {
						        //Vehicle isn't a cop car
						    }
						}
					}
				}

 

Well made a mistake and can't edit it so in the for loop with x it should be instead:

if(GET_HASH_KEY(cops[x]) == currentVehicle){
    //Vehicle is a cop car
} else {
    //Vehicle isn't a cop car
}

 

Share this comment


Link to comment
Share on other sites

@Stealth22, do you think that you may potentially be able to add a feature that will get the ped drivers within the radius of a roadblock, primarily, a limited speed roadblock (20mph speed limit roadblock) to move around a congested lane? Because currently when I do traffic stops in some areas where I can not pull all the way over to the far right, ped drivers will not move around me, even if the roadblock is set to 20mph. This may not have anything to do with ur mod but just the AI in general, but if possible, do you think you could add a feature like this in?

Share this comment


Link to comment
Share on other sites

@Stealth22, do you think that you may potentially be able to add a feature that will get the ped drivers within the radius of a roadblock, primarily, a limited speed roadblock (20mph speed limit roadblock) to move around a congested lane? Because currently when I do traffic stops in some areas where I can not pull all the way over to the far right, ped drivers will not move around me, even if the roadblock is set to 20mph. This may not have anything to do with ur mod but just the AI in general, but if possible, do you think you could add a feature like this in?

I can check, but I don't think there is a way to control the AI in this manner.

Its sort of based on the attitudes of the drivers. Just yesterday, I had pulled over a vehicle on the freeway and limited the speed to 20 MPH. The traffic was really congested, but the cars in my lane were moving over to the other lane when there was a gap in traffic.

I guess its based on how the AI is feeling that particular day, lol.

Share this comment


Link to comment
Share on other sites

I can't download the files. Chrome blocks it and there is no way to allow it anyway. Is it a virus? How can i fix it?

I can't download the files. Chrome blocks it and there is no way to allow it anyway. Is it a virus? How can i fix it?

I downloaded it from another browser. My anti-virus program couldn't find any viruses. It's just wierd that chrome blocks it for harmful reasons.

Thanks anyways.

Share this comment


Link to comment
Share on other sites

I can't download the files. Chrome blocks it and there is no way to allow it anyway. Is it a virus? How can i fix it?

I downloaded it from another browser. My anti-virus program couldn't find any viruses. It's just wierd that chrome blocks it for harmful reasons.

Thanks anyways.

This website is getting the error via Google. It's nothing to do with this mod.

Share this comment


Link to comment
Share on other sites

Think before you post. Toxic behavior will not be tolerated. Unconstructive, toxic or unnecessarily sarcastic comments will be removed and warnings issued.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Add a comment...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...