Code: #define pCPlayerSize 0x00000810 #define pCPOffset 0x65C8 /*=============================================*/ bool SetEspThread(LPDIRECT3DDEVICE9 pDevice) { DWORD CShell = (DWORD)GetModuleHandleA(egameCShell);; if (!pLTClientShell) { pLTClientShell = FindPattern(CShell, 0xFFFFFF, (PBYTE)"\x8B\x0D\x00\x00\x00\x00\x50\x00\x44\x24\x00\x50\x81\xC1\x00\x00\x00\x00\xE8\x00\x00\x00\x00\x8B\x00\x85", "xx????x?xx?xxx????x????x?x"); if (pLTClientShell) { pLTClientShell = *(DWORD*) (pLTClientShell + 0x2); pLTClientShell = pLTClientShell - CShell; } } else { if (!pLTModel) { pLTModel = FindPattern(CShell, 0xFFFFFF, (PBYTE)"\x8B\x0D\xFF\xFF\xFF\xFF\x8B\xFF\x8B\x40\x34\x8D\x54\x24\x18", "xx????x?xxxxxxx"); if (pLTModel) { pLTModel = *(DWORD*) (pLTModel + 0x2); pLTModel = pLTModel - CShell; } } else { if (!pCPlayerStart) { pCPlayerStart = FindPattern(CShell, 0xFFFFFF, (PBYTE)"\x0F\xB6\x8E\xFF\xFF\xFF\xFF\x69\xC9\xFF\xFF\xFF\xFF\x8A\x84\x31\xFF\xFF\xFF\xFF\x5E\xC3", "xxx????xx????xxx????xx"); if (pCPlayerStart) { pCPlayerStart = pCPlayerStart - 0x1B; pCPlayerStart = pCPlayerStart - CShell; } } else { // Active ESP. } } } return false; }