Solved Drawing Text using engine function

Hexui Undetected CSGO Cheats Sinkicheat PUBG Cheat

Praxeus

Jr.Coder
Full Member
Nobleman
Sep 12, 2012
48
408
1
C++:
#include <Windows.h>

#include <Windows.h>
#include <iostream>





class SSystemGlobalEnvironment // SYSTEMGLOBAL ADDRESS address 0x3B7ED1DC
{
public:
IRenderer *pRenderer; //this is inside the global and globals render function address is 0x370BA200

};



				
class IRenderer 
{
public:
    virtual void function0();
    virtual void function1();
    virtual void function2();
    virtual void function3();
    virtual void function4();
    virtual void function5();
    virtual void function6();
    virtual void function7();
    virtual void function8();
    virtual void function9();
    virtual void function10();
    virtual void function11();
    virtual void function12();
    virtual void function13();
    virtual void function14();
    virtual void function15();
    virtual void function16();
    virtual void function17();
    virtual void function18();
    virtual void function19();
    virtual void function20();
    virtual void function21();
    virtual void Draw2dLabel(float x, float y, float  FontScale, float *color, bool unknown, char* string); //Draw2dLabel Address 0x370BA200

};

DWORD __stdcall DllMain(LPVOID)
{
	SSystemGlobalEnvironment  *gEnv;
	gEnv= (SSystemGlobalEnvironment *)(*(DWORD*)(0x3B7ED1DC));


	gEnv->pRenderer->Draw2dLabel(20 , 20 , 2 ,0, 0 , "Testing 1 2 3 ...");
	//wana call it here to draw my own cutom text the draw2d label
	return 0;
}





int __stdcall DllMain(HMODULE hModule,DWORD dwReason,LPVOID lpvReserved)
{
	switch(dwReason)
	{
		case DLL_PROCESS_ATTACH:
			CreateThread(NULL,NULL,&DllMain,NULL,NULL,NULL);
		break;
	}
	return 1;
}
so basically i want to draw my own text using that function used in the game i found , anyway its rough but yeah thanks if you could help!!!the game is crysis 3
 
Last edited:

edgar

Newbie
Full Member
Dec 30, 2012
28
518
3
You most likely need to call that function inside the render loop. Calling it from some random thread won't work. Hook endscene and call the function from there.
 

c5

Kim Kong Trasher
Dank Tier VIP
Dank Tier Donator
Jul 19, 2012
1,187
12,638
76
In your thread..
C++:
SSystemGlobalEnvironment * globalenv;
globalenv= (SSystemGlobalEnvironment *)(*(DWORD*)(0x3B7ED1DC));
globalenv->pRenderer->Draw2dLabel(.....
Oughta work :)
 

Praxeus

Jr.Coder
Full Member
Nobleman
Sep 12, 2012
48
408
1
In your thread..
C++:
SSystemGlobalEnvironment * globalenv;
globalenv= (SSystemGlobalEnvironment *)(*(DWORD*)(0x3B7ED1DC));
globalenv->pRenderer->Draw2dLabel(.....
Oughta work :)
Nope :((( thanks for trying!
 

c5

Kim Kong Trasher
Dank Tier VIP
Dank Tier Donator
Jul 19, 2012
1,187
12,638
76
Your globalenvironment class probably lacks padding
 

Praxeus

Jr.Coder
Full Member
Nobleman
Sep 12, 2012
48
408
1
i fixed it by doing class IRenderer before global such a nooby mistake!and i chucked a while loop so it draws on every frame gonna test

so it keeps crashing my game
 
Last edited:

c5

Kim Kong Trasher
Dank Tier VIP
Dank Tier Donator
Jul 19, 2012
1,187
12,638
76
Do what edgar said and you should be alright :)
 
Last edited:
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