Got bored and this was created. Enjoy I guess
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);
}
}
}