Hey ConsoleCrunch Users!
I'm going to be giving you the modder protection addresses, but also showing you how to retrieve them yourselves.
Run-through: To activate the protection, we're writing an instruction named 'blr', which is '0x4E800020' in hexadecimal to the address for the protection. The addresses are actually of 'events' in-game, such as Clear Tasks.
The Addresses (Only ones that matter, if you would like the rest you will need to read my tutorial below):
To find the addresses, you will need two things.
The Tutorial:
Now we have the address, we need to incorporate it into our menu/tool. To add this into a mod menu (C++), do the following:
2much4u base
Code:
addBoolOption("Particle Protection", BoolToggle);
switch(getOption()){
case 1: BoolToggle = !BoolToggle; *(int*)0x12D5098 = BoolToggle ? 0x4E800020 : 0x7C0802A6; break;
}
To add this to a tool (C#) it's virtually the same, except you need to use 'WriteInt32'.
If you need any help, comment me below
I'm going to be giving you the modder protection addresses, but also showing you how to retrieve them yourselves.
Run-through: To activate the protection, we're writing an instruction named 'blr', which is '0x4E800020' in hexadecimal to the address for the protection. The addresses are actually of 'events' in-game, such as Clear Tasks.
The Addresses (Only ones that matter, if you would like the rest you will need to read my tutorial below):
- Particle Protection: 0x12D5098
- Explosion Protection: 0x12C5638
- Clear Task Protection: 0x12CC958
- Force Task Protection: 0x12CB198, 0x12CB55C, 0x12CB930, 0x12CB70C
- Remove Weapon(s) Protection: 0x12C3C74, 0x12C3ACC
- Give Weapon Protection: 0x12C37EC
- Request Vehicle Control Protection: 0x12BD36C
- Vehicle Component Alter Protection: 0x12C413C
- Fire Protection: 0x12C4A44
- Projectile Protection: 0x12C69F0
To find the addresses, you will need two things.
- IDA
- Eboot elf
The Tutorial:
- Once you have IDA and the 1.27 eboot.elf, proceed to open the .elf file up in IDA.
- Once you have it opened, let it load everything.
- Once loaded, proceed to 'View' - Imgur: The most awesome images on the Internet
- Proceed to 'Open subviews' - Imgur: The most awesome images on the Internet
- Next, click on 'Strings' and let it load - Imgur: The most awesome images on the Internet
- Once loaded, hold click 'Ctrl + F' to open the search box for the strings - Imgur: The most awesome images on the Internet
- Once open, type in '_event'. 106 results should appear.
- The next part is all you. Search the strings and find the event you would like, for example, "CLEAR_PED_TASKS_EVENT", "NETWORK_PTFX_EVENT" and so on.
- Once you have found the event you would like protections for, double click it. You will be presented with this page -http://imgur.com/QbcR2pf
- Once you see this page, you are going to want to click on the xref for that event - Imgur: The most awesome images on the Internet
- Now we are where it's referenced - http://imgur.com/8NY5WoQ
- Now we are at the event, we need to double click 'off_' - http://imgur.com/zxWiN9t
- You will be presented with something like this - http://imgur.com/Vgq0JOj
- The event address we need is on the line selected. Copy the line, excluding '01C85330' - http://imgur.com/Pvcd9AI
Now we have the address, we need to incorporate it into our menu/tool. To add this into a mod menu (C++), do the following:
2much4u base
Code:
addBoolOption("Particle Protection", BoolToggle);
switch(getOption()){
case 1: BoolToggle = !BoolToggle; *(int*)0x12D5098 = BoolToggle ? 0x4E800020 : 0x7C0802A6; break;
}
To add this to a tool (C#) it's virtually the same, except you need to use 'WriteInt32'.
If you need any help, comment me below
