# RoadClosure

A RagePluginHook plugin for GTA V that deploys a full police vehicle road closure perimeter around your location with jurisdiction-correct officers and barriers.

## Features

- Press LShift+R to start placing a road closure centered on your position
- Adjustable radius from 20m to 200m using Left/Right arrow keys, confirm with Enter, cancel with Escape
- Spawns police vehicles bumper-to-bumper along the perimeter circle on every road crossing
- Gaps between vehicles are filled with "Do Not Cross" barriers
- Officers stand outside their vehicles in an idle stance facing outward
- Jurisdiction-aware: spawns Metro (LSPD), County (BCSO), or Highway (CHP) units based on location
- Highway detection by street name (Fwy/Hwy) and zone-based fallback
- Ambient traffic and pedestrians inside the perimeter are cleared on activation
- Continuous enforcement keeps new ambient vehicles and peds from spawning inside the perimeter — ambient vehicles that attempt to drive through are despawned
- Emergency vehicles (class 18) pass through — blockade collision is temporarily disabled when they approach
- Dead peds inside the zone are preserved as scene context
- Vehicles with blips, emergency vehicles, and parked cars are never cleared
- Sirens active on all blockade vehicles, headlights on at night
- Press LShift+R again to remove — officers get in their vehicles, turn off sirens, and drive away naturally
- Closure auto-removes when going off duty in LSPDFR
- Configurable vehicle models per jurisdiction in the INI file
- Warning: wider radii spawn more vehicles and increase the risk of crashing — use conservatively

## Requirements

- Grand Theft Auto V
- RagePluginHook (RPH)

## Installation

1. Copy `RoadClosure.dll` and `RoadClosure.ini` into your GTA V `plugins` folder (e.g. `Grand Theft Auto V\plugins\`).
2. Launch GTA V through RagePluginHook and go on duty in LSPDFR.

## Configuration

Edit `RoadClosure.ini` in your `plugins` folder:

[Keys]
ActivateKey=R
ActivateModifier=LShiftKey

[Vehicles]
Metro=POLICE,POLICE2,POLICE3
County=SHERIFF,SHERIFF2,POLICET
Highway=POLICEB,PRANGER,CRUSADER

Customize the officer vehicle model pools per jurisdiction with comma-separated GTA V spawn names.

## Usage

1. Press **LShift+R** to begin placing a road closure at your current position.
2. Use **Left/Right arrow keys** to adjust the radius. Press **Enter** to deploy or **Escape** to cancel.
3. Officers and barriers will spawn along the perimeter on every road crossing.
4. Press **LShift+R** again to remove the closure — officers will depart naturally.

## Author

Gamecock Tomahawk
