Jump to content
AndreiH

_LOAD_MP_DLC_MAPS native problem

Recommended Posts

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

Share this post


Link to post
Share on other sites

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);

Share this post


Link to post
Share on other sites
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

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×