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.

System.IO.FileNotFoundException on a Plugin I Created

Featured Replies

Hey 👀❤️ 

 

So I'm following with a simple Beginner's tutorial series on YouTube (https://www.youtube.com/watch?v=sNlUcnBl0g0&list=PLIdBLpIJcplhbczHl_OmfHIWciMZqzd4J&index=3) and with this video in specific I'm up to the part where you create the .dll, install, and test it out in game. I'm try to test it out in game but it crashed so obviously it was the new ass plugin I just created of course lol, so I wanted to see what I did wrong. I got an System.IO.FileNotFoundException at the very end of my log so if 1+1=2 then a reasonable man would say this error caused my game to crash.

 

I'll attached the Rage log here as well so you can see all the juicy details yourself.

I'll attach my Visual Studio files as well so you can see my code. It's just a test/learning callout anyone, not a normal release so I don't mind sharing my code if it'll help solve my problem.

 

If the problem isn't me and it something in the video like it's outdated then just let me know and I'll try to find the newest possible.

Btw because of the whole Rage Hook situation with the newest version only being apart of the LSPDFR download, I couldn't get the newest SDK .dll, so I had to download the newest version on the Rage Hook website (which is an old version overall) to steal the SDK .dll file.

Do note: I had to delete LSPDFR's .dll file from both Learning Callouts > References & Learning Callouts > Learning Callouts > bin > Debug, in order to actually zip the file below 4MB which is the file limit. No worries, of course I had them install in both places and properly referenced inside the files. Just wanted say that so when you download it and see that .dll missing, you'll know why.

 

RagePluginHook.log Learning Callouts.zip

NoticeI didn't mean to post in this forum, if a moderator could please just move this for Tutorials & Questions in the Development forum I would appreciate it, thanks. Rather not just copy and paste this whole in a new message.

londonrials | custom clothing & scripts

Could contain: pink, person, magenta, dress, dance, outdoor, girl, woman, purple

Solved by LMS

Go to solution
  • Author

Okay took a bit a troubleshooting because Visual Studio originally didn't want to accept version 4.7 but I got it to work. Thank you LMS ❤️

One more question if you will, created a simple callout. All it is when the player accepts the call and go the callout location, if a pursuit isn't already happening one will start.
Problem I'm having is that the ped and the vehicle spawns but a pursuit never starts or occurs once arriving to the callout. They just stay there, in the middle of the road until I force them out the vehicle then they'll run away with the callout still going. Via the log, it never ended.

Here's my callout code after accepting it. (providing a new one because it has small changes from the overall code .zip I posted above).

Any ideas?

HighSpeedChase.zip

londonrials | custom clothing & scripts

Could contain: pink, person, magenta, dress, dance, outdoor, girl, woman, purple

  • Management Team

The problem is that your distance check uses a negative number for comparison. It might seem intuitive at first, but that is not how distances work. If you are comparing the positions of two objects in this context, you are measuring the size of the displacement, i.e., the distance magnitude. This can never be negative. If there was a direction involved, it could be, though.

 

If you care about the math, in three-dimensional Euclidean space the distance between two points is defined as seen below. Not only does it use the positive square root, but squaring the possibly negative numbers inside the square root also always yields positive numbers.


image.png

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

  • Author

Um so about that... lol I didn't mean to put < -20f, I meant to put <= 20f. When they said one typo can ruin your code and take hours to find, they wasn't joking lol. Thanks for the help LMS, I'll make sure to include you in credits.

londonrials | custom clothing & scripts

Could contain: pink, person, magenta, dress, dance, outdoor, girl, woman, purple

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