Skip to content
View in the app

A better way to browse. Learn more.

LCPDFR.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.
The latest updated version of RAGE Plugin Hook, required to play LSPDFR, can be found inside the LSPDFR download. It is not currently available on the RAGE Plugin Hook website.

LSPDFR Crash when carrying a firearm attempt to read/write protected memory

Featured Replies

Hello,

I'm using the latest LSPDFR Enhanced/RPH, on GTA V Enhanced and whenever I have a firearm, LSPDFR would crash with 'System.AccessViolationException: Attempted to read or write protected memory. This is often an indication that other memory is corrupt..' related to 'WeaponSkin.FromWeapon'.

I've seen this exact issue reported before, but in my case, it only seems to occur when off-duty and when I carry a firearm, specifically a Combat Pistol and/or an AP Pistol, both weapons I've tried, regardless of how I obtained it, whether it be spawning it with a trainer, RPH F4 menu, or even simply buying the firearm from an Ammu-Nation, but strangely, when I'm ON-DUTY, in which I carry a Combat Pistol, no crash. Nothing. It only seems to occur when I'm OFF and I try to have the gun in question, or another that caused a similar crash. But what's also weird is, I've spawn a regular Pistol via trainer and.. no crash. Also with the MK2 Pistol, no crash. So.. in my case, it occurs with specific weapons, and only when off-duty. I've tried it with mods folder disabled and completely moved from my game folder with rpf.cache enabled, and in my latest run, again, on-duty, same firearm, no crash, even after I attached a flashlight, via trainer.

I know this issue was reported before in various instances, with no resolution, it seems, but.. my circumstances are:

Some ASIs loaded in, essentials like HeapAdjuster Enhanced, PackfileLimitAdjuster Enhanced, DirectStorageFix, etc.

ScriptHookDotNet Enhanced

Occurs only when OFF-DUTY, on-duty, it's fine. Occurs regardless if mods folder present or not.

No other mods in plugins folder except LSPDFR Enhanced

Occurs only with SPECIFIC weapons, in my case, Combat Pistol and AP Pistol, regular Pistol seems fine, and the MK2 variant to.. other weapons weren't tested.

So... because I've seen this exact same issue reported under various circumstances with no clear resolution, is it an issue with the current LSPDFR/RPH Enhanced build? In the end it's more of a pet peeve than anything, and LSPDFR does seem to work without crashing as long as I don't carry specific firearms, if not any firearm, while off duty. Because if it's an issue with the game itself or my mods folder, I wouldn't have been able to play the game at all.

Edited by TheKnightMan32114
Had to clarify I was on-duty in my latest run that was crash-free.

  • Author

Okay, well. I did try that. It did not fix the problem in question. Same circumstances, similar weapon. Before restart, I played for about an hour, with the same weapon, deleted at first then brought back with a trainer, no issues, all while I was on duty, again the issue only occurred when I'm off duty in my case. Log is attached, but I did run it through the RPH log analyzer first, and it says it's usually caused by custom weapon models, or something might be wrong with the agency/inventory xmls, which in the case of the former, I do not have any custom weapon mods, and the latter doesn't explain why it only occurs when I am off duty.

I did have a mods folder active, but again, nothing has been modified, and it still occurs with or without it. I guess the solution for me, for now, as long as I'm gonna be playing LSPDFR for the Enhanced Version, is basically don't equip the specific weapons in question, if not any weapon, while off duty. I ain't got any better ideas if there's no clear cause and no clear solution. Appreciate it, anyways.

RagePluginHook.log

Edited by TheKnightMan32114
Had to clarify that I do not equip any weapons while off duty.

  • Author

Update,

I've installed RageNativeUI, which does work on GTA V Enhanced as long as you have the correct version of RPH, but then I started the game without RPH first, then loaded RPH in after fully booting into story mode. After LSPDFR loaded in, (after a brief scare when it a screen briefly popped saying Loading Online, I quickly hit escape on that and it went back to normal, plus, I got BattlEye disabled via both the Rockstar Games Launcher and having -nobattleye on the commandline text file), and my character loaded in, I equipped a weapon, the Combat Pistol, while off duty, and... no crash, at least at the moment, then removed it from my off-duty inventory, to be on the safe side, then when on-duty, still no crashing with the same weapons, then went off duty, and equipped Combat Pistol, no crash, equipped all kinds of weapons, no crash, then cleared my inventory again, to be on the safe side. I thought everything was going well, I thought installing RageNativeUI might've fixed it.

I was wrong..

For testing purposes, I restarted my PC, then loaded the game via RPH, after fully loading in.. I equipped a Combat Pistol, then.....

Crash.... same issue, same circumstances.

After reloading LSPDFR, I then equipped a Pistol.... Crash.... same circumstances.

So... log will be provided, but still, because I've seen this exact issue reported before with no clear cause and no clear solution, I'll just stick with not having any weapons equipped while off-duty as my temporary workaround.. probably not even go to the gun range while off-duty because I don't know if LSPDFR will crash then..

I got no better ideas anyway, and again, LSPDFR still works without crashing as long as I don't equip any weapons while off-duty, so that remains a temporary workaround for me..

RagePluginHook.log

Edited by TheKnightMan32114
Corrected some typos.

DId you clear all weapons via trainer or through another method? I'm having this same issue and despite clearing weapons while off duty via SNT, I still get these crashes.

  • Author

Mainly via trainer, in my case Menyoo, but when it crashes and I reload, the weapons disappear, pretty much resetting my inventory, not needing a trainer. Worst case was when I bought a gun from Ammu-Nation and then closed my game before restarting, I couldn't get back in it, it would keep crashing unless I started the game without RPH, but once I tab out and load RPH, crash.. I had to clear my character files and reset my sync to fix it, but it didn't fix the overall issue.

But, I don't know what causes it, there's no clear cause apparently, so no clear solution, for now at least. Your circumstances that lead up to the crash are likely a bit different from mine, so I have no clear answer for you, unfortunately. I would run the RPH log through a log analyzer, it would just say bad inventory or bad weapon mods, but in the case of the former, it doesn't explain why it only happens off duty, in my case, at least, and in the case of the latter, it still happens even with my mods folder moved out of my game directory and rpf.cache enabled, which in Enhanced, disables the mods folder and loads the default files. It didn't happen with Legacy, but I can't play on Legacy, especially after I got my new PC last month, so Enhanced will have to carry me on at this point.

So, I don't have a clear answer, I've tried almost everything shy of a complete reinstall of the game, so, me personally, I have to rely on the temporary workaround I have. I do hope this gets figured out, but no one, not even staff, has a clear answer, and I've seen this reported many times before with no clear resolution, so yeah.

I wonder if there’s an issue with the inventory.xml file that would cause it to freak out like that. I haven’t had time lately to do anything to test, but maybe it’s a borked loadout with LSPDFR (within the default loadouts idk)

Edited by spreilly

  • Author

Idk too, man. But again, with my case, it only happens only when I try to equip a weapon myself while off duty, and when I don't, it never crashes otherwise, so a borked inventory.xml doesn't explain my case, I don't think.

Edited by TheKnightMan32114

This is a support topic.
Only reply here to offer help or assistance to KnightWing32114. Off-topic or "me too" replies will be removed.

Need support yourself? Make a new topic instead.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

Recently Browsing 0

  • No registered users viewing this page.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.