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.

_LOAD_MP_DLC_MAPS native problem

Featured Replies

Hello everyone,

So I'm trying to load multiplayer DLC in order to get the garage added in this DLC. The problem is that when I call the _LOAD_MP_DLC_MAPS() and the _ENABLE_MP_DLC_MAPS(bool) natives the game crashes.

NativeFunction.CallByName<uint>("_ENABLE_MP_DLC_MAPS", true);
NativeFunction.CallByName<uint>("_LOAD_MP_DLC_MAPS");

You can view the generated crash report on my Google Drive.

And you can view the source code on Pastebin.

Thank you very much!

Best regards,
Andrei

  • Author

From the reply from MulleDK19 on the RPH forums:

You cannot call natives using CallByName() except with their actual name. Natives starting with underscore are guessed names.
You'll have to use CallByHash().

NativeFunction.CallByHash(0x9BAE5AD2508DF078u, true);

3 hours ago, AndreiH said:

Hello everyone,

So I'm trying to load multiplayer DLC in order to get the garage added in this DLC. The problem is that when I call the _LOAD_MP_DLC_MAPS() and the _ENABLE_MP_DLC_MAPS(bool) natives the game crashes.


NativeFunction.CallByName<uint>("_ENABLE_MP_DLC_MAPS", true);
NativeFunction.CallByName<uint>("_LOAD_MP_DLC_MAPS");

You can view the generated crash report on my Google Drive.

And you can view the source code on Pastebin.

Thank you very much!

Best regards,
Andrei

that is usually something I use in scripthookvdotnet but isn't available in ragehook.

as I usually call the natives by name in scripthookvdotnet but cannot do the same in ragehook. 

of course it doesn't help the matter scripthookvdotnet has the hash class so it pre defines it for you lol

Edited by timnboys

My plugins by me are on this site in addition to my own site as well.

Do Not PM Me for Support! follow the instructions for getting support with any mods. 

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.