Solved Hook

Status
Not open for further replies.

BeginnerBR

Solid & Active Platinian
Sep 4, 2022
62
14
8
24
Brasil
float Health0 = 1.0f;

void (*old_FunctionExample)(void *instance);
void FunctionExample(void *instance) {
if (instance != NULL) {
if (Health0) {
*(int *) ((uint64_t) instance + 0x48) = Hp;
}
}
return old_FunctionExample(instance);
}

OBFUSCATE("11_CollapseAdd_SeekBar_HP HACK_0_50"),

case 11:
Health0 = value;
break;
 

DaRealPanDa

Co-Administrator
Staff member
Supporting-Team
Global Moderator
Social Media
Mar 12, 2018
6,771
15,652
2,120
27
Skyrim
@Levy asaf

Is this question solved for you?
When it's solved please answer and i will mark it as "solved" and lock the question.
When you don't answer within 1 week i will close the question anyway.
You're of course always able to write me a message and i will just reopen the thread.
 

BeginnerCodes

Rookie
Oct 31, 2022
1
0
1
23
Usa
how to hook inputvalue with fields?
Help, pls
Code:

int sliderValue = 1, level = 0;

void (*old_Rate)(void *instance);
void Rate(void *instance) {
if (feature3 != NULL) {
if (feature3) {
*(int *) ((uint64_t) instance + 0xBC) = 99999;
}
}
return old_Rate(instance);
}

MSHookFunction((void*)getAbsoluteAddress("libil2cpp.so", 0x5F60DC), (void*)Rate, (void**)&old_Rate);

OBFUSCATE("Toggle_Rate"),

case 2:
sliderValue = value;

break;
 
Status
Not open for further replies.