Loading...

NoGoArea4Police 1.1

556

With this mod player can define an police-free area.
Simply press F6, type in name, then begin marking points(requires at least 4 points) with F7.

This will create a polygon.
With polygon-point intersection-algorithm( https://stackoverflow.com/a/2922778/7839113)
the script tests whether player is in this specific area.

If true, wanted level will disappear immadiatly.
Perfect to "unlock" restricted areas !

If someone is suspicous or curious about the code, simply use a decompiler to see what happens!

Requirements:
-latest ScriptHookVDotNet (ScriptHookVDotNet2.dll)
-latest ScriptHookV
-at least .NET Framework 4.5.2

Keys:
- F6 : Begin marking points to define polygon
- F7: Add points( at least 4)( saves to gta5 root folder)
- F8: Define circles by radius( saving not supported yet)
- F9 - De -and activate the mod

Changelog:
- Bug fixes
- Toggle-Option
- New save-folder
- now able to define circles
- loads polygon file properly.

Next update_ :
- Blimp for polygons!
Algorithm can be found here: https://pastebin.com/6aWqcNZK
Show Full Description

First Uploaded: October 01, 2017
Last Updated: October 06, 2017
Last Downloaded: 9 days ago

All Versions

 1.1 (current)

498 downloads , 4 KB
October 06, 2017

 1.0

58 downloads , 4 KB
October 01, 2017

35 Comments