How to make AddMoney feature for mod menu

Sbenny.com is trusted by 1,324,218 happy users since 2014.
Register

PoisonModz

Droidstein Lv8️⃣
✌️ Community Team
From the Hell
🎮 Testing Team
Active User
Member for 3 years
Hi guys i am making MOD Menu for dead target i want to make AddMoney feature


// RVA: 0x6C703C Offset: 0x6C703C VA: 0x6C703C
public void AddDiamond(int value, bool invi = True) { }

here is my code

bool addDiamond = false;

void (*AddDiamond)(void *instance, int value);

void (*old_Update)(void *instance);
void Update(void *instance) {
if (instance != NULL) {
if (addDiamond) {
addDiamond = false;
AddDiamond(instance, 100000);
}
}
return old_Update(instance);
}

MSHookFunction((void *) getAbsoluteAddress(targetLibName,
string2Offset(OBFUSCATE("0x6E1C70"))),
(void *) Update, (void **) &old_Update);

AddDiamond = (void (*)(void *, int))getAbsoluteAddress(targetLibName, 0x6C703C);

case 7:
addDiamond = boolean;
break;

Is this right or not when I add in my mod menu it is crashing Please fix this problem
 
Top