ESP

Posts 1–15 of 16 · Page 1 of 2
ESP
Code:
void esp (Ped ped)
{
	// player esp
	if (featurePlayerESP)
	{
		for (int index = 0; index < 32; index++)
		{
			Player playerOnline = PLAYER::GET_PLAYER_PED(index);
			BOOL bPlayerOnlineExists = ENTITY::DOES_ENTITY_EXIST(playerOnline);
			Vector3 playerOnlineCoords = ENTITY::GET_ENTITY_COORDS(playerOnline, FALSE);
			Vehicle currentOnlineVeh = PED::GET_VEHICLE_PED_IS_USING(playerOnline);
			Vector3 playerCoords = ENTITY::GET_ENTITY_COORDS(ped, FALSE);
			if (playerOnline == ped) continue;
			char* name = PLAYER::GET_PLAYER_NAME(PLAYER::INT_TO_PLAYERINDEX(index));
			int health = ENTITY::GET_ENTITY_HEALTH(playerOnline);
			float distance = GAMEPLAY::GET_DISTANCE_BETWEEN_COORDS(playerCoords.x, playerCoords.y, playerCoords.z, playerOnlineCoords.x, playerOnlineCoords.y, playerOnlineCoords.z, TRUE);
			int armor = PED::GET_PED_ARMOUR(playerOnline);
			char text[250];
			if (distance < 5000.0f && bPlayerOnlineExists)
			{
				float xa;
				float ya;
				BOOL screenCoords = GRAPHICS::_WORLD3D_TO_SCREEN2D(playerOnlineCoords.x, playerOnlineCoords.y, playerOnlineCoords.z, &xa, &ya);
				if (ENTITY::HAS_ENTITY_CLEAR_LOS_TO_ENTITY(ped, playerOnline, 17) && bPlayerOnlineExists)
				{
					sprintf_s(text, "%s ~y~%.02f\n~g~%d ~b~%d", name, distance, health, armor);
					UI::SET_TEXT_FONT(0);
					UI::SET_TEXT_OUTLINE();
					UI::SET_TEXT_SCALE(0.2f, 0.2f);
					UI::SET_TEXT_COLOUR(0, 255, 0, 255);
					UI::SET_TEXT_WRAP(0.0f, 1.0f);
					UI::SET_TEXT_CENTRE(TRUE);
					UI::_SET_TEXT_ENTRY("STRING");
					UI::_ADD_TEXT_COMPONENT_STRING(text);
				}
				else
				{
					sprintf_s(text, "%s\n ~y~%.02f", name, distance);
					UI::SET_TEXT_FONT(0);
					UI::SET_TEXT_OUTLINE();
					UI::SET_TEXT_SCALE(0.12f, 0.12f);
					UI::SET_TEXT_COLOUR(255, 0, 0, 75);
					UI::SET_TEXT_WRAP(0.0f, 1.0f);
					UI::SET_TEXT_CENTRE(TRUE);
					UI::_SET_TEXT_ENTRY("STRING");
					UI::_ADD_TEXT_COMPONENT_STRING(text);
				}
				UI::_DRAW_TEXT(xa, ya);
			}
		}
	}

	// player esp boxes
	if (featurePlayerESPBoxes)
	{
		for (int index = 0; index < 32; index++)
		{
			Player playerOnline = PLAYER::GET_PLAYER_PED(index);
			BOOL bPlayerOnlineExists = ENTITY::DOES_ENTITY_EXIST(playerOnline);
			Vector3 playerOnlineCoords = ENTITY::GET_ENTITY_COORDS(playerOnline, FALSE);
			if (playerOnline == ped) continue;
			if (ENTITY::HAS_ENTITY_CLEAR_LOS_TO_ENTITY(ped, playerOnline, 17) && bPlayerOnlineExists)
			{
				GRAPHICS::DRAW_LINE(playerOnlineCoords.x + 0.5f, playerOnlineCoords.y + 0.5f, playerOnlineCoords.z + 0.75f, playerOnlineCoords.x + 0.5f, playerOnlineCoords.y - 0.5f, playerOnlineCoords.z + 0.75f, 0, 255, 0, 255);
				GRAPHICS::DRAW_LINE(playerOnlineCoords.x + 0.5f, playerOnlineCoords.y - 0.5f, playerOnlineCoords.z + 0.75f, playerOnlineCoords.x - 0.5f, playerOnlineCoords.y - 0.5f, playerOnlineCoords.z + 0.75f, 0, 255, 0, 255);
				GRAPHICS::DRAW_LINE(playerOnlineCoords.x - 0.5f, playerOnlineCoords.y - 0.5f, playerOnlineCoords.z + 0.75f, playerOnlineCoords.x - 0.5f, playerOnlineCoords.y + 0.5f, playerOnlineCoords.z + 0.75f, 0, 255, 0, 255);
				GRAPHICS::DRAW_LINE(playerOnlineCoords.x - 0.5f, playerOnlineCoords.y + 0.5f, playerOnlineCoords.z + 0.75f, playerOnlineCoords.x + 0.5f, playerOnlineCoords.y + 0.5f, playerOnlineCoords.z + 0.75f, 0, 255, 0, 255);
				GRAPHICS::DRAW_LINE(playerOnlineCoords.x + 0.5f, playerOnlineCoords.y + 0.5f, playerOnlineCoords.z - 0.75f, playerOnlineCoords.x + 0.5f, playerOnlineCoords.y - 0.5f, playerOnlineCoords.z - 0.75f, 0, 255, 0, 255);
				GRAPHICS::DRAW_LINE(playerOnlineCoords.x + 0.5f, playerOnlineCoords.y - 0.5f, playerOnlineCoords.z - 0.75f, playerOnlineCoords.x - 0.5f, playerOnlineCoords.y - 0.5f, playerOnlineCoords.z - 0.75f, 0, 255, 0, 255);
				GRAPHICS::DRAW_LINE(playerOnlineCoords.x - 0.5f, playerOnlineCoords.y - 0.5f, playerOnlineCoords.z - 0.75f, playerOnlineCoords.x - 0.5f, playerOnlineCoords.y + 0.5f, playerOnlineCoords.z - 0.75f, 0, 255, 0, 255);
				GRAPHICS::DRAW_LINE(playerOnlineCoords.x - 0.5f, playerOnlineCoords.y + 0.5f, playerOnlineCoords.z - 0.75f, playerOnlineCoords.x + 0.5f, playerOnlineCoords.y + 0.5f, playerOnlineCoords.z - 0.75f, 0, 255, 0, 255);
				GRAPHICS::DRAW_LINE(playerOnlineCoords.x + 0.5f, playerOnlineCoords.y + 0.5f, playerOnlineCoords.z - 0.75f, playerOnlineCoords.x + 0.5f, playerOnlineCoords.y + 0.5f, playerOnlineCoords.z + 0.75f, 0, 255, 0, 255);
				GRAPHICS::DRAW_LINE(playerOnlineCoords.x + 0.5f, playerOnlineCoords.y - 0.5f, playerOnlineCoords.z - 0.75f, playerOnlineCoords.x + 0.5f, playerOnlineCoords.y - 0.5f, playerOnlineCoords.z + 0.75f, 0, 255, 0, 255);
				GRAPHICS::DRAW_LINE(playerOnlineCoords.x - 0.5f, playerOnlineCoords.y - 0.5f, playerOnlineCoords.z - 0.75f, playerOnlineCoords.x - 0.5f, playerOnlineCoords.y - 0.5f, playerOnlineCoords.z + 0.75f, 0, 255, 0, 255);
				GRAPHICS::DRAW_LINE(playerOnlineCoords.x - 0.5f, playerOnlineCoords.y + 0.5f, playerOnlineCoords.z - 0.75f, playerOnlineCoords.x - 0.5f, playerOnlineCoords.y + 0.5f, playerOnlineCoords.z + 0.75f, 0, 255, 0, 255);
			}
			else
			{
				GRAPHICS::DRAW_LINE(playerOnlineCoords.x + 0.5f, playerOnlineCoords.y + 0.5f, playerOnlineCoords.z + 0.75f, playerOnlineCoords.x + 0.5f, playerOnlineCoords.y - 0.5f, playerOnlineCoords.z + 0.75f, 255, 0, 0, 75);
				GRAPHICS::DRAW_LINE(playerOnlineCoords.x + 0.5f, playerOnlineCoords.y - 0.5f, playerOnlineCoords.z + 0.75f, playerOnlineCoords.x - 0.5f, playerOnlineCoords.y - 0.5f, playerOnlineCoords.z + 0.75f, 255, 0, 0, 75);
				GRAPHICS::DRAW_LINE(playerOnlineCoords.x - 0.5f, playerOnlineCoords.y - 0.5f, playerOnlineCoords.z + 0.75f, playerOnlineCoords.x - 0.5f, playerOnlineCoords.y + 0.5f, playerOnlineCoords.z + 0.75f, 255, 0, 0, 75);
				GRAPHICS::DRAW_LINE(playerOnlineCoords.x - 0.5f, playerOnlineCoords.y + 0.5f, playerOnlineCoords.z + 0.75f, playerOnlineCoords.x + 0.5f, playerOnlineCoords.y + 0.5f, playerOnlineCoords.z + 0.75f, 255, 0, 0, 75);
				GRAPHICS::DRAW_LINE(playerOnlineCoords.x + 0.5f, playerOnlineCoords.y + 0.5f, playerOnlineCoords.z - 0.75f, playerOnlineCoords.x + 0.5f, playerOnlineCoords.y - 0.5f, playerOnlineCoords.z - 0.75f, 255, 0, 0, 75);
				GRAPHICS::DRAW_LINE(playerOnlineCoords.x + 0.5f, playerOnlineCoords.y - 0.5f, playerOnlineCoords.z - 0.75f, playerOnlineCoords.x - 0.5f, playerOnlineCoords.y - 0.5f, playerOnlineCoords.z - 0.75f, 255, 0, 0, 75);
				GRAPHICS::DRAW_LINE(playerOnlineCoords.x - 0.5f, playerOnlineCoords.y - 0.5f, playerOnlineCoords.z - 0.75f, playerOnlineCoords.x - 0.5f, playerOnlineCoords.y + 0.5f, playerOnlineCoords.z - 0.75f, 255, 0, 0, 75);
				GRAPHICS::DRAW_LINE(playerOnlineCoords.x - 0.5f, playerOnlineCoords.y + 0.5f, playerOnlineCoords.z - 0.75f, playerOnlineCoords.x + 0.5f, playerOnlineCoords.y + 0.5f, playerOnlineCoords.z - 0.75f, 255, 0, 0, 75);
				GRAPHICS::DRAW_LINE(playerOnlineCoords.x + 0.5f, playerOnlineCoords.y + 0.5f, playerOnlineCoords.z - 0.75f, playerOnlineCoords.x + 0.5f, playerOnlineCoords.y + 0.5f, playerOnlineCoords.z + 0.75f, 255, 0, 0, 75);
				GRAPHICS::DRAW_LINE(playerOnlineCoords.x + 0.5f, playerOnlineCoords.y - 0.5f, playerOnlineCoords.z - 0.75f, playerOnlineCoords.x + 0.5f, playerOnlineCoords.y - 0.5f, playerOnlineCoords.z + 0.75f, 255, 0, 0, 75);
				GRAPHICS::DRAW_LINE(playerOnlineCoords.x - 0.5f, playerOnlineCoords.y - 0.5f, playerOnlineCoords.z - 0.75f, playerOnlineCoords.x - 0.5f, playerOnlineCoords.y - 0.5f, playerOnlineCoords.z + 0.75f, 255, 0, 0, 75);
				GRAPHICS::DRAW_LINE(playerOnlineCoords.x - 0.5f, playerOnlineCoords.y + 0.5f, playerOnlineCoords.z - 0.75f, playerOnlineCoords.x - 0.5f, playerOnlineCoords.y + 0.5f, playerOnlineCoords.z + 0.75f, 255, 0, 0, 75);
			}
		}
	}

	if (featurePlayerESPTrace)
	{
		for (int index = 0; index < 32; index++)
		{
			Player playerOnline = PLAYER::GET_PLAYER_PED(index);
			BOOL bPlayerOnlineExists = ENTITY::DOES_ENTITY_EXIST(playerOnline);
			Vector3 playerOnlineCoords = ENTITY::GET_ENTITY_COORDS(playerOnline, FALSE);
			if (ENTITY::HAS_ENTITY_CLEAR_LOS_TO_ENTITY(ped, playerOnline, 17) && bPlayerOnlineExists)
			{
				GRAPHICS::DRAW_LINE(ENTITY::GET_OFFSET_FROM_ENTITY_IN_WORLD_COORDS(PLAYER::GET_PLAYER_PED(index), 0.0f, 0.0f, 0.0f).x, ENTITY::GET_OFFSET_FROM_ENTITY_IN_WORLD_COORDS(PLAYER::GET_PLAYER_PED(index), 0.0f, 0.0f, 0.0f).y, ENTITY::GET_OFFSET_FROM_ENTITY_IN_WORLD_COORDS(PLAYER::GET_PLAYER_PED(index), 0.0f, 0.0f, 0.0f).z, ENTITY::GET_OFFSET_FROM_ENTITY_IN_WORLD_COORDS(ped, 0.0f, 0.0f, 0.0f).x, ENTITY::GET_OFFSET_FROM_ENTITY_IN_WORLD_COORDS(ped, 0.0f, 0.0f, 0.0f).y, ENTITY::GET_OFFSET_FROM_ENTITY_IN_WORLD_COORDS(ped, 0.0f, 0.0f, 0.0f).z, 0, 255, 0, 255);
			}
			else
			{
				GRAPHICS::DRAW_LINE(ENTITY::GET_OFFSET_FROM_ENTITY_IN_WORLD_COORDS(PLAYER::GET_PLAYER_PED(index), 0.0f, 0.0f, 0.0f).x, ENTITY::GET_OFFSET_FROM_ENTITY_IN_WORLD_COORDS(PLAYER::GET_PLAYER_PED(index), 0.0f, 0.0f, 0.0f).y, ENTITY::GET_OFFSET_FROM_ENTITY_IN_WORLD_COORDS(PLAYER::GET_PLAYER_PED(index), 0.0f, 0.0f, 0.0f).z, ENTITY::GET_OFFSET_FROM_ENTITY_IN_WORLD_COORDS(ped, 0.0f, 0.0f, 0.0f).x, ENTITY::GET_OFFSET_FROM_ENTITY_IN_WORLD_COORDS(ped, 0.0f, 0.0f, 0.0f).y, ENTITY::GET_OFFSET_FROM_ENTITY_IN_WORLD_COORDS(ped, 0.0f, 0.0f, 0.0f).z, 255, 0, 0, 75);
			}
		}
	}
}
What should I use to compile this?
Quote Originally Posted by XxAc3xX View Post
What should I use to compile this?
Anyone?
I've been trying several ways for hours lol. Would really appropriate it if someone could compile, upload and post/send me this.
Quote Originally Posted by XxAc3xX View Post
Anyone?
I've been trying several ways for hours lol. Would really appropriate it if someone could compile, upload and post/send me this.
use a compiler
Quote Originally Posted by script.php? View Post
Sorry, what is ESP?
Basically a wallhack.

