This is the AMP version of this page.
If you want to load the real page instead, click this text.

Help! Returning the felds value (int)

DieckyAwsm

Platinian
Example int fields offset :
public int fireRate; //0x66

Then this is my hook :
void(*old_UpdateFireRate)(void *instance);
void FireRate(void *instance) {
if (instance != NULL) {
if (FireRate) {
*(int *) ((uint64_t) instance + 0x66) = 4; //

}
}
old_UpdateFireRate(instance);
}

How to returned old or original value of field offset when toggle deactivate?