ALERT!
Click here to register with a few steps and explore all our cool stuff we have to offer!
Home
Upgrade
Credits
Help
Search
Awards
Achievements
 3366

Ped ESP

by xMG - 07-31-2018 - 04:52 PM
#1
Got bored and this was created. Enjoy I guess  Nice

[Image: pedesp.png]
Code:
bool Features::PedESP = false;
void Features::ESPPed(bool toggle)
{
        const int numElements1 = 10;
        const int arrSize = numElements1 * 2 + 2;
        Ped ped[arrSize];
        ped[0] = numElements1;
        int count = PED::GET_PED_NEARBY_PEDS(PLAYER::PLAYER_PED_ID(), ped, 1);
        if (ped != NULL)
        {
            for (int i = 1; i <= count; i++)
            {
                int offsettedID = i;
                int Red = 34, Green = 193, Blue = 124, Opac = 255;

                Vector3 Pos = ENTITY::GET_ENTITY_COORDS(PLAYER::PLAYER_PED_ID(), true);
                Vector3 Pos2 = ENTITY::GET_ENTITY_COORDS(ped[offsettedID], true);
                Vector3 MyRegCoords = ENTITY::GET_ENTITY_COORDS(PLAYER::PLAYER_PED_ID(), false),
                    IDRegCoords = ENTITY::GET_ENTITY_COORDS(ped[offsettedID], true),
                    LineOneBegin = ENTITY::GET_OFFSET_FROM_ENTITY_IN_WORLD_COORDS(ped[offsettedID], -.3, -.3, -.9),
                    LineOneEnd = ENTITY::GET_OFFSET_FROM_ENTITY_IN_WORLD_COORDS(ped[offsettedID], +.3, -.3, -.9),
                    LineTwoBegin = ENTITY::GET_OFFSET_FROM_ENTITY_IN_WORLD_COORDS(ped[offsettedID], +.3, -.3, -.9),
                    LineTwoEnd = ENTITY::GET_OFFSET_FROM_ENTITY_IN_WORLD_COORDS(ped[offsettedID], +.3, +.3, -.9),
                    LineThreeBegin = ENTITY::GET_OFFSET_FROM_ENTITY_IN_WORLD_COORDS(ped[offsettedID], +.3, +.3, -.9),
                    LineThreeEnd = ENTITY::GET_OFFSET_FROM_ENTITY_IN_WORLD_COORDS(ped[offsettedID], -.3, +.3, -.9),
                    LineFourBegin = ENTITY::GET_OFFSET_FROM_ENTITY_IN_WORLD_COORDS(ped[offsettedID], -.3, -.3, -.9),

                    TLineOneBegin = ENTITY::GET_OFFSET_FROM_ENTITY_IN_WORLD_COORDS(ped[offsettedID], -.3, -.3, +.8),
                    TLineOneEnd = ENTITY::GET_OFFSET_FROM_ENTITY_IN_WORLD_COORDS(ped[offsettedID], +.3, -.3, +.8),
                    TLineTwoBegin = ENTITY::GET_OFFSET_FROM_ENTITY_IN_WORLD_COORDS(ped[offsettedID], +.3, -.3, +.8),
                    TLineTwoEnd = ENTITY::GET_OFFSET_FROM_ENTITY_IN_WORLD_COORDS(ped[offsettedID], +.3, +.3, +.8),
                    TLineThreeBegin = ENTITY::GET_OFFSET_FROM_ENTITY_IN_WORLD_COORDS(ped[offsettedID], +.3, +.3, +.8),
                    TLineThreeEnd = ENTITY::GET_OFFSET_FROM_ENTITY_IN_WORLD_COORDS(ped[offsettedID], -.3, +.3, +.8),
                    TLineFourBegin = ENTITY::GET_OFFSET_FROM_ENTITY_IN_WORLD_COORDS(ped[offsettedID], -.3, -.3, +.8),

                    ConnectorOneBegin = ENTITY::GET_OFFSET_FROM_ENTITY_IN_WORLD_COORDS(ped[offsettedID], -.3, +.3, +.8),
                    ConnectorOneEnd = ENTITY::GET_OFFSET_FROM_ENTITY_IN_WORLD_COORDS(ped[offsettedID], -.3, +.3, -.9),
                    ConnectorTwoBegin = ENTITY::GET_OFFSET_FROM_ENTITY_IN_WORLD_COORDS(ped[offsettedID], +.3, +.3, +.8),
                    ConnectorTwoEnd = ENTITY::GET_OFFSET_FROM_ENTITY_IN_WORLD_COORDS(ped[offsettedID], +.3, +.3, -.9),
                    ConnectorThreeBegin = ENTITY::GET_OFFSET_FROM_ENTITY_IN_WORLD_COORDS(ped[offsettedID], -.3, -.3, +.8),
                    ConnectorThreeEnd = ENTITY::GET_OFFSET_FROM_ENTITY_IN_WORLD_COORDS(ped[offsettedID], -.3, -.3, -.9),
                    ConnectorFourBegin = ENTITY::GET_OFFSET_FROM_ENTITY_IN_WORLD_COORDS(ped[offsettedID], +.3, -.3, +.8),
                    ConnectorFourEnd = ENTITY::GET_OFFSET_FROM_ENTITY_IN_WORLD_COORDS(ped[offsettedID], +.3, -.3, -.9);

                GRAPHICS::DRAW_LINE(LineOneBegin.x, LineOneBegin.y, LineOneBegin.z, LineOneEnd.x, LineOneEnd.y, LineOneEnd.z, Red, Green, Blue, Opac);
                GRAPHICS::DRAW_LINE(LineTwoBegin.x, LineTwoBegin.y, LineTwoBegin.z, LineTwoEnd.x, LineTwoEnd.y, LineTwoEnd.z, Red, Green, Blue, Opac);
                GRAPHICS::DRAW_LINE(LineThreeBegin.x, LineThreeBegin.y, LineThreeBegin.z, LineThreeEnd.x, LineThreeEnd.y, LineThreeEnd.z, Red, Green, Blue, Opac);
                GRAPHICS::DRAW_LINE(LineThreeEnd.x, LineThreeEnd.y, LineThreeEnd.z, LineFourBegin.x, LineFourBegin.y, LineFourBegin.z, Red, Green, Blue, Opac);
                GRAPHICS::DRAW_LINE(TLineOneBegin.x, TLineOneBegin.y, TLineOneBegin.z, TLineOneEnd.x, TLineOneEnd.y, TLineOneEnd.z, Red, Green, Blue, Opac);
                GRAPHICS::DRAW_LINE(TLineTwoBegin.x, TLineTwoBegin.y, TLineTwoBegin.z, TLineTwoEnd.x, TLineTwoEnd.y, TLineTwoEnd.z, Red, Green, Blue, Opac);
                GRAPHICS::DRAW_LINE(TLineThreeBegin.x, TLineThreeBegin.y, TLineThreeBegin.z, TLineThreeEnd.x, TLineThreeEnd.y, TLineThreeEnd.z, Red, Green, Blue, Opac);
                GRAPHICS::DRAW_LINE(TLineThreeEnd.x, TLineThreeEnd.y, TLineThreeEnd.z, TLineFourBegin.x, TLineFourBegin.y, TLineFourBegin.z, Red, Green, Blue, Opac);
                GRAPHICS::DRAW_LINE(ConnectorOneBegin.x, ConnectorOneBegin.y, ConnectorOneBegin.z, ConnectorOneEnd.x, ConnectorOneEnd.y, ConnectorOneEnd.z, Red, Green, Blue, Opac);
                GRAPHICS::DRAW_LINE(ConnectorTwoBegin.x, ConnectorTwoBegin.y, ConnectorTwoBegin.z, ConnectorTwoEnd.x, ConnectorTwoEnd.y, ConnectorTwoEnd.z, Red, Green, Blue, Opac);
                GRAPHICS::DRAW_LINE(ConnectorThreeBegin.x, ConnectorThreeBegin.y, ConnectorThreeBegin.z, ConnectorThreeEnd.x, ConnectorThreeEnd.y, ConnectorThreeEnd.z, Red, Green, Blue, Opac);
                GRAPHICS::DRAW_LINE(ConnectorFourBegin.x, ConnectorFourBegin.y, ConnectorFourBegin.z, ConnectorFourEnd.x, ConnectorFourEnd.y, ConnectorFourEnd.z, Red, Green, Blue, Opac);
                GRAPHICS::DRAW_LINE(Pos.x, Pos.y, Pos.z, Pos2.x, Pos2.y, Pos2.z, 34, 193, 124, 255);
            }
        }
}
Reply
#2
lol thats very easy to do
Reply
#3
(07-31-2018 - 04:57 PM)BModzMasterTM Wrote: lol thats very easy to do

lol most people are retarded.
Reply
#4
Wats the texture name off baner
Papa A1 Original
Reply
#5
(07-31-2018 - 06:23 PM)Bosix123 Wrote: Wats the texture name off baner

"shopui_title_gr_gunmod", "shopui_title_gr_gunmod"
Reply
#6
[Image: 89_rlLJiGBk.jpg]
Reply
#7
nice, but very easy stuff to do
2021 Best Be Better Then 2020
Reply
#8
Pretty easy but thank you for putting it out there.
Reply
#9
i made one for online player , i looped that , but not working
Reply
#10
nice, but very easy stuff to do
This account is currently banned
Ban reason: Leeching and Spamming
Reply

Users browsing: 6 Guest(s)