Hey, bro, help. I'm learning about hooking with mod-menu. I have a question. I don't understand the meaning of the two lines:
*(int *) ((uint64_t) instance + 0x30) = 5000;
MSHookFunction((void *)getAbsoluteAddress("libil2cpp.so", 0x00000), (void *) GameMode_Update, (void **) &old_GameMode_Update);
How can we know the offset(always 0?) of a Class to hook the field? And does the name of the hook method should be the same with the Class(GameMode_Update, old_GameMode_Update)?Can you offer me a full script of a game. Thank u very much.