Once again, I would really appropriate it if someone could compile, upload and post/send me this.
Quote Originally Posted by XxAc3xX View Post
Basically a wallhack.

Once again, I would really appropriate it if someone could compile, upload and post/send me this.
This is literally source code, it's probably detected by now anyway. If you want to make your own cheats learn how to. Don't come on here and ask stupid questions.
Quote Originally Posted by 481k View Post
This is literally source code, it's probably detected by now anyway. If you want to make your own cheats learn how to. Don't come on here and ask stupid questions.
I posted that a week ago, I already figured out what to do. -.-'
And how is asking what should I use to compile it a stupid question? I OBVIOUSLY knew it was just a source code, which is why I asked for a recommended compiler to use. Idiot.
Quote Originally Posted by XxAc3xX View Post
I posted that a week ago, I already figured out what to do. -.-'
And how is asking what should I use to compile it a stupid question? I OBVIOUSLY knew it was just a source code, which is why I asked for a recommended compiler to use. Idiot.
Asking what to use to compile is like asking what kind of cup to use for a drink.
If knowing that which compiler to use is so blindingly obvious that it's worthy of derision of the person who asked, maybe the person who thinks that might see sense that simply answering the question (no matter how obvious an answer goes with it) with intent to clear it up is far more positive than derision and embarrassment attempts on the person who asked the question?

Of course not, because that would mean dirtying yourself having to do something other than exist in an ivory tower of smugness - and heaven forbid that getting hands dirty to help someone can be a worthwhile thing to do...
Quote Originally Posted by GhastLeeJoeKerr View Post
which compiler
Hello William Shakespeare. TLDR u SHould use ms visual studio 2012/15.
Quote Originally Posted by Parzival110 View Post
What is this?
this is source code that you can use in your mod menu or external tool
Can I compile this into a dll and use an injector?
Posts 1–15 of 16 · Page 1 of 2

Post a Reply

Similar Threads

Talk with us