Example int fields offset :
Then this is my hook :public int fireRate; //0x66
How to returned old or original value of field offset when toggle deactivate?void(*old_UpdateFireRate)(void *instance);
void FireRate(void *instance) {
if (instance != NULL) {
if (FireRate) {
*(int *) ((uint64_t) instance + 0x66) = 4; //
}
}
old_UpdateFireRate(instance);
}