void (*GoldHack_old)(void *instance);
void GoldHack(void *instance){
if(instance != NULL && NM.isMajor){
*(float *) ((uint64_t) instance + 0x300) = 999.5f;
}
return GoldHack_old(instance);
}
A64HookFunction((void *)getAbsoluteAddress("libil2cpp.so", 0x655D98), (void *)GoldHack, (void **)&GoldHack_old);
i've tried hook update method on another game, it didnt work@Poison Modz rename the update old_ / _old doesnt change anything, u can use any random name still works lol
@Denka everything looks fine to me, maybe use other update method from another class that used on that instance
doesnt have any senseWhy are you returning value in à void type ? Void does not return value
Replace this
return GoldHack_old(instance);
By juste
GoldHack_old(instance);
Yes it does h1ve since if you cant understand that void function does not return value you need to start learning programingdoesnt have any sense
do not teach me, IT WORKS FINE with "return"Yes it does h1ve since if you cant understand that void function does not return value you need to start learning programing
Dictators: No PeaceGame name
i wanna make it by mydelf, to learn moddingI already make mod for dictator no peace
Did you ever figure this out bro? I'm having the same problem. I tried just about every other update, lateupdate, fixedupdate without any success. Keeps crashing.i wanna make it by mydelf, to learn modding
void (*Anyname)(void *instance,int value);
void (*_voidinthooking)(void *instance);
void Voidinthooking(void *instance) {
if (instance != NULL) {
if (VoidHookingint) {
Anyname(instance, 999); //you can replace it with any number you want
}
}
return _voidinthooking(instance);
}
HOOK_LIB("libil2cpp.so","0xUpdateOFFSET",Voidinthooking,_voidinthooking);
Anyname = (void (*)(void *, int))getAbsoluteAddress("libil2cpp.so",0x(TheRefillOFFSET));
Thanks bro. This hint tipped me off and got me thinking in the right direction and I solved my issue.You might wanna check that the field offset ( Basically the + 0x300 ) is correct as it could be a null pointer dereference.
We use cookies to personalize content and ads, to provide social media features and to analyse our traffic. We also share necessary information with our advertising and analytics partners to optimize your experience on our site.
Learn more about cookies
We use cookies to personalize content and ads, to provide social media features and to analyse our traffic. We also share necessary information with our advertising and analytics partners to optimize your experience on our site.
Learn more about cookies