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.

Law Enforcement Jurisdiction Script 0.8.0.0 - RPH 0.41+

(19 reviews)

1 Screenshot

Introduction
Hello everyone, I’m pleased and very excited to introduce the “Law Enforcement Jurisdiction Script” or L.E.J.S. for short. The script was designed and outlined as a team project between Albo1125 and myself. This script was designed in-mind to give the end-user more control over the policing powers within GTA V. By allowing most, if not all, the functionality of governing which departments have jurisdictions over what parts of Los Santos. With this script you’ll have the power on setting up which areas of patrols… what particular vehicles are in use… what particular Law Enforcement Officers are in use... are they stationed or patrolling… what time of (day or night)… and much-much more.

 

Special Thanks
Thanks EVI for being the original beta tester and bouncing future ideas off us.
Thanks c13, BroCop and Dilapidated on assisting in the second wave of beta testing.
Thank you AlexGuirre for the Zones enum-related stuff and Dilapidated once again for the HELI_MISSION native use.

 
Police Jurisdiction
Police jurisdiction refers to the legal authority for police to enforce laws and the specific geographical area in which this authority exists. Police officers generally have jurisdiction to enforce the laws of a local geographic area or the entire state in which they serve. By contrast, federal officers, such as FBI agents, carry out the enforcement of federal laws throughout the entire country.

 

Jurisdictions and Policing Possibilities
Border and Customs Enforcement.
Wildlife and Game Enforcement.
City, State and Federal Buildings Patrols.
County Roads, Freeways, Highways and Byways Patrols.
Road Construction Assistance and Enforcement.
Railroads and Train Yards Patrols.
Subways and Trolleys Patrols.
Airport Policing and Security Enforcement.
Marina, Beach and Shipyard Patrols.
Coast Guard Patrols.
Public and Private Property Security Patrol.
Or any other area of Law Enforcement and Security that you can think of.
 
Summary
L.E.J.S. allows the end-user to customize their needs within the .INI file (example below), by giving the end-user certain key variables on achieving their goals. The script will be an ongoing project (add-ons, updates, tweaking, etc…) that will give the end-user even more control over time.

 

CREDITS & LICENCE
Law Enforcement Jurisdiction Script is coded by Albo1125 (aka The Great OZ).
Cee Montana (aka Nutt) is the owner of the Law Enforcement Jurisdiction Script.

You cannot upload or redistribute the Law Enforcement Jurisdiction Script without the explicit written permission of Cee Montana (Nutt).

 
Q&A Time

Q. Is there a tutorial on getting started?
A. Yes. Please see the awesome tutorial video by Albo in the video section. Also, the first time you execute the LEJS Editor - it will automatically link you with the tutorial video. Don’t worry, it’s only a onetime measure on cutting down on some of the learning curve questions. Lastly, the Editor may require the “run anyway” elevated permissions for the first time depending on your OS.

Q. How many Jurisdictions Patrol Profiles can I create within the .INI file?
A. Creating jurisdiction profiles are limitless. That being said, I would personally suggest on keeping each jurisdiction area or zone, vehicle count under twenty-five (25). Especially if you’re using non-vanilla vehicles and a large activation boundary. In other words: You can have hundreds and hundreds of patrol spots… just keep each jurisdiction or area under twenty-five (25) vehicles if possible.

Q. Can the user create jurisdictions and patrol points all across Los Santos?
A. Yes.

Q. Can the user create sea and air support jurisdictions points?
A. Yes. If you’re creating custom air-support and/or sea-support jurisdictions… you can gather coordinates by using a simple trainer or enhanced trainer “airbrake” feature during gameplay, then saving the coordinates data via RHA console command “SaveLEJSLocationInfo MyLocationName”.          

Q. How accurate are the Jurisdictions and patrolling setups?
A. The script is very accurate to what the .INI file is setup to do (by you). The x, y, z coordinates, heading coordinates and the area of patrol size, are very important key components on giving the user as much control and accuracy on creating believable jurisdictions patrols.

Q. What is the difference between selecting a “Custom” and “Zone” jurisdiction setup?
A. Custom setups gives the user more options (control) for specific needs and accuracy… while Zone setups gives the user immediate selections (over 90 zones) on getting patrols setup quickly - without the needed coordinates data.

Q. Can I create “Custom” and “Zone” setups within the same jurisdiction?
A. Yes.     

Q. Is there a default .INI (prebuilt) contained in the download?
A. Yes. A few patrol points on getting you started.

