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 Crashes if I murder anyone

Featured Replies

If I shoot anyone then LSPDFR crashes. I mean ... sure it's wrong to shoot peds, but I mean ... it's fun though.

 

RagePluginHook attached.

 

Why is it trying to get my seat index? I'm not in a vehicle...

RagePluginHook.log

So it only crashes if I'm not in a car. Does not matter what car, any car is fine. I can run people over, but if I get out and shoot them it crashes. Not sure what else will cause it to crash, and by it I mean the LSPDFR plugin crashes, the game does not.

Solved by Cyan

  • Author

Quick update, I removed all the other rage plugins  except LSPDFR

Backweapon, ClearTheWAyV, DashcamV, EUP Menu, KTFDO, License plate randomizer, Scene Manager, spotlight, stickywheels, vehicle push

Now I can murder people again. I will turn them on one by one and narrow down which one is causing it.

  • Management Team
Just now, Stooge said:

Quick update, I removed all the other rage plugins  except LSPDFR

Backweapon, ClearTheWAyV, DashcamV, EUP Menu, KTFDO, License plate randomizer, Scene Manager, spotlight, stickywheels, vehicle push

Now I can murder people again. I will turn them on one by one and narrow down which one is causing it.

That would be massively helpful, thanks.

  • Author

Another update, somewhat bad news. If I turn those on it was not crashing, then I realized if I get into a vehicle, then exit the vehicle, and shoot someone *that* is when it crashes.
Even if all that is loaded is LSPDFR. Now, since the LSPDFR is crashing, my assumption is either it -- or more likely one of the plugins within LSPDFR is causing the issue. There are quite a few plugins. This will take me time to narrow down.

  • Author

One more update
Disabled all plugins in Plugins\LSPDFR
Disalbed all RagePlugins except LSPDFR

Disabled LML

Renamed mods folder to mods_disabled
Uninstalled ASI and OpenIV.asi

 

Same problem.

 

So

 

What I can do next is go to vanilla, install LSPDFR and only LSPDFR and see what happens. Might not get back to you tonight, though.

 

  • Management Team

Could you also try the code below when you are in a car? Essentially why it crashes is that the game reports a ped as in a car, then RPH looks at all seats to see which seat the ped is on and realizes that actually the ped is in no seat. Then it throws an exception because a ped should never be in a car but not in a seat. My hunch is that the number of seats a car has is corrupted in memory and hence the ped lookup fails, but it is just a guess at the moment.

 

Please load the game without LSPDFR but with RPH and go into one of the vehicles you know crashes. Then:

 

1.) Open console, enable developer mode (type in IsDeveloperModeEnabled true).
2.) Tab out of game, look for small "V" icon in tray bar, right click -> execute code.
3.) In code window, paste the following and send me the log afterwards.

var v = Game.LocalPlayer.Character.CurrentVehicle;
Game.LogTrivial("In Vehicle: " + v.Exists());
Game.LogTrivial("Capacity: " + v.PassengerCapacity);
Game.LogTrivial("Driver Seat Empty: " + v.IsSeatFree(-1));
Game.LogTrivial("Ped On Driver Seat: " + v.GetPedOnSeat(-1).Exists());
Game.LogTrivial("Player On Driver Seat: " + (v.GetPedOnSeat(-1).Exists() && v.GetPedOnSeat(-1).IsPlayer));
Game.LogTrivial("Index: " + Game.LocalPlayer.Character.SeatIndex); // This might crash.

Please do not PM me unless really necessary (knowing you helps). If you think you need my attention in a topic, tag me.

  • Author
1 minute ago, LMS said:

Could you also try the code below when you are in a car? Essentially why it crashes is that the game reports a ped as in a car, then RPH looks at all seats to see which seat the ped is on and realizes that actually the ped is in no seat. Then it throws an exception because a ped should never be in a car but not in a seat. My hunch is that the number of seats a car has is corrupted in memory and hence the ped lookup fails, but it is just a guess at the moment.

 

Please load the game without LSPDFR but with RPH and go into one of the vehicles you know crashes. Then:

 

1.) Open console, enable developer mode (type in IsDeveloperModeEnabled true).
2.) Tab out of game, look for small "V" icon in tray bar, right click -> execute code.
3.) In code window, paste the following and send me the log afterwards.

