# WindowRoller

A RagePluginHook plugin for GTA V that automatically rolls down the driver window when you enter a vehicle, and provides hotkeys to roll windows and close doors on nearby vehicles.

## Features

- Automatically rolls down the driver window when entering any vehicle
- LShift+W toggles the nearest window on the nearest vehicle (rolls down or back up)
- LShift+E closes the nearest open door on a nearby vehicle — useful when the player can't physically walk into the door to close it, such as in tight spaces
- Configurable hotkeys, window index, and search radius in the INI

## Configuration

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

[General]
AutoDriverWindow = true
AutoWindowIndex = 0
NearbyRadius = 8.0

[Hotkey]
WindowKey = W
DoorKey = E
Modifier = LShiftKey

- **AutoDriverWindow** — roll down the driver window automatically on entry (true/false)
- **AutoWindowIndex** — which window to auto-roll: 0=front-left, 1=front-right, 2=rear-left, 3=rear-right
- **NearbyRadius** — search radius in meters for the window and door hotkeys
- **WindowKey / DoorKey** — keyboard keys for each function
- **Modifier** — modifier key held with WindowKey or DoorKey

## Requirements

- Grand Theft Auto V
- RagePluginHook (RPH)

## Installation

1. Copy `WindowRoller.dll` and `WindowRoller.ini` into your GTA V `plugins` folder (e.g. `Grand Theft Auto V\plugins\`).
2. Launch GTA V through RagePluginHook.

## Usage

- Enter any vehicle — the driver window rolls down automatically.
- On foot or in a vehicle, hold **LShift** + **W** to toggle the nearest window on the nearest vehicle.
- On foot, hold **LShift** + **E** to close the nearest open door on a nearby vehicle.

## Author

Gamecock Tomahawk
