Draw text as engine
#define EngineText 0x4DF2E1 // Outdated
DWORD EngineTextDraw = EngineText;
void WriteAsEngine(char *text)
{
/*
___:004DAD51 push eax
___:004DAD52 push eax
___:004DAD53 push 32h
___:004DAD55 pop edi
___:004DAD56 push edi
___:004DAD57 push 0FFh
___:004DAD5C mov ecx, offset aYouCannotEnter ; "You cannot enter a vehicle in prone pos"...
___:004DAD61 call sub_4DF2E1
*/
__asm
{
// Draws yellow (changed the values, can be done custom)
push 0x1 // A
push 0x32 // R
push 0x32 // G
push 0xff // B
mov ecx, text
push ecx
call EngineTextDraw;
}
}
DWORD EngineTextDraw = EngineText;
void WriteAsEngine(char *text)
{
/*
___:004DAD51 push eax
___:004DAD52 push eax
___:004DAD53 push 32h
___:004DAD55 pop edi
___:004DAD56 push edi
___:004DAD57 push 0FFh
___:004DAD5C mov ecx, offset aYouCannotEnter ; "You cannot enter a vehicle in prone pos"...
___:004DAD61 call sub_4DF2E1
*/
__asm
{
// Draws yellow (changed the values, can be done custom)
push 0x1 // A
push 0x32 // R
push 0x32 // G
push 0xff // B
mov ecx, text
push ecx
call EngineTextDraw;
}
}
Credits :
Alex_Agnew
Enjoy !
Alex_Agnew
Enjoy !