Q. Can I use custom and/or renamed patrol vehicles?
A. Yes.

Q. Can I use civilian cars?
A. Yes. If it has wheels, wings and it floats - you can use it.

Q. Do the LEJS Officers react to crimes?
A. Yes and No. Officers will react to Michael’s, Trevor’s and Franklin’s crimes - not surrounding crimes (gangbangers, fights, etc…). We’re working on the latter part… so stay tuned for updates.

Q. The Officers that are patrolling - do they roam away from their areas of assignments?
A. No. As long as the user sets the correct “area of patrol size” and/or other boundaries within the .INI file… the patrolling Officers will stay within their jurisdiction scope.

Q. Will Officers leave their Jurisdictions during a commission of crime?
A. Yes. But we’re looking into giving the user the option on “not allowing pursuits beyond the set jurisdiction scope”.

Q. How do I get the axis x, y, z, and heading coordinates for my particular custom patrol needs?
A. LEJS has a custom console command “SaveLEJSLocationInfo MyLocationName” which allows you to easily save your location information in the required format of LEJS's INI file.

Q. Will there be a thread on sharing locations and coordinates?
A. Sure will. I figured some end-users may-not want to go through the hassle of plugging in data. So there will be a thread where users can share their Jurisdiction setups and/or patrolling spots (with photos) – so that others can decide if its fits their needs.

Q. How stable is the script?
A. No major problems to report.

Q. How can I edit the .INI file?
A. The nice and simplistic .INI Editor of course! 

Q. Key features?
A. Most of the key features can be viewed from the .INI Editor. However, I believe the master viewing mode (F3 Key by default) is quite impressive. You can verify the areas of patrols that you created (per immediate surrounding area), and modify them later based on your observation. And if you set the blip feature (per car) within the .INI file, you’ll see the vehicles in real-time (especially the vehicles that are set to patrol) doing their job within the area of scope that you set.

Q. What are the red, green and yellow blips in the master viewing mode (F3)?
A. If enabled in the .INI file (per vehicle), the master viewing mode lets the user know which vehicles are stationed (red), which ones are patrolling (green) and which ones are zoned spawned (yellow).  

Q. How do I reload the script if it stops working completely?
A.  Bring up the Rage Plugin Console. First, if necessary, unload the plugin by typing UnloadPlugin “Law Enforcement Jurisdiction Script.dll” and pressing enter. You can then reload it by typing LoadPlugin “Law Enforcement Jurisdiction Script.dll” and pressing enter.

Q. Can I easily make changes to the INI file while in game?
A. Absolutely! When you’re in master viewing mode (F3), you can reload the values from the INI file by pressing F5 (default). You will see the changes you made are immediately reflected by the master viewing mode for easy editing and perfecting your jurisdictions.

FYI: 
* Guys/Gals please make sure to use the correct coordinates when creating custom zones. Especially if it has a negative (-) in front of it. Example: if the coordinate states -34.789 then it should be -34.789.
 

Tutorial Video:

 
Other Videos:
 

 

Optional LEJS Livery Starter Pack (Los Santos Included):

Spoiler

ATPD%204_zpsaa3uheix.png~originalGTA5%202016-01-25%2001-46-58-73_zpsastavGTA5%202016-01-25%2001-46-52-18_zpsxl55vGTA5%202016-01-25%2001-45-47-36_zpsgieoc

 

What's New in Version 0.8.0.0 - RPH 0.41+

Released

0.8.0.0:
Updated for GTAV 1.0.944.2 and RPH 0.49.
Still works with RPH 0.41 and higher.
Various adjustments made to improve performance and stability on the new RPH & GTA.
Some slight changes in how the plugin is loaded/unloaded.
Fixed a problem that prevented the console command from working.

 

0.7.0.0:
-Added 'Random' to ambient events.
-Added 'Ambient Event Chance' field.

-Tweaked pursuit ambient event slightly.

 

0.6.0.0:
-Reworked the processor architecture target to x64 only.
-Removed various debugging symbols.
-Reworked the pullover ambient event.
-Fixed an issue where the suspect entities were not appearing/disappearing properly.

 

