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.

Specify path to XML file

Featured Replies

Hello!

For the plugin I'm working on, I have created an XML file that needs to be accessed.
The path to the file is .../Grand Theft Auto V/plugins/PluginName/MyXML.xml and my dll is at .../Grand Theft Auto V/plugins/PluginName.dll
So what should I tell my plugin where to look for the XML? I've tried XDocument.Load("PluginName/MyXML.xml") but that doesn't seem to be working.

I'd be glad for any suggestions!

Assuming you're using RPH, paths will be relative to the location of the ragepluginhook.exe executable. So, you'll want to say "Plugins\PluginName\MyXML.xml" as the path. 

[REL] Coastal Callouts: An action-packed mod with new vehicles, maps, capabilities, and callouts in and around the waters of Los Santos

[REL] Police Tape: Make your scenes more realistic while stopping peds and traffic

[REL] Better EMS: Realistic and dynamic EMS response

Join the Parks Benefactor Program to support my work and get early beta access!

  • Author
2 minutes ago, LtFlash said:

I also needed to add a dot at the beginning so the path your're lookin for would look like this:

string path = @".\Plugins\YourMod\YourFile.xml";

Thanks, but it worked without the dot. This probably depends on the method/class requiring your path. XDocument.Load("plugins/PluginName/MyXML.xml") works.
(Note that I'm using slash(/) instead of backslash(\).)

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...

Similar Content

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.