PoliceMenu V – Crash Fix V1.1

PoliceMenu V - Crash Fix

Crash fix for Abel Software’s PoliceMenu V on the current ScriptHookVDotNet. Drop it in and the menu stops crashing – the original DLL is left untouched.

WHAT’S FIXED
– Menu crashes / freezes when you spawn a vehicle (and won’t reopen afterward). On the current build World.CreateVehicle can return null before the vehicle model is streamed in, and the mod’s spawn code then throws on the null vehicle, which aborts the whole script. Now the script survives – if a spawn ever misses, just pick it again.
– NullReferenceException from the Quick Repair / Quick Wash / Siren Toggle hotkeys when used on foot (no vehicle to act on).

This is a tiny runtime patch (Harmony). It wraps every PoliceMenu V handler in a safety net that swallows the bad-frame exception and keeps the script running, instead of letting it abort. No gameplay logic is changed on the normal path. A brief on-screen notification shows when a crash is caught.

REQUIREMENTS
– Script Hook V
– ScriptHookVDotNet (nightly recommended)
– The original PoliceMenu V installed

INSTALLATION
1. Install the original PoliceMenu V as usual.
2. Drop PoliceMenuV_CrashFix.dll and 0Harmony.dll into your GTA V /scripts folder, next to the original PoliceMenuV.dll (leave it untouched).
3. Full game restart.

Single-player only. Never use in GTA Online.

Credits:

Original mod: by Abel Software.
Crash Fix by chris22622.

Download mod

FileFile size
zip PoliceMenuV_CrashFix_v1.1736 KB

Leave a Reply

Your email address will not be published. Required fields are marked *