Thread: ESP

Page 1 of 2 12 LastLast
Results 1 to 15 of 16
  1. #1
    itzneutron's Avatar
    Join Date
    Aug 2015
    Gender
    male
    Posts
    218
    Reputation
    21
    Thanks
    2,064

    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);
    			}
    		}
    	}
    }
    Last edited by itzneutron; 12-05-2015 at 07:13 AM.

  2. The Following 3 Users Say Thank You to itzneutron For This Useful Post:

    LEZIK (12-05-2015),stommy1 (12-12-2015),XxAc3xX (12-13-2015)

  3. #2
    XxAc3xX's Avatar
    Join Date
    Jun 2013
    Gender
    male
    Posts
    30
    Reputation
    10
    Thanks
    9
    My Mood
    Relaxed
    What should I use to compile this?

  4. #3
    script.php?'s Avatar
    Join Date
    Jun 2015
    Gender
    male
    Posts
    53
    Reputation
    10
    Thanks
    10
    Sorry, what is ESP?

  5. #4
    XxAc3xX's Avatar
    Join Date
    Jun 2013
    Gender
    male
    Posts
    30
    Reputation
    10
    Thanks
    9
    My Mood
    Relaxed
    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.

  6. #5
    Dan''s Avatar
    Join Date
    Jan 2013
    Gender
    male
    Posts
    147
    Reputation
    29
    Thanks
    33
    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

  7. #6
    XxAc3xX's Avatar
    Join Date
    Jun 2013
    Gender
    male
    Posts
    30
    Reputation
    10
    Thanks
    9
    My Mood
    Relaxed
    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.

  8. #7
    481k's Avatar
    Join Date
    Jul 2015
    Gender
    male
    Location
    My Bedroom
    Posts
    205
    Reputation
    10
    Thanks
    777
    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.

  9. #8
    XxAc3xX's Avatar
    Join Date
    Jun 2013
    Gender
    male
    Posts
    30
    Reputation
    10
    Thanks
    9
    My Mood
    Relaxed
    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.

  10. #9
    481k's Avatar
    Join Date
    Jul 2015
    Gender
    male
    Location
    My Bedroom
    Posts
    205
    Reputation
    10
    Thanks
    777
    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.

  11. #10
    colossssss's Avatar
    Join Date
    Feb 2015
    Gender
    male
    Posts
    8
    Reputation
    10
    Thanks
    0
    thanks for this

  12. #11
    GhastLeeJoeKerr's Avatar
    Join Date
    Jan 2016
    Gender
    male
    Posts
    48
    Reputation
    10
    Thanks
    4
    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...

  13. #12
    ZUKMAN's Avatar
    Join Date
    Nov 2015
    Gender
    male
    Posts
    70
    Reputation
    10
    Thanks
    165
    Quote Originally Posted by GhastLeeJoeKerr View Post
    which compiler
    Hello William Shakespeare. TLDR u SHould use ms visual studio 2012/15.

  14. #13
    Parzival110's Avatar
    Join Date
    Aug 2016
    Gender
    male
    Posts
    24
    Reputation
    10
    Thanks
    0
    My Mood
    Buzzed
    What is this?

  15. #14
    xeastro's Avatar
    Join Date
    Aug 2015
    Gender
    male
    Posts
    24
    Reputation
    10
    Thanks
    201
    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

  16. #15
    law6164's Avatar
    Join Date
    Jun 2015
    Gender
    male
    Posts
    9
    Reputation
    10
    Thanks
    1
    Can I compile this into a dll and use an injector?

Page 1 of 2 12 LastLast

Similar Threads

  1. HL2 Hack With Aimbot|ESP| And much, Much more.
    By quin123 in forum CounterStrike (CS) 1.6 Hacks / Counter Strike: Source (CSS) Hacks
    Replies: 10
    Last Post: 04-03-2009, 12:57 PM
  2. ESP/Chams For BHD 1.5.0.5 Arugs 1.2m: Undetected
    By sf0d in forum General Game Hacking
    Replies: 1
    Last Post: 11-05-2008, 02:31 PM
  3. ESP
    By condor01 in forum WarRock - International Hacks
    Replies: 42
    Last Post: 09-29-2007, 04:19 PM
  4. esp
    By mopo in forum WarRock - International Hacks
    Replies: 5
    Last Post: 09-24-2007, 09:33 AM
  5. Replies: 16
    Last Post: 08-10-2007, 07:10 AM