0.5.1.0:
-Fixed issues with the pursuit ambient event.
-Pullover ambient event implemented into custom jurisdiction setups. (Zoned setups won't work with pullovers.)
-Improved suspect entity cleanup.
-Fixed errors thrown when setting zoned jurisdictions to pursuit.
-If SirenActive is true, siren is now also no longer silent during pursuits.

 

0.5.0.0:
-Multiple zone names per zoned jurisdiction.
-Added 'writing' ambient action.
-Option of just spawning a parked vehicle without the need for an officer.
-Added the 'ambient event' field for both zoned & custom jurisdictions.
-Added 'Pursuit', 'Pullover' and 'None' to the ambient event options.

-Officers responding to other crimes is still WIP.
-Various code & performance optimizations.

 

-INI EDITOR 1.5.0.0:
Redone Zone Names
Added field for ambient event.
Added writing option.
Altered some of the layout behind the scenes code.


Hello Everyone,

Quite a few new features were added to the latest LEJS file, since the 0.4.0.0 version. As you can see from the change log a few versions (0.5, 0.5.1 and 0.6) were not released do to quality testing and making sure the release candidate is in good working order.  

•    The newest release contains options for selecting multiple zones at the same time, when creating patrol points… without the need for creating repeated layouts on covering particular area(s). 
•    There are two new vehicle ambient features for patrolling cars. Patrol and Pursuit for Zoned created patrols and Patrol and Pullover for Custom created patrols. Both ambient events have options for Random and Chance on allowing a more realistic approach. More vehicle ambient features coming soon…
•    New writing ambient action for law enforcement peds.

User Feedback

Recommended Comments

Nutt

Members Author

(edited)

14 minutes ago, Wolfx101 said:

Coordinates generated by 'SaveLEJSLocationInfo' function. Desired units spawn elsewhere ; typically elevated or under map. I ensure , transference of information is NOT the root for apparent discrepancy. 

If you're having issues with "SaveLEJSLocationInfo" function (which we'll look into), there are other gathering coordinates options. Simple trainer and Enhanced trainer have these features as well. Even this will help.... https://www.gta5-mods.com/tools/coordinates-heading-dumper

Edited by Nutt

CamTheMan97

Members

(edited)

Been waiting on something like this for so long...Was going to make a map for it at first until I saw this... Great Job guys!@ @Albo1125  @Nutt

Edited by CamDaMan97

Nutt

Members Author

(edited)

4 minutes ago, CamDaMan97 said:

Been waiting on this for so long...Was going to make a map for it at first until I saw this... Great Job Man!  @Nutt

Yes, Albo is the man... and more to come.  :)

Edited by Nutt

CamTheMan97

Members

2 minutes ago, Nutt said:

Yes Albo is the man... :)

Sure is... @Nutt. Can't wait for updates. Keep up the good work!

Jellymist

Members

(edited)

Hello not sure whats going on but for some reason it just keeps crashing log included ty 

RagePluginHooklog.txt

Ok so I did a bit of research on my own I havent narrowed down the plugin but its another plugin that is causing this awesome mod to crash on startup i'll keep looking into this and let you know if you like

Edited by Jellymist

Nutt

Members Author

Are you using the proper

10 minutes ago, Jellymist said:

Hello not sure whats going on but for some reason it just keeps crashing log included ty 

RagePluginHooklog.txt

Your in-game time looks invalid. You probably need to use a trainer on correcting this issue... (month count to 1 instead of 0). Are you using some type of weather day/night cycle mods?

(edited)

I am having a bit of an issue, I have set up my first Jurisdiction, a Park ranger patrolling Cassidy Creek, however I don't seem to see him, I am using a modded car if that has anything to do with it, a Ford Raptor, one single ranger driving. Here is a picture of my set up, after watching Albos tutorial video. EDIT Was exploring the default ones that come with the mod, and they are not spawning either, I went to the stationary ones at the Maze Bank Arena, and they don't seem to appear.

Probs.png

Edited by LieutenantColombo

Bray

Members

A German tutorial would be very helpful. If this looks a German Youtuber. Please make a tutorial video

Nutt

Members Author

18 minutes ago, LieutenantColombo said:

I am having a bit of an issue, I have set up my first Jurisdiction, a Park ranger patrolling Cassidy Creek, however I don't seem to see him, I am using a modded car if that has anything to do with it, a Ford Raptor, one single ranger driving. Here is a picture of my set up, after watching Albos tutorial video. EDIT Was exploring the default ones that come with the mod, and they are not spawning either, I went to the stationary ones at the Maze Bank Arena, and they don't seem to appear.

Probs.png

 

You're shift start/stop time should be 00:00 not 0000.

iguana11

Members

3 hours ago, soley said:

It keeps crashing when game starts up!

I got the same problem!!

Sizzlenuts

Members

1 hour ago, Jellymist said:

Hello not sure whats going on but for some reason it just keeps crashing log included ty 

RagePluginHooklog.txt

Ok so I did a bit of research on my own I havent narrowed down the plugin but its another plugin that is causing this awesome mod to crash on startup i'll keep looking into this and let you know if you like

I have the same issue, for the time being native trainer can be a work around, just skip ahead about 30 days so it's month 1 and not month 0 according to RPH

Nutt

Members Author

21 minutes ago, iguana11 said:

I got the same problem!!

This really doesn’t help us in resolving your particular issue. Please attach Rage Hook Plugin Log... thanks.

Jellymist

Members

1 hour ago, Nutt said:

Are you using the proper

Your in-game time looks invalid. You probably need to use a trainer on correcting this issue... (month count to 1 instead of 0). Are you using some type of weather day/night cycle mods?

no sir no weather mod  i'll look at trainer and see im also checking addons as well 

LtRob

Members

Im also having the issue with jurisdictions randomly deleted in the application. I overwrite something and another jurisdiction I created before it removes itself automatically.

Nutt

Members Author

(edited)

25 minutes ago, LtRob said:

Im also having the issue with jurisdictions randomly deleted in the application. I overwrite something and another jurisdiction I created before it removes itself automatically.

Are you creating a title before you save? Or renaming a previous jurisdiction? Also, jurisdictions must have different names or slight variations to them. Example: [ Port of LS Elysian Islands] and [ Port of LS Elysian Islands] would be considered incorrect. [ Port of LS Elysian Islands] and [ Port of LS Elysian Islands v2] would be considered correct.

Edited by Nutt

LtRob

Members

Does this work with military units? or just police

Soley

Members

2 hours ago, Nutt said:

This really doesn’t help us in resolving your particular issue. Please attach Rage Hook Plugin Log... thanks.

You see, RPH runs perfectly, it load LSPDFR successfully on startup but in the meantime this script crashes!

Ok so im having some really weird issues. 

I have the current version of rage and it is installed correctly, heres whats happening,

When I load into game LEJS crashes instantly, I can keep reloading and it will keep crashing until I "ReloadAllPlugins" and after that I can load LEJS and it works but I get this error:

"Plugin "Law Enforcement Jurisdiction Script" defines cnsole command "SSaveLEJSLocationinfo", however, a console command or variable with this name is already defined. The console command has been renamed to "SaveLEJSLocationinfo2". 

After that I go into master viewing to see if and where my units spawned and it shows they spawned but it does double, so I current have 3 jurisdictions made but it will double it making it 6 units spawned. 

Heres my log and an image of the error message: 

 

RagePluginHook_25012016_213525.log

i54^pimgpsh_thumbnail_win_distr

Soley

Members

2 hours ago, Nutt said:

This really doesn’t help us in resolving your particular issue. Please attach Rage Hook Plugin Log... thanks.

Here:

RagePluginHook.log

Sizzlenuts

Members

1 hour ago, CaptainSugarFree said:

Ok so im having some really weird issues. 

I have the current version of rage and it is installed correctly, heres whats happening,

When I load into game LEJS crashes instantly, I can keep reloading and it will keep crashing until I "ReloadAllPlugins" and after that I can load LEJS and it works but I get this error:

"Plugin "Law Enforcement Jurisdiction Script" defines cnsole command "SSaveLEJSLocationinfo", however, a console command or variable with this name is already defined. The console command has been renamed to "SaveLEJSLocationinfo2". 

After that I go into master viewing to see if and where my units spawned and it shows they spawned but it does double, so I current have 3 jurisdictions made but it will double it making it 6 units spawned. 

Heres my log and an image of the error message: 

 

RagePluginHook_25012016_213525.log

i54^pimgpsh_thumbnail_win_distr

 

1 hour ago, soley said:

It's a crash caused by a custom timecycle(most visual enhancement downloads) which RPH is reading the month as 0, so by using the below solution temporarily that should allow you to load it without it crashing.
See :

3 hours ago, Sizzlenuts said:

I have the same issue, for the time being native trainer can be a work around, just skip ahead about 30 days so it's month 1 and not month 0 according to RPH

Also for the SaveLEJSLocationinfo issue make sure when you use this command in RPH you use this format(without quotes) "SaveLEJSLocationinfo LABEL" where "LABEL"  is whatever you want it to be, if you're in Paleto Bay when you want to save your info naturally you would make it "SaveLEJSLocationinfo PaletoBay"

