Tutorial How to make mod menu for il2cpp and native games

Braz-Mods

Approved Modder
Approved Modder
Oct 16, 2018
120
7,479
1,193
36
My world
@TheLGL
Hello, I have a huge doubt! How to start this function when clicking the button? I've tried and so far it doesn't work. :face02:

C++:
bool (*old_get_IsInvincible)(void *instance);

bool get_IsInvincible(void *instance) {
    if (instance != NULL && feature2) {
        LOGI("get_IsInvincible God Mod");
        return true;
    }
    //LOGI("get_IsInvincible");
    return old_get_IsInvincible(instance);
}
 
  • Like
Reactions: apkghc

TheLGL

Awesome Active Platinian
Original poster
Skilled
Feb 19, 2020
156
4,146
193
UK
Sketchware in playstore

I will take a look :))

@TheLGL
Hello, I have a huge doubt! How to start this function when clicking the button? I've tried and so far it doesn't work. :face02:

C++:
bool (*old_get_IsInvincible)(void *instance);

bool get_IsInvincible(void *instance) {
    if (instance != NULL && feature2) {
        LOGI("get_IsInvincible God Mod");
        return true;
    }
    //LOGI("get_IsInvincible");
    return old_get_IsInvincible(instance);
}
feature2 = !feature2; in your Changes method
 
  • Like
Reactions: Braz-Mods

Dhubs

Platinian
Jan 10, 2019
28
180
33
42
California
I'd like to patch a list or vector or array kinda the same not really. Also any way to send a unity vector3d to a function thanks:)
 

isaiasgut

Platinian
Sep 12, 2019
7
0
1
25
argentina
[QUOTE = "Dhubs, publicación: 1393123, miembro: 354319"]
Debe proporcionar un logcat para que cualquiera pueda ayudar.
[/CITAR]
The mod runs on other games except Free Fire, which layer needs a bypass to inject the mod menu. the logcat has no errors
 

Braz-Mods

Approved Modder
Approved Modder
Oct 16, 2018
120
7,479
1,193
36
My world
what to do if the image does not display correctly please
@Gourov
If you are using .gif
Screenshot_75.png

This is due to permissions not given apk

(Requires android.permission.INTERNET)
Screenshot_76.png


If you are not going to use .gif do this.
Screenshot_77.png


And add your image here.
Screenshot_78.png

Use Base64 Encode and Decode - Online to encode your image to base64

Screenshot_75.png



Espero que isso te ajude ok.
Braz Mods
 
Last edited:

Gourov

Platinian
Dec 11, 2019
38
853
83
26
Bangladesh
Need a little help here ....
I want to load this toast from main.cpp when game starts.
Screenshot_4.png


thats why I made a call on FloatingModMenuService.java
Screenshot_6.png


but now the app (Floating Mod Menu) is crashing when testing. What I am doing wrong or what else I need to do ?
 

Attachments