• Hello Guest! Welcome to ConsoleCrunch, to help support our site check out the premium upgrades HERE! to get exclusive access to our hidden content.
  • Unable to load portions of the website...
    If you use an ad blocker addon, you should disable it because it interferes with several elements of the site and blocks more than just adverts.
  • Read Rules Before Posting Post Virus Scans with every program.

[TUTORIAL] Create Your Own Natives [XEX/SPRX]

sockstress

Member
Today, I figured I would release how to create your own natives. It requires RGH or CFW. Could​
be done on PC no idea how though. What you will need to do is do some research or reversing to figure out what kind of native you want to do. I will be creating a native to show if a player has godmode and if he doesn't. You will need these offsets first:
One of the Large Importing Native Functions
Xex: 0x8257D0B8
BLES: 0x6F0838
BLUS: 0x6F0668​

Function To Import Natives Into the Native Hash Table
Xex: 0x82845600
BLES: 0xA389B8
BLUS: 0xA387E8
Now, in the xex/sprx you will need to create a HookFunctionStart so we can import our natives like so.​
C:
HookFunctionStart((PDWORD)0x8257D0B8, (PDWORD)SetNativeStub, (DWORD)SetNative);
What this will be doing is hooking the large import table, so before the large import table is called we can import our native with the rest of the natives. Your stub can just be the same as any other stub you would call from CoD. And the last parameter will be your function you created like below.
After that you will need to create a SetNative function like so.
C:
HRESULT SetNative()
{
    PushNative("IS_PLAYER_INVINCIBLE", (DWORD)IS_PLAYER_INVINCIBLE);
    DbgPrint("Custom Native Entered!\n");
    return SetNativeStub();
}
I called the function to import natives into the game PushNative. The parameters for the
function go as PushNative(const char *NativeName, DWORD NativeAddress); The first parameter being what you want to call the native and that will be the native name the game hashes and imports into the native table. The next parameter being your function address we are going to import this will be the function you are going to create.
Code:
void IS_PLAYER_INVINCIBLE(DWORD native)
{
    DWORD dwReturn = *(DWORD*)(native);
    int Params = *(int*)(native + 0x04);
    DWORD dwNative = *(DWORD*)(native + 0x08);
}
Your function will only take one parameter and will only be a void, this goes for any function you
make even if it is returning a value. The reason for this is because GTA will send a pointer to your function as the first parameter. That pointer will go somewhere in memory and will store the return address for you function, how many parameters were sent to the native, and the address of those parameters.
Once you finish creating your native and the xex/sprx builds fine you will then need to import
your native into the sco compiler and import the native how you want in your script.

If all goes well you should be able to do something like this.
PM if you need help or need more explaining done.​
 
nice tut..to do this on ps3, you need sdk plugins and visuale studio 10 not lower not higer just 10 to make sprx menu's

And make bypass eboot that call the menu

For pc visuale studio and scriptvhook and scriptvhookdotnet to make script menu.
 
Last edited:
General chit-chat
Help Users
  • No one is chatting at the moment.
  • @ QM|T_JinX:
    did you speak to younis about maybe a plan or something to get this working again ?
  • @ God:
    I remember now it’s been a while you know lol but I remember you live in the Netherlands. You are a great Super Moderator bro as wel you are always active helping and trying to do what you can respect for you as well! I’m in the United States it’s 4:32pm here. What you going to do tonight?
  • @ QM|T_JinX:
    thanks bro appreciate that nothing mutch thinking about after the movie playing some red dead 2 almost have it on platinum haha
  • @ QM|T_JinX:
    so you thinking about become staff again or no great to have you back on here hto
  • @ QM|T_JinX:
    tho
  • @ God:
    That’s the truth I see I come on here often here lately, sometimes I don’t chat! But yes I really want to help out and do everything I can bring the site back like it should be bro! Maybe we could work something out, I think I have the resources and community to help
  • @ QM|T_JinX:
    yea i have seen you on here just like unbound and some others but they didnt stick haha yea would be great to see this site grow again like you said like it should be
  • @ God:
    We will see we gotta talk to the boss man Younis
  • @ QM|T_JinX:
    for sure haha well lets hope right
  • @ QM|T_JinX:
    i still think if there was a jailbreak for ps4 this site would have been back for sure
  • @ God:
    That would be awesome I’m sure it will happen before long, technology now a days is crazy! If we can work out a deal and plans I’ll be spreading the word and doing a lot to make it better more attractive and helpful fourms tips giveaways and all
  • @ God:
    I’ve been messing and working with trying to make great CSS for the names. Like Staff Premium news writer etc..
  • @ QM|T_JinX:
    ok so hows that going /
  • @ God:
    It’s going good. So we will see what happens and if the site can come back like it was or better
  • @ QM|T_JinX:
    nice yea lets hope
  • @ QM|T_JinX:
    im going to play some red dead it was great to have spoken to you bro nice to see you back on here
  • @ QM|T_JinX:
    hope you have a great night bro
  • @ God:
    It was good talking with you as well, you have a great night! We will talk later bro
    +1
  • Chat Bot:
    QM|T_JinX has joined the room.
  • @ QM|T_JinX:
    have a great weekend everybody ill be back after the weekend
  • Chat Bot:
    OkBrruh is our newest member. Welcome!
  • Chat Bot:
    uncrtin is our newest member. Welcome!
  • Chat Bot:
    BigTechModz is our newest member. Welcome!
  • @ BigTechModz:
    Hey this is RexMods I don’t remember the login to my old account so I made a new one I am now known as BigTechModz
  • Chat Bot:
    QM|T_JinX has joined the room.
      Chat Bot: QM|T_JinX has joined the room.
      Back
      Top