EP34FR

Members

This is an AWESOME add-on!  Many thanks to the hard work y'all have done to put this together!!

I too am running into a bit of an issue with the coordinates.  They don't seem to be matching up.  I've tried it twice, with Ft. Zancudo and around the University.  Followed the video instructions exactly, but the coordinates are off.

Attached is a PDF showing the differences on the map, as well as the coordinate information gathered from GTA V for the University and how it was entered into the INI Editor.  Same happened with Ft. Zancudo...coordinates put the unit out in Sandy Shores

Any idea what the issue is?

LEJSCoordinateError.pdf

3 minutes ago, Sizzlenuts said:

 

It's a crash caused by a custom timecycle(most visual enhancement downloads) which RPH is reading the month as 0, so by using the below solution temporarily that should allow you to load it without it crashing.
See :

Also for the SaveLEJSLocationinfo issue make sure when you use this command in RPH you use this format(without quotes) "SaveLEJSLocationinfo LABEL" where "LABEL"  is whatever you want it to be, if you're in Paleto Bay when you want to save your info naturally you would make it "SaveLEJSLocationinfo PaletoBay"

I dont have a custom timecycle, and I havent even used the command line it just says that every time the mod is loaded

Albo1125

Insiders

8 minutes ago, EP34FR said:

This is an AWESOME add-on!  Many thanks to the hard work y'all have done to put this together!!

I too am running into a bit of an issue with the coordinates.  They don't seem to be matching up.  I've tried it twice, with Ft. Zancudo and around the University.  Followed the video instructions exactly, but the coordinates are off.

Attached is a PDF showing the differences on the map, as well as the coordinate information gathered from GTA V for the University and how it was entered into the INI Editor.  Same happened with Ft. Zancudo...coordinates put the unit out in Sandy Shores

Any idea what the issue is?

LEJSCoordinateError.pdf

Check the x coordinate, you forgot the minus. 

To everyone having coordinate issues: please check for typos like the above. 

Sizzlenuts

Members

4 minutes ago, CaptainSugarFree said:

I dont have a custom timecycle, and I havent even used the command line it just says that every time the mod is loaded

I was getting the SaveLEJS error when I was accidentally not naming my saved locations so I'm not sure why it's automatically producing that perhaps Albo or Nutt will but as far as why it's giving you that 

Exception message: Year, Month, and Day parameters describe an un-representable DateTime.
[1/25/2016 2:37:05 PM.034] Law Enforcement Jurisdiction Script: ------------------------------
[1/25/2016 2:37:05 PM.034] Law Enforcement Jurisdiction Script: Inner exceptions:
[1/25/2016 2:37:05 PM.034] Law Enforcement Jurisdiction Script: ------------------------------
[1/25/2016 2:37:05 PM.035] Law Enforcement Jurisdiction Script: Stack trace:
[1/25/2016 2:37:05 PM.035] Law Enforcement Jurisdiction Script: at System.DateTime.DateToTicks(Int32 year, Int32 month, Int32 day)
[1/25/2016 2:37:05 PM.035] at Rage.World.get_DateTime()

error try using a trainer to skip ahead 30 days instead of reloading all plugins and see if it ends up working any better.

Albo1125

Insiders

1 hour ago, CaptainSugarFree said:

Ok so im having some really weird issues. 

I have the current version of rage and it is installed correctly, heres whats happening,

When I load into game LEJS crashes instantly, I can keep reloading and it will keep crashing until I "ReloadAllPlugins" and after that I can load LEJS and it works but I get this error:

"Plugin "Law Enforcement Jurisdiction Script" defines cnsole command "SSaveLEJSLocationinfo", however, a console command or variable with this name is already defined. The console command has been renamed to "SaveLEJSLocationinfo2". 

After that I go into master viewing to see if and where my units spawned and it shows they spawned but it does double, so I current have 3 jurisdictions made but it will double it making it 6 units spawned. 

Heres my log and an image of the error message: 

 

RagePluginHook_25012016_213525.log

i54^pimgpsh_thumbnail_win_distr

You've probably never actually played gta,so your month is set as 0 which is invalid. Use a trainer to set your month forward one month and save your game so you spawn into a valid date and time next time you play.

The fact that is works after reloading Plugins lots of times is probably because enough time has passed for the month to become valid :tongue:

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.