Solved Need Help by using the Draw_Text Func in AC

Hexui Undetected CSGO Cheats Sinkicheat PUBG Cheat

FreakyHacking

Newbie
Jun 26, 2016
4
32
0
Hey guys,
I try to make a internal hack, but it dont work i dont now why i reverse the Draw_text offset with IDA and its maybe right.

Here is my(The most is Copy from the VideoTut)Source:
Code:
typedef char*(__cdecl * _ACPrintF)(char * sFormat, ...);
typedef void*(__stdcall *_DrawText)(const char *str, int left, int top, int r, int g, int b, int a, int cursor, int maxwidth);

DWORD WINAPI MainThread(LPVOID param)
{
	uintptr_t base = (uintptr_t)GetModuleHandle("ac_client.exe");
	_ACPrintF ACPrintF = (_ACPrintF)(base + 0x6B060);
	_DrawText pDrawText = (_DrawText)(base + 0x41A150); //0x41A150

	char* sFormat = "%s:\f%d %s";

	ACPrintF(sFormat, "ACHack", 3, "Loaded...");
	
	while (!GetAsyncKeyState(VK_END))
	{
		if (GetAsyncKeyState(VK_NUMPAD1) & 1)
		{
			ACPrintF(sFormat, "Str1", 1, "str2");
			pDrawText("MY SIMPLE TEXT", 55, 55, 255, 0, 0, 255, 1, 55);
		}
	}

	ACPrintF(sFormat, "ACHack", 1, "Unloading...");
	FreeLibraryAndExitThread((HMODULE)param, 0);
	return 0;
}

BOOL WINAPI DllMain(HINSTANCE hModule, DWORD dwReason, LPVOID lpReserved)
{
	switch (dwReason)
	{
	case DLL_PROCESS_ATTACH:
		CreateThread(0, 0, MainThread, hModule, 0, 0);
		break;
	default:
		break;
	}
	return TRUE;
}
thank you in advance
Freaky
 
Last edited:

Rake

Cesspool Admin
Administrator
Jan 21, 2014
12,073
78,998
2,371
The function you're trying to call appears to be the same one that A200K uses in his hack here, perhaps you can figure it out from his source code. He uses inline ASM, maybe it is easier this way because of some shitty calling convention or optimization.
 
Attention! Before you post:

Read the How to Ask Questions Guide
99% of questions are answered in the Beginner's Guide, do it before asking a question.

No Hack Requests. Post in the correct section.  Search the forum first. Read the rules.

How to make a good post:

  • Fill out the form correctly
  • Tell us the game name & coding language
  • Post everything we need to know to help you
  • Ask specific questions, be descriptive
  • Post errors, line numbers & screenshots
  • Post code snippets using code tags
  • If it's a large project, zip it up and attach it

If you do not comply, your post may be deleted.  We want to help, please make a good post and we will do our best to help you.

Community Mods