Issue Summary
LSPDFR consistently crashes with a [FATAL] Forced termination error whenever I enter any Duty Garage while seated inside a vehicle. This occurs:
At all police stations
With any vehicle
Using keyboard OR Xbox controller
If I exit the vehicle first and enter the Duty Garage on foot, the crash does not occur.
✅ Environment Information
LSPDFR Version: 0.4.9
RagePluginHook Version: Latest supported
GTA V Version: Latest supported
Input Devices: Keyboard & Xbox Controller
Other Plugins Installed: None (only LSPD First Response)
Installation Type: Fully clean reinstall (all LSPDFR-related files deleted prior to reinstall)
🔁 Reproduction Steps (100% Consistent)
Drive any vehicle to a police station that allows vehicle-based Duty Garage access.
While still seated inside the vehicle, activate the Duty Garage.
LSPDFR immediately crashes with forced termination.
✅ Expected Result
Duty Garage opens normally while seated inside a vehicle.
❌ Actual Result
LSPDFR immediately crashes and shuts down with a [FATAL] Forced termination error.
🛠 Workaround
If I:
Exit the vehicle first
Walk into the Duty Garage on foot
Then open the menu
→ Everything works perfectly with no crash.
📄 Relevant RagePluginHook Log Evidence
The following sequence appears consistently at the moment of the crash:
Thread VehicleSelector #2 initialized ExpandableFileParser::Parse: Reading content from file: lspdfr/data/duty_selection.xml Started new menu thread MenuBase Exception type: System.NullReferenceException Stack trace includes: - DutyGarageMenu.cs - MenuRow.cs - VehicleSelector.cs - PoliceStation.cs - PoliceStationManager.cs [FATAL] Forced termination [INFO] LSPDFR has shut down
This confirms the crash originates from the VehicleSelector / DutyGarageMenu code path when entering the garage while inside a vehicle.
🧠 Conclusion
This appears to be a reproducible bug in LSPDFR 0.4.9 related specifically to in-vehicle Duty Garage activation.
The issue is:
Input-independent (keyboard & controller both affected)
Station-independent
Vehicle-independent
Present even after a fully clean install
RagePluginHook.log