Tutorial Hooking Tutorial {LGL Mod Menu Part II} (With video Tutorial)

DVAツ

Solid & Active Platinian
Hooking Tutorial(Patching) {LGL Mod Menu Part II} (With video Tutorial) {All explained}

So hi guy's after a long time so today I thought to teach how to do hooking in the lgl menu and complete it successfully!

This is a tutorial for newbies or new to modding.
Read this article carefully and watch the given video then You can understand it more easily.


Honorable Mentions:- @LEIIKUN
Template Owner:-
@TheLGL

Video Tutorial


Software's to download

! Hidden Content !
You must be signed up and reply to the thread or click 'Like' under this post before you can see the hidden links contained here.
You might need to refresh the page after pressing like. If you still facing issues revealing the hidden links, please read this.
So if you haven't read the part I pls read it and read this!
Read here:- Part I

Making Memory/HEX Patches

So we all know before we start we need to create memory patches so like this we can make!

Code:
struct My_Patches {
    MemoryPatch Skin, Killcool;
} hexPatches;

Creating Cases

So after that, we need to create each case we build in each feature in our menu. So in that video I use simple case to teach. Like this

Code:
case 0:
            feature2 = boolean;
            if (feature2) {
                hexPatches.Skin.Modify();
            } else {
                hexPatches.Skin.Restore();
            }
            break;

Please be careful if you accidentally missed any breaks here menu will crash!
And the case number must be declared uniquely!!
HOOKING

Note - If your game is armv7 pls make the code in armv7 place and if it is arm64 pls add the code in the suggested place!

Code:
hexPatches.Skin = MemoryPatch::createWithHex(targetLibName,
                                                    string2Offset(OBFUSCATE_KEY("0xBEEE3C", '-')),
                                                    OBFUSCATE("01 00 40 E3 1E FF 2F E1"));

Here this is called as the offset "0xBEEE3C" the memory we need to change so the value is written in hexadecimal (HEX) "01 00 40 E3 1E FF 2F E1"

Not to worry here " '-'" This is called OBFUSCATE Key!


HEX CODES(Thanks to @LEIIKUN )
Code:
00 00 A0 E3 1E FF 2F E1                                 = False or number 0
01 00 A0 E3 1E FF 2F E1                                 = True or number 1
02 00 A0 E3 1E FF 2F E1                                 = Number 2
07 00 A0 E3 1E FF 2F E1                                 = Number 7
0A 00 A0 E3 1E FF 2F E1                                 = Number 10
0F 00 A0 E3 1E FF 2F E1                                 = Number 15
10 00 A0 E3 1E FF 2F E1                                 = Number 16
11 00 A0 E3 1E FF 2F E1                                 = Number 17
12 07 80 E3 1E FF 2F E1                                 =   VALUE OF 12 Million or It can be used for health/ammo/armour/damage
DC 0F 00 E3 1E FF 2F E1                                 = VALUE 4060
DC OF OF E3 1E FF 2F E1                                 = VALUE 120000
01 00 A0 E3 1E FF 2F E1                                 = VALUE 1 Also = True used for bool
00 00 A0 E3 1E FF 2F E1                                 = Value 0 Also = False used for bool
01 0A A0 E3 1E FF 2F E1                                 = 1000
01 08 A0 E3 1E FF 2F E1                                 = 10000
01 02 A0 E3 1E FF 2F E1                                 = 10000000
C2 0A 64 60 00 00 00 02                                 = Speed Hack
01 04 A0 E3 1E FF 2F E1                                 = 1000000
0E 00 A0 E3 1E FF 2F E1                                 = Fire Rate
FF FF = Value of 65535                                  = Highest value 4 character hex code
02 01 E0 E3 1E FF 2F E1                                 = 2,147,483,648
7F 04 E0 E3 1E FF 2F E1                                 = 2,130,706,432
7F 06 A0 E3 1E FF 2F E1                                 = 133,169,152
0F 07 02 E3 1E FF 2F E1                                 = 9,999
FA 04 44 E3 1E FF 2F E1                                 = 2,000
FF 09 0C E3 00 10 A0 E3 9A 0B 43 E3 1E FF 2F E1         = 999,999,999

After you're done and I know if you don't watch the video you can't understand so pls watch it!

And,
Happy Modding!
 
Last edited:
Back
Top Bottom