var v = Game.LocalPlayer.Character.CurrentVehicle;
Game.LogTrivial("In Vehicle: " + v.Exists());
Game.LogTrivial("Capacity: " + v.PassengerCapacity);
Game.LogTrivial("Driver Seat Empty: " + v.IsSeatFree(-1));
Game.LogTrivial("Ped On Driver Seat: " + v.GetPedOnSeat(-1).Exists());
Game.LogTrivial("Player On Driver Seat: " + (v.GetPedOnSeat(-1).Exists() && v.GetPedOnSeat(-1).IsPlayer));
Game.LogTrivial("Index: " + Game.LocalPlayer.Character.SeatIndex); // This might crash.


OK, I'll try that and report back.

Nice guess.

 

Here is the output I ran it once with me in a car, it was fine with that

Stepped out of the car, ran it again and it dumped the same error I've been seeing. This is with no LSPDFR, or anything else

 

PS -- I did it the ExecuteSnippet way and pasted your code in ExecuteCode\code1.cs, hope that's not a problem. I can do it the exact step by step you gave if you want, just felt this way was easier to me anyway

 

I can't be the only one having this issue ...?

 

RagePluginHook.log

  • Management Team
13 minutes ago, Stooge said:

I can't be the only one having this issue ...?

 

RagePluginHook.log 10.27 kB · 0 downloads

 

You are not, I was able to reproduce it just now, albeit under different conditions. The shooting part is fine for me, but after entering a car and then leaving it again, CurrentVehicle still reports the last vehicle. I am not sure yet whether this is due to a bug in RPH or a change in the underlying native function, but I think you can stop testing for the time being since I have a lead. Thanks!

Please do not PM me unless really necessary (knowing you helps). If you think you need my attention in a topic, tag me.

  • Author
3 minutes ago, LMS said:

 

You are not, I was able to reproduce it just now, albeit under different conditions. The shooting part is fine for me, but after entering a car and then leaving it again, CurrentVehicle still reports the last vehicle. I am not sure yet whether this is due to a bug in RPH or a change in the underlying native function, but I think you can stop testing for the time being since I have a lead. Thanks!

 

OK, good deal. Thankfully I keep lots of full backups before I mess with this stuff, because my game folder looks like a war zone now. I have no issues, as I can restore from one of my backups and wait for any updates or if you need further assistance I'll do what I can.

Edited by Stooge

  • Management Team

I have confirmed that the behavior of the game function GET_VEHICLE_PED_IS_IN has changed (so it affects RPH, SHV etc.), now seemingly ignoring the second parameter and always returning the last vehicle. Whether this is intentional or a bug is unclear, but we can work around it. Will push an update for RPH soon.

Please do not PM me unless really necessary (knowing you helps). If you think you need my attention in a topic, tag me.

  • Author
4 hours ago, Cyan said:

The latest version of LSPDFR includes a fix for this issue.

I can confirm I am once again able to murder people (NOTE: I have not so much as been in a physical altercation in over 30 years IRL, so I'm not a psychopath. It's just more about improving aiming skills to be honest)

You may not be able to answer this, but do you think ScriptHookV might have the same issue? I know that's not your responsibility, and likely you don't have access to the source code than anyone else does, but you're the expert on how a lot of this stuff works, so wanted to ask.

  • Management Team
12 minutes ago, Stooge said:

I can confirm I am once again able to murder people (NOTE: I have not so much as been in a physical altercation in over 30 years IRL, so I'm not a psychopath. It's just more about improving aiming skills to be honest)

You may not be able to answer this, but do you think ScriptHookV might have the same issue? I know that's not your responsibility, and likely you don't have access to the source code than anyone else does, but you're the expert on how a lot of this stuff works, so wanted to ask.

The root cause is a Rockstar change in how the GET_VEHICLE_PED_IS_IN function works. They normally don't change essential natives, but this native has been changed to always return the last vehicle the Ped was in, even if you ask it not to. Whilst LMS has added a workaround in RPH, anything directly calling that native will get this new unexpected behavior.

This is a support topic.
Only reply here to offer help or assistance to Stooge. 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.