try this 0xB54DB0
Hay Guys why my code give me error while inject it i use it in x32
Code:typedef void(WINAPI* oGlowESP)(bool value); #define GlowAddr 0x00B54DB0 void functions() { DWORD dwCShell = (DWORD)GetModuleHandleA("CShell.dll"); oGlowESP pSetGlowColor = (oGlowESP)((DWORD)dwCShell + GlowAddr); if( Variable[ 2 ] ) { pSetGlowColor(true); } else { pSetGlowColor(false); } }
[QUOTE=X3renox;15076124]same it gives me error Do you want to report Sad
Last edited by raichfighter22; 03-07-2021 at 05:47 AM.
Code:void CHacks::Glow() { oGlowColor GlowFn = (oGlowColor)(CEngine::get()->GetCShell() + 0xB05DE0); // CF PH if (!IsBadReadPtr(GlowFn, 4) && GlowFn != nullptr && GlowFn != NULL) { if (CVars::get()->glow) { GlowFn(true); } else { GlowFn(false); } } }
Last edited by KNXN; 03-07-2021 at 01:44 AM.
Should work now!Code:void GlowFixed() { #define GlowAddr69420 0xB9B3D0 auto CShell = (DWORD)GetModuleHandleA("CShell.dll"); typedef void(WINAPI* oGlowESP)(bool value); oGlowESP pSetGlowColor = (oGlowESP)((DWORD)CShell + GlowAddr69420); if( Variable[ 2 ] ) { pSetGlowColor(true); } else { pSetGlowColor(false); } }
X3renox (03-07-2021)
X3renox (03-07-2021)