Solved D3D Menu

Hexui Undetected CSGO Cheats PUBG Accounts

Chikimaro

Newbie
May 21, 2016
4
304
0
Hi,
I released my first D3D menu, i know i'm a noob still using d3d, the menu is working on all the games that i've tested on them but the problem is i don't know how to attach my Hacks with it.
a part of the code:
C++:
void MenuManager::CreateItems()
{
	m_Items.emplace(HK_TESTE1, new MenuItem("Item 1", false));
	m_Items.emplace(HK_TESTE2, new MenuItem("Item 2", true));
	m_Items.emplace(HK_TESTE3, new MenuItem("Item 3", {"[str1]", "[str2]", "[str3]"}));
	
}

void MenuManager::HackActions()
{
	//I think its here where i need to add my hacks

	//ON/OFF
	if (GetActived(HK_TESTE1)) 
	{
		g_Draw->DrawTextA("Item 1 Activated", 500, 300, Verde, 2);
	}

	if (GetActived(HK_TESTE2))
	{
		g_Draw->DrawTextA("Item 2 Activated", 500, 320, Verde, 2);
	}

	//ARRAY VALUE - Examples
	{
		auto arrPos = GetArrayPos(HK_TESTE3);

		DWORD color;


		if (arrPos == 0)
			color = 0xFFFF0000;
		else if (arrPos == 1)
			color = 0xFF00FF00;
		else if (arrPos == 2)
			color = 0xFF0000FF;


		char buff[128];
		sprintf_s(buff, "ArrayPos Item 3: %d", arrPos);
		g_Draw->DrawTextA(buff, 500, 340, color, 2);
	}

}
I will appreciate any help is coming from you guys.
 

Teuvin

now I am become Death
Dank Tier VIP
Trump Tier Donator
Dec 8, 2016
403
12,828
65
You just need to have some control flow.
Like
C++:
bool hack1 = false;
if (GetActived(HK_TESTE1))
    {
        hack1 ^= 1; // "Inverts" the bool state
        g_Draw->DrawTextA("Item 1 Activated", 500, 300, Verde, 2);
    }
and then after the checks you do
C++:
if(hack1)
{
//Do What hack 1 is supposed to do
}
 

ELExTrO

Newbie
Full Member
Dec 4, 2012
26
444
0
maybe something like


C++:
void hacks()
{
if (m_Items.emplace.UNLAMMO)
{//your function }


}
and then simply create a thread for your hacks

C++:
CreateThread(NULL,NULL,(LPTHREAD_START_ROUTINE)hacks,NULL,NULL,NULL);
a bit unorganized way to code because you will need to draw everything after you have turned it on or off but really nice you are not like the other guys who say "my menu is the best" while they use a modified version of the old hans211 menu lol
 

ELExTrO

Newbie
Full Member
Dec 4, 2012
26
444
0
that bit doesnt make sense champ
just noticed ... i was about to post something regarding that you didnt knew struct based menu´s but i missunderstanded, that struct is to add an item to the menu not to call a function my bad but the point is the same he can create a thread for the hacks to make it more simple
 

Chikimaro

Newbie
May 21, 2016
4
304
0
You just need to have some control flow.
Like
C++:
bool hack1 = false;
if (GetActived(HK_TESTE1))
    {
        hack1 ^= 1; // "Inverts" the bool state
        g_Draw->DrawTextA("Item 1 Activated", 500, 300, Verde, 2);
    }
and then after the checks you do
C++:
if(hack1)
{
//Do What hack 1 is supposed to do
}
I see thank you,i tought i will never get an answer :D
maybe something like


C++:
void hacks()
{
if (m_Items.emplace.UNLAMMO)
{//your function }


}
and then simply create a thread for your hacks

C++:
CreateThread(NULL,NULL,(LPTHREAD_START_ROUTINE)hacks,NULL,NULL,NULL);
This could work too :unsure:, Thanks for your help.
 
  • Like
Reactions: ELExTrO

Similar threads

Community Mods