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
 2814

Object ESP

by tanakatarou - 12-03-2018 - 01:42 PM
#1
void ObjectESP(int GetEntity)
{
RequestNetworkControl(GetEntity);
float Min[3];
float Max[3];
GET_MODEL_DIMENSIONS(ENTITY::GET_ENTITY_MODEL(GetEntity), Min, Max);
float height = Max[2] * 2;
Vector3 Loc = ENTITY::GET_OFFSET_FROM_ENTITY_IN_WORLD_COORDS(GetEntity, 0.0, 0.0, height);
GRAPHICS::DRAW_MARKER(0, Loc.x, Loc.y, Loc.z + 1.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 2.5, 2.5, 2.5, 0, 255, 0, 50, 1, 1, 2, 1, 0, 0, 0);
//INFO BOX
GRAPHICS::DRAW_RECT(0.107f, 0.425f, 0.145f, 0.565f, 0, 0, 0, 255);
GRAPHICS::DRAW_RECT(0.875f, 0.170f, 0.150f, 0.235f, 0, 0, 0, 255);
GRAPHICS::DRAW_RECT(0.160f, 0.080f, 0.250f, 0.100f, 0, 0, 0, 255);
Vector3 Pos = ENTITY::GET_ENTITY_COORDS(GetEntity, 1);
float Pitch = ENTITY::GET_ENTITY_PITCH(GetEntity);
float Roll = ENTITY::GET_ENTITY_ROLL(GetEntity);
float Yaw = ENTITY::GET_ENTITY_HEADING(GetEntity);
int hash = ENTITY::GET_ENTITY_MODEL(GetEntity);
Vector3 Rot = ENTITY::GET_ENTITY_ROTATION(GetEntity, 0);
float QUARTX;
float QUARTY;
float QUARTZ;
float QUARTW;
Vector3 Quaternion = ENTITY::GET_ENTITY_QUATERNION(GetEntity, &QUARTX, &QUARTY, &QUARTZ, &QUARTW);
if (ENTITY::DOES_ENTITY_EXIST(GetEntity))
{
char buf[100];
RequestNetworkControl(GetEntity);

drawText("~y~Model Dimensions", 0, ObjectBoxXCoord2, ObjectBoxYCoord2 + ObjectBoxYCoordS2 * 0, HeightText2, HeightText2, 255, 255, 255, 255, false);

snprintf(buf, sizeof(buf), "~y~Min X:~s~ %s", FtoS(Min[0]));
drawText(buf, 0, ObjectBoxXCoord2, ObjectBoxYCoord2 + ObjectBoxYCoordS2 * 1, HeightText2, HeightText2, 255, 255, 255, 255, false);

snprintf(buf, sizeof(buf), "~y~Max X:~s~ %s", FtoS(Max[0]));
drawText(buf, 0, ObjectBoxXCoord2, ObjectBoxYCoord2 + ObjectBoxYCoordS2 * 2, HeightText2, HeightText2, 255, 255, 255, 255, false);

snprintf(buf, sizeof(buf), "~y~Min Y:~s~ %s", FtoS(Min[1]));
drawText(buf, 0, ObjectBoxXCoord2, ObjectBoxYCoord2 + ObjectBoxYCoordS2 * 3, HeightText2, HeightText2, 255, 255, 255, 255, false);

snprintf(buf, sizeof(buf), "~y~Max Y:~s~ %s", FtoS(Max[1]));
drawText(buf, 0, ObjectBoxXCoord2, ObjectBoxYCoord2 + ObjectBoxYCoordS2 * 4, HeightText2, HeightText2, 255, 255, 255, 255, false);

snprintf(buf, sizeof(buf), "~y~Min Z:~s~ %s", FtoS(Min[2]));
drawText(buf, 0, ObjectBoxXCoord2, ObjectBoxYCoord2 + ObjectBoxYCoordS2 * 5, HeightText2, HeightText2, 255, 255, 255, 255, false);

snprintf(buf, sizeof(buf), "~y~Max Z:~s~ %s", FtoS(Max[2]));
drawText(buf, 0, ObjectBoxXCoord2, ObjectBoxYCoord2 + ObjectBoxYCoordS2 * 6, HeightText2, HeightText2, 255, 255, 255, 255, false);

drawText("~y~Model Hash", 0, ObjectBoxXCoord, ObjectBoxYCoord + ObjectBoxYCoordS * 0, HeightText, HeightText, 255, 255, 255, 255, false);

if (!GAMEPLAY::ARE_STRINGS_EQUAL(IntToHexString(GET_ENTITY_ADDRESS(GetEntity)), "0x00000000"))
{
snprintf(buf, sizeof(buf), "~y~Hex:~s~ %s", IntToHexString(GET_ENTITY_ADDRESS(GetEntity)));
drawText(buf, 0, ObjectBoxXCoord, ObjectBoxYCoord + ObjectBoxYCoordS * 1, HeightText, HeightText, 255, 255, 255, 255, false);
}

snprintf(buf, sizeof(buf), "~y~Hash:~s~ %i", hash);
drawText(buf, 0, ObjectBoxXCoord, ObjectBoxYCoord + ObjectBoxYCoordS * 2, HeightText, HeightText, 255, 255, 255, 255, false);

if (ENTITY::IS_ENTITY_AN_OBJECT(GetEntity))
{
char buf[100];
snprintf(buf, sizeof(buf), "~y~Object Hash: ~s~%i", hash);
drawText(buf, 0, ObjectBoxXCoord, 0.033f + ObjectBoxYCoordS * 0, HeightText, HeightText, 255, 255, 255, 255, false);

snprintf(buf, sizeof(buf), "~y~Entitys Spawneds: ~s~%i", SpawnedObjects);
drawText(buf, 0, ObjectBoxXCoord, 0.033f + ObjectBoxYCoordS * 1, HeightText, HeightText, 255, 255, 255, 255, false);

drawText("~y~Type: Object", 0, ObjectBoxXCoord, 0.033f + ObjectBoxYCoordS * 2, HeightText, HeightText, 255, 255, 255, 255, false);

drawText("~y~Object Offsets", 0, ObjectBoxXCoord, ObjectBoxYCoord + ObjectBoxYCoordS * 3, HeightText, HeightText, 255, 255, 255, 255, false);
}
else if (ENTITY::IS_ENTITY_A_VEHICLE(GetEntity))
{
char buf[100];
snprintf(buf, sizeof(buf), "~y~Vehicle Name: ~s~%s ", UI::_0x95C4B5AD(VEHICLE::GET_DISPLAY_NAME_FROM_VEHICLE_MODEL(ENTITY::GET_ENTITY_MODEL(GetEntity))));
drawText(buf, 0, ObjectBoxXCoord, 0.033f + ObjectBoxYCoordS * 0, HeightText, HeightText, 255, 255, 255, 255, false);

snprintf(buf, sizeof(buf), "~y~Entitys Spawneds: ~s~%i", SpawnedObjects);
drawText(buf, 0, ObjectBoxXCoord, 0.033f + ObjectBoxYCoordS * 1, HeightText, HeightText, 255, 255, 255, 255, false);

drawText("~y~Type: Vehicle", 0, ObjectBoxXCoord, 0.033f + ObjectBoxYCoordS * 2, HeightText, HeightText, 255, 255, 255, 255, false);

drawText("~y~Vehicle Offsets", 0, ObjectBoxXCoord, ObjectBoxYCoord + ObjectBoxYCoordS * 3, HeightText, HeightText, 255, 255, 255, 255, false);
}
else if (ENTITY::IS_ENTITY_A_PED(GetEntity))
{
char buf[100];
snprintf(buf, sizeof(buf), "~y~Ped Hash: ~s~%i ", hash);
drawText(buf, 0, ObjectBoxXCoord, 0.033f + ObjectBoxYCoordS * 0, HeightText, HeightText, 255, 255, 255, 255, false);

snprintf(buf, sizeof(buf), "~y~Entitys Spawneds: ~s~%i", SpawnedObjects);
drawText(buf, 0, ObjectBoxXCoord, 0.033f + ObjectBoxYCoordS * 1, HeightText, HeightText, 255, 255, 255, 255, false);

drawText("~y~Type: Ped", 0, ObjectBoxXCoord, 0.033f + ObjectBoxYCoordS * 2, HeightText, HeightText, 255, 255, 255, 255, false);

drawText("~y~Ped Offsets", 0, ObjectBoxXCoord, ObjectBoxYCoord + ObjectBoxYCoordS * 3, HeightText, HeightText, 255, 255, 255, 255, false);
}

snprintf(buf, sizeof(buf), "~y~X:~s~ %s", FtoS(Pos.x));
drawText(buf, 0, ObjectBoxXCoord, ObjectBoxYCoord + ObjectBoxYCoordS * 4, HeightText, HeightText, 255, 255, 255, 255, false);

snprintf(buf, sizeof(buf), "~y~Y:~s~ %s", FtoS(Pos.y));
drawText(buf, 0, ObjectBoxXCoord, ObjectBoxYCoord + ObjectBoxYCoordS * 5, HeightText, HeightText, 255, 255, 255, 255, false);

snprintf(buf, sizeof(buf), "~y~Z:~s~ %s", FtoS(Pos.z));
drawText(buf, 0, ObjectBoxXCoord, ObjectBoxYCoord + ObjectBoxYCoordS * 6, HeightText, HeightText, 255, 255, 255, 255, false);

drawText("~y~Rotation", 0, ObjectBoxXCoord, ObjectBoxYCoord + ObjectBoxYCoordS * 7, HeightText, HeightText, 255, 255, 255, 255, false);

snprintf(buf, sizeof(buf), "~y~RX:~s~ %s", FtoS(Rot.x));
drawText(buf, 0, ObjectBoxXCoord, ObjectBoxYCoord + ObjectBoxYCoordS * 8, HeightText, HeightText, 255, 255, 255, 255, false);

snprintf(buf, sizeof(buf), "~y~RY:~s~ %s", FtoS(Rot.y));
drawText(buf, 0, ObjectBoxXCoord, ObjectBoxYCoord + ObjectBoxYCoordS * 9, HeightText, HeightText, 255, 255, 255, 255, false);

snprintf(buf, sizeof(buf), "~y~RZ:~s~ %s", FtoS(Rot.z));
drawText(buf, 0, ObjectBoxXCoord, ObjectBoxYCoord + ObjectBoxYCoordS * 10, HeightText, HeightText, 255, 255, 255, 255, false);

drawText("~y~Heading", 0, ObjectBoxXCoord, ObjectBoxYCoord + ObjectBoxYCoordS * 11, HeightText, HeightText, 255, 255, 255, 255, false);

snprintf(buf, sizeof(buf), "~y~H:~s~ %s", ItoS(Yaw));
drawText(buf, 0, ObjectBoxXCoord, ObjectBoxYCoord + ObjectBoxYCoordS * 12, HeightText, HeightText, 255, 255, 255, 255, false);

drawText("~y~Roots", 0, ObjectBoxXCoord, ObjectBoxYCoord + ObjectBoxYCoordS * 13, HeightText, HeightText, 255, 255, 255, 255, false);

snprintf(buf, sizeof(buf), "~y~Pitch:~s~ %s", FtoS(QUARTX));
drawText(buf, 0, ObjectBoxXCoord, ObjectBoxYCoord + ObjectBoxYCoordS * 14, HeightText, HeightText, 255, 255, 255, 255, false);

snprintf(buf, sizeof(buf), "~y~Roll:~s~ %s", FtoS(Roll));
drawText(buf, 0, ObjectBoxXCoord, ObjectBoxYCoord + ObjectBoxYCoordS * 15, HeightText, HeightText, 255, 255, 255, 255, false);

drawText("~y~Quaternion", 0, ObjectBoxXCoord, ObjectBoxYCoord + ObjectBoxYCoordS * 16, HeightText, HeightText, 255, 255, 255, 255, false);

snprintf(buf, sizeof(buf), "~y~QX:~s~ %s", FtoS(QUARTX));
drawText(buf, 0, ObjectBoxXCoord, ObjectBoxYCoord + ObjectBoxYCoordS * 17, HeightText, HeightText, 255, 255, 255, 255, false);

snprintf(buf, sizeof(buf), "~y~QY:~s~ %s", FtoS(QUARTY));
drawText(buf, 0, ObjectBoxXCoord, ObjectBoxYCoord + ObjectBoxYCoordS * 18, HeightText, HeightText, 255, 255, 255, 255, false);

snprintf(buf, sizeof(buf), "~y~QZ:~s~ %s", FtoS(QUARTZ));
drawText(buf, 0, ObjectBoxXCoord, ObjectBoxYCoord + ObjectBoxYCoordS * 19, HeightText, HeightText, 255, 255, 255, 255, false);

snprintf(buf, sizeof(buf), "~y~QW:~s~ %s", FtoS(QUARTW));
drawText(buf, 0, ObjectBoxXCoord, ObjectBoxYCoord + ObjectBoxYCoordS * 20, HeightText, HeightText, 255, 255, 255, 255, false);
}
}
snprintf(buf, sizeof(buf), "~y~Max X:~s~ %s", FtoS(Max[0]));
drawText(buf, 0, ObjectBoxXCoord2, ObjectBoxYCoord2 + ObjectBoxYCoordS2 * 2, HeightText2, HeightText2, 255, 255, 255, 255, false);

snprintf(buf, sizeof(buf), "~y~Min Y:~s~ %s", FtoS(Min[1]));
drawText(buf, 0, ObjectBoxXCoord2, ObjectBoxYCoord2 + ObjectBoxYCoordS2 * 3, HeightText2, HeightText2, 255, 255, 255, 255, false);

snprintf(buf, sizeof(buf), "~y~Max Y:~s~ %s", FtoS(Max[1]));
drawText(buf, 0, ObjectBoxXCoord2, ObjectBoxYCoord2 + ObjectBoxYCoordS2 * 4, HeightText2, HeightText2, 255, 255, 255, 255, false);

snprintf(buf, sizeof(buf), "~y~Min Z:~s~ %s", FtoS(Min[2]));
drawText(buf, 0, ObjectBoxXCoord2, ObjectBoxYCoord2 + ObjectBoxYCoordS2 * 5, HeightText2, HeightText2, 255, 255, 255, 255, false);

snprintf(buf, sizeof(buf), "~y~Max Z:~s~ %s", FtoS(Max[2]));
drawText(buf, 0, ObjectBoxXCoord2, ObjectBoxYCoord2 + ObjectBoxYCoordS2 * 6, HeightText2, HeightText2, 255, 255, 255, 255, false);

drawText("~y~Model Hash", 0, ObjectBoxXCoord, ObjectBoxYCoord + ObjectBoxYCoordS * 0, HeightText, HeightText, 255, 255, 255, 255, false);

if (!GAMEPLAY::ARE_STRINGS_EQUAL(IntToHexString(GET_ENTITY_ADDRESS(GetEntity)), "0x00000000"))
{
snprintf(buf, sizeof(buf), "~y~Hex:~s~ %s", IntToHexString(GET_ENTITY_ADDRESS(GetEntity)));
drawText(buf, 0, ObjectBoxXCoord, ObjectBoxYCoord + ObjectBoxYCoordS * 1, HeightText, HeightText, 255, 255, 255, 255, false);
}

snprintf(buf, sizeof(buf), "~y~Hash:~s~ %i", hash);
drawText(buf, 0, ObjectBoxXCoord, ObjectBoxYCoord + ObjectBoxYCoordS * 2, HeightText, HeightText, 255, 255, 255, 255, false);

if (ENTITY::IS_ENTITY_AN_OBJECT(GetEntity))
{
char buf[100];
snprintf(buf, sizeof(buf), "~y~Object Hash: ~s~%i", hash);
drawText(buf, 0, ObjectBoxXCoord, 0.033f + ObjectBoxYCoordS * 0, HeightText, HeightText, 255, 255, 255, 255, false);

snprintf(buf, sizeof(buf), "~y~Entitys Spawneds: ~s~%i", SpawnedObjects);
drawText(buf, 0, ObjectBoxXCoord, 0.033f + ObjectBoxYCoordS * 1, HeightText, HeightText, 255, 255, 255, 255, false);

drawText("~y~Type: Object", 0, ObjectBoxXCoord, 0.033f + ObjectBoxYCoordS * 2, HeightText, HeightText, 255, 255, 255, 255, false);

drawText("~y~Object Offsets", 0, ObjectBoxXCoord, ObjectBoxYCoord + ObjectBoxYCoordS * 3, HeightText, HeightText, 255, 255, 255, 255, false);
}
else if (ENTITY::IS_ENTITY_A_VEHICLE(GetEntity))
{
char buf[100];
snprintf(buf, sizeof(buf), "~y~Vehicle Name: ~s~%s ", UI::_0x95C4B5AD(VEHICLE::GET_DISPLAY_NAME_FROM_VEHICLE_MODEL(ENTITY::GET_ENTITY_MODEL(GetEntity))));
drawText(buf, 0, ObjectBoxXCoord, 0.033f + ObjectBoxYCoordS * 0, HeightText, HeightText, 255, 255, 255, 255, false);

snprintf(buf, sizeof(buf), "~y~Entitys Spawneds: ~s~%i", SpawnedObjects);
drawText(buf, 0, ObjectBoxXCoord, 0.033f + ObjectBoxYCoordS * 1, HeightText, HeightText, 255, 255, 255, 255, false);

drawText("~y~Type: Vehicle", 0, ObjectBoxXCoord, 0.033f + ObjectBoxYCoordS * 2, HeightText, HeightText, 255, 255, 255, 255, false);

drawText("~y~Vehicle Offsets", 0, ObjectBoxXCoord, ObjectBoxYCoord + ObjectBoxYCoordS * 3, HeightText, HeightText, 255, 255, 255, 255, false);
}
else if (ENTITY::IS_ENTITY_A_PED(GetEntity))
{
char buf[100];
snprintf(buf, sizeof(buf), "~y~Ped Hash: ~s~%i ", hash);
drawText(buf, 0, ObjectBoxXCoord, 0.033f + ObjectBoxYCoordS * 0, HeightText, HeightText, 255, 255, 255, 255, false);

snprintf(buf, sizeof(buf), "~y~Entitys Spawneds: ~s~%i", SpawnedObjects);
drawText(buf, 0, ObjectBoxXCoord, 0.033f + ObjectBoxYCoordS * 1, HeightText, HeightText, 255, 255, 255, 255, false);

drawText("~y~Type: Ped", 0, ObjectBoxXCoord, 0.033f + ObjectBoxYCoordS * 2, HeightText, HeightText, 255, 255, 255, 255, false);

drawText("~y~Ped Offsets", 0, ObjectBoxXCoord, ObjectBoxYCoord + ObjectBoxYCoordS * 3, HeightText, HeightText, 255, 255, 255, 255, false);
}

snprintf(buf, sizeof(buf), "~y~X:~s~ %s", FtoS(Pos.x));
drawText(buf, 0, ObjectBoxXCoord, ObjectBoxYCoord + ObjectBoxYCoordS * 4, HeightText, HeightText, 255, 255, 255, 255, false);

snprintf(buf, sizeof(buf), "~y~Y:~s~ %s", FtoS(Pos.y));
drawText(buf, 0, ObjectBoxXCoord, ObjectBoxYCoord + ObjectBoxYCoordS * 5, HeightText, HeightText, 255, 255, 255, 255, false);

snprintf(buf, sizeof(buf), "~y~Z:~s~ %s", FtoS(Pos.z));
drawText(buf, 0, ObjectBoxXCoord, ObjectBoxYCoord + ObjectBoxYCoordS * 6, HeightText, HeightText, 255, 255, 255, 255, false);

drawText("~y~Rotation", 0, ObjectBoxXCoord, ObjectBoxYCoord + ObjectBoxYCoordS * 7, HeightText, HeightText, 255, 255, 255, 255, false);

snprintf(buf, sizeof(buf), "~y~RX:~s~ %s", FtoS(Rot.x));
drawText(buf, 0, ObjectBoxXCoord, ObjectBoxYCoord + ObjectBoxYCoordS * 8, HeightText, HeightText, 255, 255, 255, 255, false);

snprintf(buf, sizeof(buf), "~y~RY:~s~ %s", FtoS(Rot.y));
drawText(buf, 0, ObjectBoxXCoord, ObjectBoxYCoord + ObjectBoxYCoordS * 9, HeightText, HeightText, 255, 255, 255, 255, false);

snprintf(buf, sizeof(buf), "~y~RZ:~s~ %s", FtoS(Rot.z));
drawText(buf, 0, ObjectBoxXCoord, ObjectBoxYCoord + ObjectBoxYCoordS * 10, HeightText, HeightText, 255, 255, 255, 255, false);

drawText("~y~Heading", 0, ObjectBoxXCoord, ObjectBoxYCoord + ObjectBoxYCoordS * 11, HeightText, HeightText, 255, 255, 255, 255, false);

snprintf(buf, sizeof(buf), "~y~H:~s~ %s", ItoS(Yaw));
drawText(buf, 0, ObjectBoxXCoord, ObjectBoxYCoord + ObjectBoxYCoordS * 12, HeightText, HeightText, 255, 255, 255, 255, false);

drawText("~y~Roots", 0, ObjectBoxXCoord, ObjectBoxYCoord + ObjectBoxYCoordS * 13, HeightText, HeightText, 255, 255, 255, 255, false);

snprintf(buf, sizeof(buf), "~y~Pitch:~s~ %s", FtoS(QUARTX));
drawText(buf, 0, ObjectBoxXCoord, ObjectBoxYCoord + ObjectBoxYCoordS * 14, HeightText, HeightText, 255, 255, 255, 255, false);

snprintf(buf, sizeof(buf), "~y~Roll:~s~ %s", FtoS(Roll));
drawText(buf, 0, ObjectBoxXCoord, ObjectBoxYCoord + ObjectBoxYCoordS * 15, HeightText, HeightText, 255, 255, 255, 255, false);

drawText("~y~Quaternion", 0, ObjectBoxXCoord, ObjectBoxYCoord + ObjectBoxYCoordS * 16, HeightText, HeightText, 255, 255, 255, 255, false);

snprintf(buf, sizeof(buf), "~y~QX:~s~ %s", FtoS(QUARTX));
drawText(buf, 0, ObjectBoxXCoord, ObjectBoxYCoord + ObjectBoxYCoordS * 17, HeightText, HeightText, 255, 255, 255, 255, false);

snprintf(buf, sizeof(buf), "~y~QY:~s~ %s", FtoS(QUARTY));
drawText(buf, 0, ObjectBoxXCoord, ObjectBoxYCoord + ObjectBoxYCoordS * 18, HeightText, HeightText, 255, 255, 255, 255, false);

snprintf(buf, sizeof(buf), "~y~QZ:~s~ %s", FtoS(QUARTZ));
drawText(buf, 0, ObjectBoxXCoord, ObjectBoxYCoord + ObjectBoxYCoordS * 19, HeightText, HeightText, 255, 255, 255, 255, false);

snprintf(buf、sizeof(buf)、 "〜y〜QW:〜s〜%s"、FtoS(QUARTW));
drawText(buf、0、ObjectBoxXCoord、ObjectBoxYCoord + ObjectBoxYCoordS * 20、HeightText、HeightText、255,255,255,255、false);
}
}
Reply
#2
so crazy, but i like it

so crazy, but i like it
Reply
#3
esse ai é para protection ?
Reply
#4
(05-26-2019 - 04:01 PM)hackkink Wrote: esse ai é para protection ?

no

it's unless "RequestNetworkControl" for get rotation etc...
This account is currently banned
Ban reason: Leeching and Spamming is not allowed, please read the forum Rules upon your return.
Reply
#5
(05-26-2019 - 04:53 PM)NoNameV2345 Wrote:
(05-26-2019 - 04:01 PM)hackkink Wrote: esse ai é para proteção?

não

é a menos que "RequestNetworkControl" para obter rotação, etc ...

a sim obrigado
Reply
#6
(05-27-2019 - 10:36 PM)hackkink Wrote:
(05-26-2019 - 04:53 PM)NoNameV2345 Wrote:
(05-26-2019 - 04:01 PM)hackkink Wrote: esse ai é para proteção?

não

é a menos que "RequestNetworkControl" para obter rotação, etc ...

a sim obrigado
np Smile
This account is currently banned
Ban reason: Leeching and Spamming is not allowed, please read the forum Rules upon your return.
Reply
#7
nice thread i guess
This account is currently banned
Ban reason: Multi
Reply
#8
(12-03-2018 - 01:42 PM)tanakatarou Wrote: void ObjectESP(int GetEntity)
{
RequestNetworkControl(GetEntity);
float Min[3];
float Max[3];
GET_MODEL_DIMENSIONS(ENTITY::GET_ENTITY_MODEL(GetEntity), Min, Max);
float height = Max[2] * 2;
Vector3 Loc = ENTITY::GET_OFFSET_FROM_ENTITY_IN_WORLD_COORDS(GetEntity, 0.0, 0.0, height);
GRAPHICS::DRAW_MARKER(0, Loc.x, Loc.y, Loc.z + 1.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 2.5, 2.5, 2.5, 0, 255, 0, 50, 1, 1, 2, 1, 0, 0, 0);
//INFO BOX
GRAPHICS::DRAW_RECT(0.107f, 0.425f, 0.145f, 0.565f, 0, 0, 0, 255);
GRAPHICS::DRAW_RECT(0.875f, 0.170f, 0.150f, 0.235f, 0, 0, 0, 255);
GRAPHICS::DRAW_RECT(0.160f, 0.080f, 0.250f, 0.100f, 0, 0, 0, 255);
Vector3 Pos = ENTITY::GET_ENTITY_COORDS(GetEntity, 1);
float Pitch = ENTITY::GET_ENTITY_PITCH(GetEntity);
float Roll = ENTITY::GET_ENTITY_ROLL(GetEntity);
float Yaw = ENTITY::GET_ENTITY_HEADING(GetEntity);
int hash = ENTITY::GET_ENTITY_MODEL(GetEntity);
Vector3 Rot = ENTITY::GET_ENTITY_ROTATION(GetEntity, 0);
float QUARTX;
float QUARTY;
float QUARTZ;
float QUARTW;
Vector3 Quaternion = ENTITY::GET_ENTITY_QUATERNION(GetEntity, &QUARTX, &QUARTY, &QUARTZ, &QUARTW);
if (ENTITY::DOES_ENTITY_EXIST(GetEntity))
{
char buf[100];
RequestNetworkControl(GetEntity);

drawText("~y~Model Dimensions", 0, ObjectBoxXCoord2, ObjectBoxYCoord2 + ObjectBoxYCoordS2 * 0, HeightText2, HeightText2, 255, 255, 255, 255, false);

snprintf(buf, sizeof(buf), "~y~Min X:~s~ %s", FtoS(Min[0]));
drawText(buf, 0, ObjectBoxXCoord2, ObjectBoxYCoord2 + ObjectBoxYCoordS2 * 1, HeightText2, HeightText2, 255, 255, 255, 255, false);

snprintf(buf, sizeof(buf), "~y~Max X:~s~ %s", FtoS(Max[0]));
drawText(buf, 0, ObjectBoxXCoord2, ObjectBoxYCoord2 + ObjectBoxYCoordS2 * 2, HeightText2, HeightText2, 255, 255, 255, 255, false);

snprintf(buf, sizeof(buf), "~y~Min Y:~s~ %s", FtoS(Min[1]));
drawText(buf, 0, ObjectBoxXCoord2, ObjectBoxYCoord2 + ObjectBoxYCoordS2 * 3, HeightText2, HeightText2, 255, 255, 255, 255, false);

snprintf(buf, sizeof(buf), "~y~Max Y:~s~ %s", FtoS(Max[1]));
drawText(buf, 0, ObjectBoxXCoord2, ObjectBoxYCoord2 + ObjectBoxYCoordS2 * 4, HeightText2, HeightText2, 255, 255, 255, 255, false);

snprintf(buf, sizeof(buf), "~y~Min Z:~s~ %s", FtoS(Min[2]));
drawText(buf, 0, ObjectBoxXCoord2, ObjectBoxYCoord2 + ObjectBoxYCoordS2 * 5, HeightText2, HeightText2, 255, 255, 255, 255, false);

snprintf(buf, sizeof(buf), "~y~Max Z:~s~ %s", FtoS(Max[2]));
drawText(buf, 0, ObjectBoxXCoord2, ObjectBoxYCoord2 + ObjectBoxYCoordS2 * 6, HeightText2, HeightText2, 255, 255, 255, 255, false);

drawText("~y~Model Hash", 0, ObjectBoxXCoord, ObjectBoxYCoord + ObjectBoxYCoordS * 0, HeightText, HeightText, 255, 255, 255, 255, false);

if (!GAMEPLAY::ARE_STRINGS_EQUAL(IntToHexString(GET_ENTITY_ADDRESS(GetEntity)), "0x00000000"))
{
snprintf(buf, sizeof(buf), "~y~Hex:~s~ %s", IntToHexString(GET_ENTITY_ADDRESS(GetEntity)));
drawText(buf, 0, ObjectBoxXCoord, ObjectBoxYCoord + ObjectBoxYCoordS * 1, HeightText, HeightText, 255, 255, 255, 255, false);
}

snprintf(buf, sizeof(buf), "~y~Hash:~s~ %i", hash);
drawText(buf, 0, ObjectBoxXCoord, ObjectBoxYCoord + ObjectBoxYCoordS * 2, HeightText, HeightText, 255, 255, 255, 255, false);

if (ENTITY::IS_ENTITY_AN_OBJECT(GetEntity))
{
char buf[100];
snprintf(buf, sizeof(buf), "~y~Object Hash: ~s~%i", hash);
drawText(buf, 0, ObjectBoxXCoord, 0.033f + ObjectBoxYCoordS * 0, HeightText, HeightText, 255, 255, 255, 255, false);

snprintf(buf, sizeof(buf), "~y~Entitys Spawneds: ~s~%i", SpawnedObjects);
drawText(buf, 0, ObjectBoxXCoord, 0.033f + ObjectBoxYCoordS * 1, HeightText, HeightText, 255, 255, 255, 255, false);

drawText("~y~Type: Object", 0, ObjectBoxXCoord, 0.033f + ObjectBoxYCoordS * 2, HeightText, HeightText, 255, 255, 255, 255, false);

drawText("~y~Object Offsets", 0, ObjectBoxXCoord, ObjectBoxYCoord + ObjectBoxYCoordS * 3, HeightText, HeightText, 255, 255, 255, 255, false);
}
else if (ENTITY::IS_ENTITY_A_VEHICLE(GetEntity))
{
char buf[100];
snprintf(buf, sizeof(buf), "~y~Vehicle Name: ~s~%s ", UI::_0x95C4B5AD(VEHICLE::GET_DISPLAY_NAME_FROM_VEHICLE_MODEL(ENTITY::GET_ENTITY_MODEL(GetEntity))));
drawText(buf, 0, ObjectBoxXCoord, 0.033f + ObjectBoxYCoordS * 0, HeightText, HeightText, 255, 255, 255, 255, false);

snprintf(buf, sizeof(buf), "~y~Entitys Spawneds: ~s~%i", SpawnedObjects);
drawText(buf, 0, ObjectBoxXCoord, 0.033f + ObjectBoxYCoordS * 1, HeightText, HeightText, 255, 255, 255, 255, false);

drawText("~y~Type: Vehicle", 0, ObjectBoxXCoord, 0.033f + ObjectBoxYCoordS * 2, HeightText, HeightText, 255, 255, 255, 255, false);

drawText("~y~Vehicle Offsets", 0, ObjectBoxXCoord, ObjectBoxYCoord + ObjectBoxYCoordS * 3, HeightText, HeightText, 255, 255, 255, 255, false);
}
else if (ENTITY::IS_ENTITY_A_PED(GetEntity))
{
char buf[100];
snprintf(buf, sizeof(buf), "~y~Ped Hash: ~s~%i ", hash);
drawText(buf, 0, ObjectBoxXCoord, 0.033f + ObjectBoxYCoordS * 0, HeightText, HeightText, 255, 255, 255, 255, false);

snprintf(buf, sizeof(buf), "~y~Entitys Spawneds: ~s~%i", SpawnedObjects);
drawText(buf, 0, ObjectBoxXCoord, 0.033f + ObjectBoxYCoordS * 1, HeightText, HeightText, 255, 255, 255, 255, false);

drawText("~y~Type: Ped", 0, ObjectBoxXCoord, 0.033f + ObjectBoxYCoordS * 2, HeightText, HeightText, 255, 255, 255, 255, false);

drawText("~y~Ped Offsets", 0, ObjectBoxXCoord, ObjectBoxYCoord + ObjectBoxYCoordS * 3, HeightText, HeightText, 255, 255, 255, 255, false);
}

snprintf(buf, sizeof(buf), "~y~X:~s~ %s", FtoS(Pos.x));
drawText(buf, 0, ObjectBoxXCoord, ObjectBoxYCoord + ObjectBoxYCoordS * 4, HeightText, HeightText, 255, 255, 255, 255, false);

snprintf(buf, sizeof(buf), "~y~Y:~s~ %s", FtoS(Pos.y));
drawText(buf, 0, ObjectBoxXCoord, ObjectBoxYCoord + ObjectBoxYCoordS * 5, HeightText, HeightText, 255, 255, 255, 255, false);

snprintf(buf, sizeof(buf), "~y~Z:~s~ %s", FtoS(Pos.z));
drawText(buf, 0, ObjectBoxXCoord, ObjectBoxYCoord + ObjectBoxYCoordS * 6, HeightText, HeightText, 255, 255, 255, 255, false);

drawText("~y~Rotation", 0, ObjectBoxXCoord, ObjectBoxYCoord + ObjectBoxYCoordS * 7, HeightText, HeightText, 255, 255, 255, 255, false);

snprintf(buf, sizeof(buf), "~y~RX:~s~ %s", FtoS(Rot.x));
drawText(buf, 0, ObjectBoxXCoord, ObjectBoxYCoord + ObjectBoxYCoordS * 8, HeightText, HeightText, 255, 255, 255, 255, false);

snprintf(buf, sizeof(buf), "~y~RY:~s~ %s", FtoS(Rot.y));
drawText(buf, 0, ObjectBoxXCoord, ObjectBoxYCoord + ObjectBoxYCoordS * 9, HeightText, HeightText, 255, 255, 255, 255, false);

snprintf(buf, sizeof(buf), "~y~RZ:~s~ %s", FtoS(Rot.z));
drawText(buf, 0, ObjectBoxXCoord, ObjectBoxYCoord + ObjectBoxYCoordS * 10, HeightText, HeightText, 255, 255, 255, 255, false);

drawText("~y~Heading", 0, ObjectBoxXCoord, ObjectBoxYCoord + ObjectBoxYCoordS * 11, HeightText, HeightText, 255, 255, 255, 255, false);

snprintf(buf, sizeof(buf), "~y~H:~s~ %s", ItoS(Yaw));
drawText(buf, 0, ObjectBoxXCoord, ObjectBoxYCoord + ObjectBoxYCoordS * 12, HeightText, HeightText, 255, 255, 255, 255, false);

drawText("~y~Roots", 0, ObjectBoxXCoord, ObjectBoxYCoord + ObjectBoxYCoordS * 13, HeightText, HeightText, 255, 255, 255, 255, false);

snprintf(buf, sizeof(buf), "~y~Pitch:~s~ %s", FtoS(QUARTX));
drawText(buf, 0, ObjectBoxXCoord, ObjectBoxYCoord + ObjectBoxYCoordS * 14, HeightText, HeightText, 255, 255, 255, 255, false);

snprintf(buf, sizeof(buf), "~y~Roll:~s~ %s", FtoS(Roll));
drawText(buf, 0, ObjectBoxXCoord, ObjectBoxYCoord + ObjectBoxYCoordS * 15, HeightText, HeightText, 255, 255, 255, 255, false);

drawText("~y~Quaternion", 0, ObjectBoxXCoord, ObjectBoxYCoord + ObjectBoxYCoordS * 16, HeightText, HeightText, 255, 255, 255, 255, false);

snprintf(buf, sizeof(buf), "~y~QX:~s~ %s", FtoS(QUARTX));
drawText(buf, 0, ObjectBoxXCoord, ObjectBoxYCoord + ObjectBoxYCoordS * 17, HeightText, HeightText, 255, 255, 255, 255, false);

snprintf(buf, sizeof(buf), "~y~QY:~s~ %s", FtoS(QUARTY));
drawText(buf, 0, ObjectBoxXCoord, ObjectBoxYCoord + ObjectBoxYCoordS * 18, HeightText, HeightText, 255, 255, 255, 255, false);

snprintf(buf, sizeof(buf), "~y~QZ:~s~ %s", FtoS(QUARTZ));
drawText(buf, 0, ObjectBoxXCoord, ObjectBoxYCoord + ObjectBoxYCoordS * 19, HeightText, HeightText, 255, 255, 255, 255, false);

snprintf(buf, sizeof(buf), "~y~QW:~s~ %s", FtoS(QUARTW));
drawText(buf, 0, ObjectBoxXCoord, ObjectBoxYCoord + ObjectBoxYCoordS * 20, HeightText, HeightText, 255, 255, 255, 255, false);
}
}
snprintf(buf, sizeof(buf), "~y~Max X:~s~ %s", FtoS(Max[0]));
drawText(buf, 0, ObjectBoxXCoord2, ObjectBoxYCoord2 + ObjectBoxYCoordS2 * 2, HeightText2, HeightText2, 255, 255, 255, 255, false);

snprintf(buf, sizeof(buf), "~y~Min Y:~s~ %s", FtoS(Min[1]));
drawText(buf, 0, ObjectBoxXCoord2, ObjectBoxYCoord2 + ObjectBoxYCoordS2 * 3, HeightText2, HeightText2, 255, 255, 255, 255, false);

snprintf(buf, sizeof(buf), "~y~Max Y:~s~ %s", FtoS(Max[1]));
drawText(buf, 0, ObjectBoxXCoord2, ObjectBoxYCoord2 + ObjectBoxYCoordS2 * 4, HeightText2, HeightText2, 255, 255, 255, 255, false);

snprintf(buf, sizeof(buf), "~y~Min Z:~s~ %s", FtoS(Min[2]));
drawText(buf, 0, ObjectBoxXCoord2, ObjectBoxYCoord2 + ObjectBoxYCoordS2 * 5, HeightText2, HeightText2, 255, 255, 255, 255, false);

snprintf(buf, sizeof(buf), "~y~Max Z:~s~ %s", FtoS(Max[2]));
drawText(buf, 0, ObjectBoxXCoord2, ObjectBoxYCoord2 + ObjectBoxYCoordS2 * 6, HeightText2, HeightText2, 255, 255, 255, 255, false);

drawText("~y~Model Hash", 0, ObjectBoxXCoord, ObjectBoxYCoord + ObjectBoxYCoordS * 0, HeightText, HeightText, 255, 255, 255, 255, false);

if (!GAMEPLAY::ARE_STRINGS_EQUAL(IntToHexString(GET_ENTITY_ADDRESS(GetEntity)), "0x00000000"))
{
snprintf(buf, sizeof(buf), "~y~Hex:~s~ %s", IntToHexString(GET_ENTITY_ADDRESS(GetEntity)));
drawText(buf, 0, ObjectBoxXCoord, ObjectBoxYCoord + ObjectBoxYCoordS * 1, HeightText, HeightText, 255, 255, 255, 255, false);
}

snprintf(buf, sizeof(buf), "~y~Hash:~s~ %i", hash);
drawText(buf, 0, ObjectBoxXCoord, ObjectBoxYCoord + ObjectBoxYCoordS * 2, HeightText, HeightText, 255, 255, 255, 255, false);

if (ENTITY::IS_ENTITY_AN_OBJECT(GetEntity))
{
char buf[100];
snprintf(buf, sizeof(buf), "~y~Object Hash: ~s~%i", hash);
drawText(buf, 0, ObjectBoxXCoord, 0.033f + ObjectBoxYCoordS * 0, HeightText, HeightText, 255, 255, 255, 255, false);

snprintf(buf, sizeof(buf), "~y~Entitys Spawneds: ~s~%i", SpawnedObjects);
drawText(buf, 0, ObjectBoxXCoord, 0.033f + ObjectBoxYCoordS * 1, HeightText, HeightText, 255, 255, 255, 255, false);

drawText("~y~Type: Object", 0, ObjectBoxXCoord, 0.033f + ObjectBoxYCoordS * 2, HeightText, HeightText, 255, 255, 255, 255, false);

drawText("~y~Object Offsets", 0, ObjectBoxXCoord, ObjectBoxYCoord + ObjectBoxYCoordS * 3, HeightText, HeightText, 255, 255, 255, 255, false);
}
else if (ENTITY::IS_ENTITY_A_VEHICLE(GetEntity))
{
char buf[100];
snprintf(buf, sizeof(buf), "~y~Vehicle Name: ~s~%s ", UI::_0x95C4B5AD(VEHICLE::GET_DISPLAY_NAME_FROM_VEHICLE_MODEL(ENTITY::GET_ENTITY_MODEL(GetEntity))));
drawText(buf, 0, ObjectBoxXCoord, 0.033f + ObjectBoxYCoordS * 0, HeightText, HeightText, 255, 255, 255, 255, false);

snprintf(buf, sizeof(buf), "~y~Entitys Spawneds: ~s~%i", SpawnedObjects);
drawText(buf, 0, ObjectBoxXCoord, 0.033f + ObjectBoxYCoordS * 1, HeightText, HeightText, 255, 255, 255, 255, false);

drawText("~y~Type: Vehicle", 0, ObjectBoxXCoord, 0.033f + ObjectBoxYCoordS * 2, HeightText, HeightText, 255, 255, 255, 255, false);

drawText("~y~Vehicle Offsets", 0, ObjectBoxXCoord, ObjectBoxYCoord + ObjectBoxYCoordS * 3, HeightText, HeightText, 255, 255, 255, 255, false);
}
else if (ENTITY::IS_ENTITY_A_PED(GetEntity))
{
char buf[100];
snprintf(buf, sizeof(buf), "~y~Ped Hash: ~s~%i ", hash);
drawText(buf, 0, ObjectBoxXCoord, 0.033f + ObjectBoxYCoordS * 0, HeightText, HeightText, 255, 255, 255, 255, false);

snprintf(buf, sizeof(buf), "~y~Entitys Spawneds: ~s~%i", SpawnedObjects);
drawText(buf, 0, ObjectBoxXCoord, 0.033f + ObjectBoxYCoordS * 1, HeightText, HeightText, 255, 255, 255, 255, false);

drawText("~y~Type: Ped", 0, ObjectBoxXCoord, 0.033f + ObjectBoxYCoordS * 2, HeightText, HeightText, 255, 255, 255, 255, false);

drawText("~y~Ped Offsets", 0, ObjectBoxXCoord, ObjectBoxYCoord + ObjectBoxYCoordS * 3, HeightText, HeightText, 255, 255, 255, 255, false);
}

snprintf(buf, sizeof(buf), "~y~X:~s~ %s", FtoS(Pos.x));
drawText(buf, 0, ObjectBoxXCoord, ObjectBoxYCoord + ObjectBoxYCoordS * 4, HeightText, HeightText, 255, 255, 255, 255, false);

snprintf(buf, sizeof(buf), "~y~Y:~s~ %s", FtoS(Pos.y));
drawText(buf, 0, ObjectBoxXCoord, ObjectBoxYCoord + ObjectBoxYCoordS * 5, HeightText, HeightText, 255, 255, 255, 255, false);

snprintf(buf, sizeof(buf), "~y~Z:~s~ %s", FtoS(Pos.z));
drawText(buf, 0, ObjectBoxXCoord, ObjectBoxYCoord + ObjectBoxYCoordS * 6, HeightText, HeightText, 255, 255, 255, 255, false);

drawText("~y~Rotation", 0, ObjectBoxXCoord, ObjectBoxYCoord + ObjectBoxYCoordS * 7, HeightText, HeightText, 255, 255, 255, 255, false);

snprintf(buf, sizeof(buf), "~y~RX:~s~ %s", FtoS(Rot.x));
drawText(buf, 0, ObjectBoxXCoord, ObjectBoxYCoord + ObjectBoxYCoordS * 8, HeightText, HeightText, 255, 255, 255, 255, false);

snprintf(buf, sizeof(buf), "~y~RY:~s~ %s", FtoS(Rot.y));
drawText(buf, 0, ObjectBoxXCoord, ObjectBoxYCoord + ObjectBoxYCoordS * 9, HeightText, HeightText, 255, 255, 255, 255, false);

snprintf(buf, sizeof(buf), "~y~RZ:~s~ %s", FtoS(Rot.z));
drawText(buf, 0, ObjectBoxXCoord, ObjectBoxYCoord + ObjectBoxYCoordS * 10, HeightText, HeightText, 255, 255, 255, 255, false);

drawText("~y~Heading", 0, ObjectBoxXCoord, ObjectBoxYCoord + ObjectBoxYCoordS * 11, HeightText, HeightText, 255, 255, 255, 255, false);

snprintf(buf, sizeof(buf), "~y~H:~s~ %s", ItoS(Yaw));
drawText(buf, 0, ObjectBoxXCoord, ObjectBoxYCoord + ObjectBoxYCoordS * 12, HeightText, HeightText, 255, 255, 255, 255, false);

drawText("~y~Roots", 0, ObjectBoxXCoord, ObjectBoxYCoord + ObjectBoxYCoordS * 13, HeightText, HeightText, 255, 255, 255, 255, false);

snprintf(buf, sizeof(buf), "~y~Pitch:~s~ %s", FtoS(QUARTX));
drawText(buf, 0, ObjectBoxXCoord, ObjectBoxYCoord + ObjectBoxYCoordS * 14, HeightText, HeightText, 255, 255, 255, 255, false);

snprintf(buf, sizeof(buf), "~y~Roll:~s~ %s", FtoS(Roll));
drawText(buf, 0, ObjectBoxXCoord, ObjectBoxYCoord + ObjectBoxYCoordS * 15, HeightText, HeightText, 255, 255, 255, 255, false);

drawText("~y~Quaternion", 0, ObjectBoxXCoord, ObjectBoxYCoord + ObjectBoxYCoordS * 16, HeightText, HeightText, 255, 255, 255, 255, false);

snprintf(buf, sizeof(buf), "~y~QX:~s~ %s", FtoS(QUARTX));
drawText(buf, 0, ObjectBoxXCoord, ObjectBoxYCoord + ObjectBoxYCoordS * 17, HeightText, HeightText, 255, 255, 255, 255, false);

snprintf(buf, sizeof(buf), "~y~QY:~s~ %s", FtoS(QUARTY));
drawText(buf, 0, ObjectBoxXCoord, ObjectBoxYCoord + ObjectBoxYCoordS * 18, HeightText, HeightText, 255, 255, 255, 255, false);

snprintf(buf, sizeof(buf), "~y~QZ:~s~ %s", FtoS(QUARTZ));
drawText(buf, 0, ObjectBoxXCoord, ObjectBoxYCoord + ObjectBoxYCoordS * 19, HeightText, HeightText, 255, 255, 255, 255, false);

snprintf(buf、sizeof(buf)、 "〜y〜QW:〜s〜%s"、FtoS(QUARTW));
drawText(buf、0、ObjectBoxXCoord、ObjectBoxYCoord + ObjectBoxYCoordS * 20、HeightText、HeightText、255,255,255,255、false);
}
}
Coool
Reply
#9
(12-03-2018 - 01:42 PM)tanakatarou Wrote: void ObjectESP(int GetEntity)
{
RequestNetworkControl(GetEntity);
float Min[3];
float Max[3];
GET_MODEL_DIMENSIONS(ENTITY::GET_ENTITY_MODEL(GetEntity), Min, Max);
float height = Max[2] * 2;
Vector3 Loc = ENTITY::GET_OFFSET_FROM_ENTITY_IN_WORLD_COORDS(GetEntity, 0.0, 0.0, height);
GRAPHICS::DRAW_MARKER(0, Loc.x, Loc.y, Loc.z + 1.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 2.5, 2.5, 2.5, 0, 255, 0, 50, 1, 1, 2, 1, 0, 0, 0);
//INFO BOX
GRAPHICS::DRAW_RECT(0.107f, 0.425f, 0.145f, 0.565f, 0, 0, 0, 255);
GRAPHICS::DRAW_RECT(0.875f, 0.170f, 0.150f, 0.235f, 0, 0, 0, 255);
GRAPHICS::DRAW_RECT(0.160f, 0.080f, 0.250f, 0.100f, 0, 0, 0, 255);
Vector3 Pos = ENTITY::GET_ENTITY_COORDS(GetEntity, 1);
float Pitch = ENTITY::GET_ENTITY_PITCH(GetEntity);
float Roll = ENTITY::GET_ENTITY_ROLL(GetEntity);
float Yaw = ENTITY::GET_ENTITY_HEADING(GetEntity);
int hash = ENTITY::GET_ENTITY_MODEL(GetEntity);
Vector3 Rot = ENTITY::GET_ENTITY_ROTATION(GetEntity, 0);
float QUARTX;
float QUARTY;
float QUARTZ;
float QUARTW;
Vector3 Quaternion = ENTITY::GET_ENTITY_QUATERNION(GetEntity, &QUARTX, &QUARTY, &QUARTZ, &QUARTW);
if (ENTITY::DOES_ENTITY_EXIST(GetEntity))
{
char buf[100];
RequestNetworkControl(GetEntity);

drawText("~y~Model Dimensions", 0, ObjectBoxXCoord2, ObjectBoxYCoord2 + ObjectBoxYCoordS2 * 0, HeightText2, HeightText2, 255, 255, 255, 255, false);

snprintf(buf, sizeof(buf), "~y~Min X:~s~ %s", FtoS(Min[0]));
drawText(buf, 0, ObjectBoxXCoord2, ObjectBoxYCoord2 + ObjectBoxYCoordS2 * 1, HeightText2, HeightText2, 255, 255, 255, 255, false);

snprintf(buf, sizeof(buf), "~y~Max X:~s~ %s", FtoS(Max[0]));
drawText(buf, 0, ObjectBoxXCoord2, ObjectBoxYCoord2 + ObjectBoxYCoordS2 * 2, HeightText2, HeightText2, 255, 255, 255, 255, false);

snprintf(buf, sizeof(buf), "~y~Min Y:~s~ %s", FtoS(Min[1]));
drawText(buf, 0, ObjectBoxXCoord2, ObjectBoxYCoord2 + ObjectBoxYCoordS2 * 3, HeightText2, HeightText2, 255, 255, 255, 255, false);

snprintf(buf, sizeof(buf), "~y~Max Y:~s~ %s", FtoS(Max[1]));
drawText(buf, 0, ObjectBoxXCoord2, ObjectBoxYCoord2 + ObjectBoxYCoordS2 * 4, HeightText2, HeightText2, 255, 255, 255, 255, false);

snprintf(buf, sizeof(buf), "~y~Min Z:~s~ %s", FtoS(Min[2]));
drawText(buf, 0, ObjectBoxXCoord2, ObjectBoxYCoord2 + ObjectBoxYCoordS2 * 5, HeightText2, HeightText2, 255, 255, 255, 255, false);

snprintf(buf, sizeof(buf), "~y~Max Z:~s~ %s", FtoS(Max[2]));
drawText(buf, 0, ObjectBoxXCoord2, ObjectBoxYCoord2 + ObjectBoxYCoordS2 * 6, HeightText2, HeightText2, 255, 255, 255, 255, false);

drawText("~y~Model Hash", 0, ObjectBoxXCoord, ObjectBoxYCoord + ObjectBoxYCoordS * 0, HeightText, HeightText, 255, 255, 255, 255, false);

if (!GAMEPLAY::ARE_STRINGS_EQUAL(IntToHexString(GET_ENTITY_ADDRESS(GetEntity)), "0x00000000"))
{
snprintf(buf, sizeof(buf), "~y~Hex:~s~ %s", IntToHexString(GET_ENTITY_ADDRESS(GetEntity)));
drawText(buf, 0, ObjectBoxXCoord, ObjectBoxYCoord + ObjectBoxYCoordS * 1, HeightText, HeightText, 255, 255, 255, 255, false);
}

snprintf(buf, sizeof(buf), "~y~Hash:~s~ %i", hash);
drawText(buf, 0, ObjectBoxXCoord, ObjectBoxYCoord + ObjectBoxYCoordS * 2, HeightText, HeightText, 255, 255, 255, 255, false);

if (ENTITY::IS_ENTITY_AN_OBJECT(GetEntity))
{
char buf[100];
snprintf(buf, sizeof(buf), "~y~Object Hash: ~s~%i", hash);
drawText(buf, 0, ObjectBoxXCoord, 0.033f + ObjectBoxYCoordS * 0, HeightText, HeightText, 255, 255, 255, 255, false);

snprintf(buf, sizeof(buf), "~y~Entitys Spawneds: ~s~%i", SpawnedObjects);
drawText(buf, 0, ObjectBoxXCoord, 0.033f + ObjectBoxYCoordS * 1, HeightText, HeightText, 255, 255, 255, 255, false);

drawText("~y~Type: Object", 0, ObjectBoxXCoord, 0.033f + ObjectBoxYCoordS * 2, HeightText, HeightText, 255, 255, 255, 255, false);

drawText("~y~Object Offsets", 0, ObjectBoxXCoord, ObjectBoxYCoord + ObjectBoxYCoordS * 3, HeightText, HeightText, 255, 255, 255, 255, false);
}
else if (ENTITY::IS_ENTITY_A_VEHICLE(GetEntity))
{
char buf[100];
snprintf(buf, sizeof(buf), "~y~Vehicle Name: ~s~%s ", UI::_0x95C4B5AD(VEHICLE::GET_DISPLAY_NAME_FROM_VEHICLE_MODEL(ENTITY::GET_ENTITY_MODEL(GetEntity))));
drawText(buf, 0, ObjectBoxXCoord, 0.033f + ObjectBoxYCoordS * 0, HeightText, HeightText, 255, 255, 255, 255, false);

snprintf(buf, sizeof(buf), "~y~Entitys Spawneds: ~s~%i", SpawnedObjects);
drawText(buf, 0, ObjectBoxXCoord, 0.033f + ObjectBoxYCoordS * 1, HeightText, HeightText, 255, 255, 255, 255, false);

drawText("~y~Type: Vehicle", 0, ObjectBoxXCoord, 0.033f + ObjectBoxYCoordS * 2, HeightText, HeightText, 255, 255, 255, 255, false);

drawText("~y~Vehicle Offsets", 0, ObjectBoxXCoord, ObjectBoxYCoord + ObjectBoxYCoordS * 3, HeightText, HeightText, 255, 255, 255, 255, false);
}
else if (ENTITY::IS_ENTITY_A_PED(GetEntity))
{
char buf[100];
snprintf(buf, sizeof(buf), "~y~Ped Hash: ~s~%i ", hash);
drawText(buf, 0, ObjectBoxXCoord, 0.033f + ObjectBoxYCoordS * 0, HeightText, HeightText, 255, 255, 255, 255, false);

snprintf(buf, sizeof(buf), "~y~Entitys Spawneds: ~s~%i", SpawnedObjects);
drawText(buf, 0, ObjectBoxXCoord, 0.033f + ObjectBoxYCoordS * 1, HeightText, HeightText, 255, 255, 255, 255, false);

drawText("~y~Type: Ped", 0, ObjectBoxXCoord, 0.033f + ObjectBoxYCoordS * 2, HeightText, HeightText, 255, 255, 255, 255, false);

drawText("~y~Ped Offsets", 0, ObjectBoxXCoord, ObjectBoxYCoord + ObjectBoxYCoordS * 3, HeightText, HeightText, 255, 255, 255, 255, false);
}

snprintf(buf, sizeof(buf), "~y~X:~s~ %s", FtoS(Pos.x));
drawText(buf, 0, ObjectBoxXCoord, ObjectBoxYCoord + ObjectBoxYCoordS * 4, HeightText, HeightText, 255, 255, 255, 255, false);

snprintf(buf, sizeof(buf), "~y~Y:~s~ %s", FtoS(Pos.y));
drawText(buf, 0, ObjectBoxXCoord, ObjectBoxYCoord + ObjectBoxYCoordS * 5, HeightText, HeightText, 255, 255, 255, 255, false);

snprintf(buf, sizeof(buf), "~y~Z:~s~ %s", FtoS(Pos.z));
drawText(buf, 0, ObjectBoxXCoord, ObjectBoxYCoord + ObjectBoxYCoordS * 6, HeightText, HeightText, 255, 255, 255, 255, false);

drawText("~y~Rotation", 0, ObjectBoxXCoord, ObjectBoxYCoord + ObjectBoxYCoordS * 7, HeightText, HeightText, 255, 255, 255, 255, false);

snprintf(buf, sizeof(buf), "~y~RX:~s~ %s", FtoS(Rot.x));
drawText(buf, 0, ObjectBoxXCoord, ObjectBoxYCoord + ObjectBoxYCoordS * 8, HeightText, HeightText, 255, 255, 255, 255, false);

snprintf(buf, sizeof(buf), "~y~RY:~s~ %s", FtoS(Rot.y));
drawText(buf, 0, ObjectBoxXCoord, ObjectBoxYCoord + ObjectBoxYCoordS * 9, HeightText, HeightText, 255, 255, 255, 255, false);

snprintf(buf, sizeof(buf), "~y~RZ:~s~ %s", FtoS(Rot.z));
drawText(buf, 0, ObjectBoxXCoord, ObjectBoxYCoord + ObjectBoxYCoordS * 10, HeightText, HeightText, 255, 255, 255, 255, false);

drawText("~y~Heading", 0, ObjectBoxXCoord, ObjectBoxYCoord + ObjectBoxYCoordS * 11, HeightText, HeightText, 255, 255, 255, 255, false);

snprintf(buf, sizeof(buf), "~y~H:~s~ %s", ItoS(Yaw));
drawText(buf, 0, ObjectBoxXCoord, ObjectBoxYCoord + ObjectBoxYCoordS * 12, HeightText, HeightText, 255, 255, 255, 255, false);

drawText("~y~Roots", 0, ObjectBoxXCoord, ObjectBoxYCoord + ObjectBoxYCoordS * 13, HeightText, HeightText, 255, 255, 255, 255, false);

snprintf(buf, sizeof(buf), "~y~Pitch:~s~ %s", FtoS(QUARTX));
drawText(buf, 0, ObjectBoxXCoord, ObjectBoxYCoord + ObjectBoxYCoordS * 14, HeightText, HeightText, 255, 255, 255, 255, false);

snprintf(buf, sizeof(buf), "~y~Roll:~s~ %s", FtoS(Roll));
drawText(buf, 0, ObjectBoxXCoord, ObjectBoxYCoord + ObjectBoxYCoordS * 15, HeightText, HeightText, 255, 255, 255, 255, false);

drawText("~y~Quaternion", 0, ObjectBoxXCoord, ObjectBoxYCoord + ObjectBoxYCoordS * 16, HeightText, HeightText, 255, 255, 255, 255, false);

snprintf(buf, sizeof(buf), "~y~QX:~s~ %s", FtoS(QUARTX));
drawText(buf, 0, ObjectBoxXCoord, ObjectBoxYCoord + ObjectBoxYCoordS * 17, HeightText, HeightText, 255, 255, 255, 255, false);

snprintf(buf, sizeof(buf), "~y~QY:~s~ %s", FtoS(QUARTY));
drawText(buf, 0, ObjectBoxXCoord, ObjectBoxYCoord + ObjectBoxYCoordS * 18, HeightText, HeightText, 255, 255, 255, 255, false);

snprintf(buf, sizeof(buf), "~y~QZ:~s~ %s", FtoS(QUARTZ));
drawText(buf, 0, ObjectBoxXCoord, ObjectBoxYCoord + ObjectBoxYCoordS * 19, HeightText, HeightText, 255, 255, 255, 255, false);

snprintf(buf, sizeof(buf), "~y~QW:~s~ %s", FtoS(QUARTW));
drawText(buf, 0, ObjectBoxXCoord, ObjectBoxYCoord + ObjectBoxYCoordS * 20, HeightText, HeightText, 255, 255, 255, 255, false);
}
}
snprintf(buf, sizeof(buf), "~y~Max X:~s~ %s", FtoS(Max[0]));
drawText(buf, 0, ObjectBoxXCoord2, ObjectBoxYCoord2 + ObjectBoxYCoordS2 * 2, HeightText2, HeightText2, 255, 255, 255, 255, false);

snprintf(buf, sizeof(buf), "~y~Min Y:~s~ %s", FtoS(Min[1]));
drawText(buf, 0, ObjectBoxXCoord2, ObjectBoxYCoord2 + ObjectBoxYCoordS2 * 3, HeightText2, HeightText2, 255, 255, 255, 255, false);

snprintf(buf, sizeof(buf), "~y~Max Y:~s~ %s", FtoS(Max[1]));
drawText(buf, 0, ObjectBoxXCoord2, ObjectBoxYCoord2 + ObjectBoxYCoordS2 * 4, HeightText2, HeightText2, 255, 255, 255, 255, false);

snprintf(buf, sizeof(buf), "~y~Min Z:~s~ %s", FtoS(Min[2]));
drawText(buf, 0, ObjectBoxXCoord2, ObjectBoxYCoord2 + ObjectBoxYCoordS2 * 5, HeightText2, HeightText2, 255, 255, 255, 255, false);

snprintf(buf, sizeof(buf), "~y~Max Z:~s~ %s", FtoS(Max[2]));
drawText(buf, 0, ObjectBoxXCoord2, ObjectBoxYCoord2 + ObjectBoxYCoordS2 * 6, HeightText2, HeightText2, 255, 255, 255, 255, false);

drawText("~y~Model Hash", 0, ObjectBoxXCoord, ObjectBoxYCoord + ObjectBoxYCoordS * 0, HeightText, HeightText, 255, 255, 255, 255, false);

if (!GAMEPLAY::ARE_STRINGS_EQUAL(IntToHexString(GET_ENTITY_ADDRESS(GetEntity)), "0x00000000"))
{
snprintf(buf, sizeof(buf), "~y~Hex:~s~ %s", IntToHexString(GET_ENTITY_ADDRESS(GetEntity)));
drawText(buf, 0, ObjectBoxXCoord, ObjectBoxYCoord + ObjectBoxYCoordS * 1, HeightText, HeightText, 255, 255, 255, 255, false);
}

snprintf(buf, sizeof(buf), "~y~Hash:~s~ %i", hash);
drawText(buf, 0, ObjectBoxXCoord, ObjectBoxYCoord + ObjectBoxYCoordS * 2, HeightText, HeightText, 255, 255, 255, 255, false);

if (ENTITY::IS_ENTITY_AN_OBJECT(GetEntity))
{
char buf[100];
snprintf(buf, sizeof(buf), "~y~Object Hash: ~s~%i", hash);
drawText(buf, 0, ObjectBoxXCoord, 0.033f + ObjectBoxYCoordS * 0, HeightText, HeightText, 255, 255, 255, 255, false);

snprintf(buf, sizeof(buf), "~y~Entitys Spawneds: ~s~%i", SpawnedObjects);
drawText(buf, 0, ObjectBoxXCoord, 0.033f + ObjectBoxYCoordS * 1, HeightText, HeightText, 255, 255, 255, 255, false);

drawText("~y~Type: Object", 0, ObjectBoxXCoord, 0.033f + ObjectBoxYCoordS * 2, HeightText, HeightText, 255, 255, 255, 255, false);

drawText("~y~Object Offsets", 0, ObjectBoxXCoord, ObjectBoxYCoord + ObjectBoxYCoordS * 3, HeightText, HeightText, 255, 255, 255, 255, false);
}
else if (ENTITY::IS_ENTITY_A_VEHICLE(GetEntity))
{
char buf[100];
snprintf(buf, sizeof(buf), "~y~Vehicle Name: ~s~%s ", UI::_0x95C4B5AD(VEHICLE::GET_DISPLAY_NAME_FROM_VEHICLE_MODEL(ENTITY::GET_ENTITY_MODEL(GetEntity))));
drawText(buf, 0, ObjectBoxXCoord, 0.033f + ObjectBoxYCoordS * 0, HeightText, HeightText, 255, 255, 255, 255, false);

snprintf(buf, sizeof(buf), "~y~Entitys Spawneds: ~s~%i", SpawnedObjects);
drawText(buf, 0, ObjectBoxXCoord, 0.033f + ObjectBoxYCoordS * 1, HeightText, HeightText, 255, 255, 255, 255, false);

drawText("~y~Type: Vehicle", 0, ObjectBoxXCoord, 0.033f + ObjectBoxYCoordS * 2, HeightText, HeightText, 255, 255, 255, 255, false);

drawText("~y~Vehicle Offsets", 0, ObjectBoxXCoord, ObjectBoxYCoord + ObjectBoxYCoordS * 3, HeightText, HeightText, 255, 255, 255, 255, false);
}
else if (ENTITY::IS_ENTITY_A_PED(GetEntity))
{
char buf[100];
snprintf(buf, sizeof(buf), "~y~Ped Hash: ~s~%i ", hash);
drawText(buf, 0, ObjectBoxXCoord, 0.033f + ObjectBoxYCoordS * 0, HeightText, HeightText, 255, 255, 255, 255, false);

snprintf(buf, sizeof(buf), "~y~Entitys Spawneds: ~s~%i", SpawnedObjects);
drawText(buf, 0, ObjectBoxXCoord, 0.033f + ObjectBoxYCoordS * 1, HeightText, HeightText, 255, 255, 255, 255, false);

drawText("~y~Type: Ped", 0, ObjectBoxXCoord, 0.033f + ObjectBoxYCoordS * 2, HeightText, HeightText, 255, 255, 255, 255, false);

drawText("~y~Ped Offsets", 0, ObjectBoxXCoord, ObjectBoxYCoord + ObjectBoxYCoordS * 3, HeightText, HeightText, 255, 255, 255, 255, false);
}

snprintf(buf, sizeof(buf), "~y~X:~s~ %s", FtoS(Pos.x));
drawText(buf, 0, ObjectBoxXCoord, ObjectBoxYCoord + ObjectBoxYCoordS * 4, HeightText, HeightText, 255, 255, 255, 255, false);

snprintf(buf, sizeof(buf), "~y~Y:~s~ %s", FtoS(Pos.y));
drawText(buf, 0, ObjectBoxXCoord, ObjectBoxYCoord + ObjectBoxYCoordS * 5, HeightText, HeightText, 255, 255, 255, 255, false);

snprintf(buf, sizeof(buf), "~y~Z:~s~ %s", FtoS(Pos.z));
drawText(buf, 0, ObjectBoxXCoord, ObjectBoxYCoord + ObjectBoxYCoordS * 6, HeightText, HeightText, 255, 255, 255, 255, false);

drawText("~y~Rotation", 0, ObjectBoxXCoord, ObjectBoxYCoord + ObjectBoxYCoordS * 7, HeightText, HeightText, 255, 255, 255, 255, false);

snprintf(buf, sizeof(buf), "~y~RX:~s~ %s", FtoS(Rot.x));
drawText(buf, 0, ObjectBoxXCoord, ObjectBoxYCoord + ObjectBoxYCoordS * 8, HeightText, HeightText, 255, 255, 255, 255, false);

snprintf(buf, sizeof(buf), "~y~RY:~s~ %s", FtoS(Rot.y));
drawText(buf, 0, ObjectBoxXCoord, ObjectBoxYCoord + ObjectBoxYCoordS * 9, HeightText, HeightText, 255, 255, 255, 255, false);

snprintf(buf, sizeof(buf), "~y~RZ:~s~ %s", FtoS(Rot.z));
drawText(buf, 0, ObjectBoxXCoord, ObjectBoxYCoord + ObjectBoxYCoordS * 10, HeightText, HeightText, 255, 255, 255, 255, false);

drawText("~y~Heading", 0, ObjectBoxXCoord, ObjectBoxYCoord + ObjectBoxYCoordS * 11, HeightText, HeightText, 255, 255, 255, 255, false);

snprintf(buf, sizeof(buf), "~y~H:~s~ %s", ItoS(Yaw));
drawText(buf, 0, ObjectBoxXCoord, ObjectBoxYCoord + ObjectBoxYCoordS * 12, HeightText, HeightText, 255, 255, 255, 255, false);

drawText("~y~Roots", 0, ObjectBoxXCoord, ObjectBoxYCoord + ObjectBoxYCoordS * 13, HeightText, HeightText, 255, 255, 255, 255, false);

snprintf(buf, sizeof(buf), "~y~Pitch:~s~ %s", FtoS(QUARTX));
drawText(buf, 0, ObjectBoxXCoord, ObjectBoxYCoord + ObjectBoxYCoordS * 14, HeightText, HeightText, 255, 255, 255, 255, false);

snprintf(buf, sizeof(buf), "~y~Roll:~s~ %s", FtoS(Roll));
drawText(buf, 0, ObjectBoxXCoord, ObjectBoxYCoord + ObjectBoxYCoordS * 15, HeightText, HeightText, 255, 255, 255, 255, false);

drawText("~y~Quaternion", 0, ObjectBoxXCoord, ObjectBoxYCoord + ObjectBoxYCoordS * 16, HeightText, HeightText, 255, 255, 255, 255, false);

snprintf(buf, sizeof(buf), "~y~QX:~s~ %s", FtoS(QUARTX));
drawText(buf, 0, ObjectBoxXCoord, ObjectBoxYCoord + ObjectBoxYCoordS * 17, HeightText, HeightText, 255, 255, 255, 255, false);

snprintf(buf, sizeof(buf), "~y~QY:~s~ %s", FtoS(QUARTY));
drawText(buf, 0, ObjectBoxXCoord, ObjectBoxYCoord + ObjectBoxYCoordS * 18, HeightText, HeightText, 255, 255, 255, 255, false);

snprintf(buf, sizeof(buf), "~y~QZ:~s~ %s", FtoS(QUARTZ));
drawText(buf, 0, ObjectBoxXCoord, ObjectBoxYCoord + ObjectBoxYCoordS * 19, HeightText, HeightText, 255, 255, 255, 255, false);

snprintf(buf、sizeof(buf)、 "〜y〜QW:〜s〜%s"、FtoS(QUARTW));
drawText(buf、0、ObjectBoxXCoord、ObjectBoxYCoord + ObjectBoxYCoordS * 20、HeightText、HeightText、255,255,255,255、false);
}
}

Thanks
Reply
#10
(12-03-2018 - 01:42 PM)tanakatarou Wrote: void ObjectESP(int GetEntity)
{
RequestNetworkControl(GetEntity);
float Min[3];
float Max[3];
GET_MODEL_DIMENSIONS(ENTITY::GET_ENTITY_MODEL(GetEntity), Min, Max);
float height = Max[2] * 2;
Vector3 Loc = ENTITY::GET_OFFSET_FROM_ENTITY_IN_WORLD_COORDS(GetEntity, 0.0, 0.0, height);
GRAPHICS::DRAW_MARKER(0, Loc.x, Loc.y, Loc.z + 1.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 2.5, 2.5, 2.5, 0, 255, 0, 50, 1, 1, 2, 1, 0, 0, 0);
//INFO BOX
GRAPHICS::DRAW_RECT(0.107f, 0.425f, 0.145f, 0.565f, 0, 0, 0, 255);
GRAPHICS::DRAW_RECT(0.875f, 0.170f, 0.150f, 0.235f, 0, 0, 0, 255);
GRAPHICS::DRAW_RECT(0.160f, 0.080f, 0.250f, 0.100f, 0, 0, 0, 255);
Vector3 Pos = ENTITY::GET_ENTITY_COORDS(GetEntity, 1);
float Pitch = ENTITY::GET_ENTITY_PITCH(GetEntity);
float Roll = ENTITY::GET_ENTITY_ROLL(GetEntity);
float Yaw = ENTITY::GET_ENTITY_HEADING(GetEntity);
int hash = ENTITY::GET_ENTITY_MODEL(GetEntity);
Vector3 Rot = ENTITY::GET_ENTITY_ROTATION(GetEntity, 0);
float QUARTX;
float QUARTY;
float QUARTZ;
float QUARTW;
Vector3 Quaternion = ENTITY::GET_ENTITY_QUATERNION(GetEntity, &QUARTX, &QUARTY, &QUARTZ, &QUARTW);
if (ENTITY::DOES_ENTITY_EXIST(GetEntity))
{
char buf[100];
RequestNetworkControl(GetEntity);

drawText("~y~Model Dimensions", 0, ObjectBoxXCoord2, ObjectBoxYCoord2 + ObjectBoxYCoordS2 * 0, HeightText2, HeightText2, 255, 255, 255, 255, false);

snprintf(buf, sizeof(buf), "~y~Min X:~s~ %s", FtoS(Min[0]));
drawText(buf, 0, ObjectBoxXCoord2, ObjectBoxYCoord2 + ObjectBoxYCoordS2 * 1, HeightText2, HeightText2, 255, 255, 255, 255, false);

snprintf(buf, sizeof(buf), "~y~Max X:~s~ %s", FtoS(Max[0]));
drawText(buf, 0, ObjectBoxXCoord2, ObjectBoxYCoord2 + ObjectBoxYCoordS2 * 2, HeightText2, HeightText2, 255, 255, 255, 255, false);

snprintf(buf, sizeof(buf), "~y~Min Y:~s~ %s", FtoS(Min[1]));
drawText(buf, 0, ObjectBoxXCoord2, ObjectBoxYCoord2 + ObjectBoxYCoordS2 * 3, HeightText2, HeightText2, 255, 255, 255, 255, false);

snprintf(buf, sizeof(buf), "~y~Max Y:~s~ %s", FtoS(Max[1]));
drawText(buf, 0, ObjectBoxXCoord2, ObjectBoxYCoord2 + ObjectBoxYCoordS2 * 4, HeightText2, HeightText2, 255, 255, 255, 255, false);

snprintf(buf, sizeof(buf), "~y~Min Z:~s~ %s", FtoS(Min[2]));
drawText(buf, 0, ObjectBoxXCoord2, ObjectBoxYCoord2 + ObjectBoxYCoordS2 * 5, HeightText2, HeightText2, 255, 255, 255, 255, false);

snprintf(buf, sizeof(buf), "~y~Max Z:~s~ %s", FtoS(Max[2]));
drawText(buf, 0, ObjectBoxXCoord2, ObjectBoxYCoord2 + ObjectBoxYCoordS2 * 6, HeightText2, HeightText2, 255, 255, 255, 255, false);

drawText("~y~Model Hash", 0, ObjectBoxXCoord, ObjectBoxYCoord + ObjectBoxYCoordS * 0, HeightText, HeightText, 255, 255, 255, 255, false);

if (!GAMEPLAY::ARE_STRINGS_EQUAL(IntToHexString(GET_ENTITY_ADDRESS(GetEntity)), "0x00000000"))
{
snprintf(buf, sizeof(buf), "~y~Hex:~s~ %s", IntToHexString(GET_ENTITY_ADDRESS(GetEntity)));
drawText(buf, 0, ObjectBoxXCoord, ObjectBoxYCoord + ObjectBoxYCoordS * 1, HeightText, HeightText, 255, 255, 255, 255, false);
}

snprintf(buf, sizeof(buf), "~y~Hash:~s~ %i", hash);
drawText(buf, 0, ObjectBoxXCoord, ObjectBoxYCoord + ObjectBoxYCoordS * 2, HeightText, HeightText, 255, 255, 255, 255, false);

if (ENTITY::IS_ENTITY_AN_OBJECT(GetEntity))
{
char buf[100];
snprintf(buf, sizeof(buf), "~y~Object Hash: ~s~%i", hash);
drawText(buf, 0, ObjectBoxXCoord, 0.033f + ObjectBoxYCoordS * 0, HeightText, HeightText, 255, 255, 255, 255, false);

snprintf(buf, sizeof(buf), "~y~Entitys Spawneds: ~s~%i", SpawnedObjects);
drawText(buf, 0, ObjectBoxXCoord, 0.033f + ObjectBoxYCoordS * 1, HeightText, HeightText, 255, 255, 255, 255, false);

drawText("~y~Type: Object", 0, ObjectBoxXCoord, 0.033f + ObjectBoxYCoordS * 2, HeightText, HeightText, 255, 255, 255, 255, false);

drawText("~y~Object Offsets", 0, ObjectBoxXCoord, ObjectBoxYCoord + ObjectBoxYCoordS * 3, HeightText, HeightText, 255, 255, 255, 255, false);
}
else if (ENTITY::IS_ENTITY_A_VEHICLE(GetEntity))
{
char buf[100];
snprintf(buf, sizeof(buf), "~y~Vehicle Name: ~s~%s ", UI::_0x95C4B5AD(VEHICLE::GET_DISPLAY_NAME_FROM_VEHICLE_MODEL(ENTITY::GET_ENTITY_MODEL(GetEntity))));
drawText(buf, 0, ObjectBoxXCoord, 0.033f + ObjectBoxYCoordS * 0, HeightText, HeightText, 255, 255, 255, 255, false);

snprintf(buf, sizeof(buf), "~y~Entitys Spawneds: ~s~%i", SpawnedObjects);
drawText(buf, 0, ObjectBoxXCoord, 0.033f + ObjectBoxYCoordS * 1, HeightText, HeightText, 255, 255, 255, 255, false);

drawText("~y~Type: Vehicle", 0, ObjectBoxXCoord, 0.033f + ObjectBoxYCoordS * 2, HeightText, HeightText, 255, 255, 255, 255, false);

drawText("~y~Vehicle Offsets", 0, ObjectBoxXCoord, ObjectBoxYCoord + ObjectBoxYCoordS * 3, HeightText, HeightText, 255, 255, 255, 255, false);
}
else if (ENTITY::IS_ENTITY_A_PED(GetEntity))
{
char buf[100];
snprintf(buf, sizeof(buf), "~y~Ped Hash: ~s~%i ", hash);
drawText(buf, 0, ObjectBoxXCoord, 0.033f + ObjectBoxYCoordS * 0, HeightText, HeightText, 255, 255, 255, 255, false);

snprintf(buf, sizeof(buf), "~y~Entitys Spawneds: ~s~%i", SpawnedObjects);
drawText(buf, 0, ObjectBoxXCoord, 0.033f + ObjectBoxYCoordS * 1, HeightText, HeightText, 255, 255, 255, 255, false);

drawText("~y~Type: Ped", 0, ObjectBoxXCoord, 0.033f + ObjectBoxYCoordS * 2, HeightText, HeightText, 255, 255, 255, 255, false);

drawText("~y~Ped Offsets", 0, ObjectBoxXCoord, ObjectBoxYCoord + ObjectBoxYCoordS * 3, HeightText, HeightText, 255, 255, 255, 255, false);
}

snprintf(buf, sizeof(buf), "~y~X:~s~ %s", FtoS(Pos.x));
drawText(buf, 0, ObjectBoxXCoord, ObjectBoxYCoord + ObjectBoxYCoordS * 4, HeightText, HeightText, 255, 255, 255, 255, false);

snprintf(buf, sizeof(buf), "~y~Y:~s~ %s", FtoS(Pos.y));
drawText(buf, 0, ObjectBoxXCoord, ObjectBoxYCoord + ObjectBoxYCoordS * 5, HeightText, HeightText, 255, 255, 255, 255, false);

snprintf(buf, sizeof(buf), "~y~Z:~s~ %s", FtoS(Pos.z));
drawText(buf, 0, ObjectBoxXCoord, ObjectBoxYCoord + ObjectBoxYCoordS * 6, HeightText, HeightText, 255, 255, 255, 255, false);

drawText("~y~Rotation", 0, ObjectBoxXCoord, ObjectBoxYCoord + ObjectBoxYCoordS * 7, HeightText, HeightText, 255, 255, 255, 255, false);

snprintf(buf, sizeof(buf), "~y~RX:~s~ %s", FtoS(Rot.x));
drawText(buf, 0, ObjectBoxXCoord, ObjectBoxYCoord + ObjectBoxYCoordS * 8, HeightText, HeightText, 255, 255, 255, 255, false);

snprintf(buf, sizeof(buf), "~y~RY:~s~ %s", FtoS(Rot.y));
drawText(buf, 0, ObjectBoxXCoord, ObjectBoxYCoord + ObjectBoxYCoordS * 9, HeightText, HeightText, 255, 255, 255, 255, false);

snprintf(buf, sizeof(buf), "~y~RZ:~s~ %s", FtoS(Rot.z));
drawText(buf, 0, ObjectBoxXCoord, ObjectBoxYCoord + ObjectBoxYCoordS * 10, HeightText, HeightText, 255, 255, 255, 255, false);

drawText("~y~Heading", 0, ObjectBoxXCoord, ObjectBoxYCoord + ObjectBoxYCoordS * 11, HeightText, HeightText, 255, 255, 255, 255, false);

snprintf(buf, sizeof(buf), "~y~H:~s~ %s", ItoS(Yaw));
drawText(buf, 0, ObjectBoxXCoord, ObjectBoxYCoord + ObjectBoxYCoordS * 12, HeightText, HeightText, 255, 255, 255, 255, false);

drawText("~y~Roots", 0, ObjectBoxXCoord, ObjectBoxYCoord + ObjectBoxYCoordS * 13, HeightText, HeightText, 255, 255, 255, 255, false);

snprintf(buf, sizeof(buf), "~y~Pitch:~s~ %s", FtoS(QUARTX));
drawText(buf, 0, ObjectBoxXCoord, ObjectBoxYCoord + ObjectBoxYCoordS * 14, HeightText, HeightText, 255, 255, 255, 255, false);

snprintf(buf, sizeof(buf), "~y~Roll:~s~ %s", FtoS(Roll));
drawText(buf, 0, ObjectBoxXCoord, ObjectBoxYCoord + ObjectBoxYCoordS * 15, HeightText, HeightText, 255, 255, 255, 255, false);

drawText("~y~Quaternion", 0, ObjectBoxXCoord, ObjectBoxYCoord + ObjectBoxYCoordS * 16, HeightText, HeightText, 255, 255, 255, 255, false);

snprintf(buf, sizeof(buf), "~y~QX:~s~ %s", FtoS(QUARTX));
drawText(buf, 0, ObjectBoxXCoord, ObjectBoxYCoord + ObjectBoxYCoordS * 17, HeightText, HeightText, 255, 255, 255, 255, false);

snprintf(buf, sizeof(buf), "~y~QY:~s~ %s", FtoS(QUARTY));
drawText(buf, 0, ObjectBoxXCoord, ObjectBoxYCoord + ObjectBoxYCoordS * 18, HeightText, HeightText, 255, 255, 255, 255, false);

snprintf(buf, sizeof(buf), "~y~QZ:~s~ %s", FtoS(QUARTZ));
drawText(buf, 0, ObjectBoxXCoord, ObjectBoxYCoord + ObjectBoxYCoordS * 19, HeightText, HeightText, 255, 255, 255, 255, false);

snprintf(buf, sizeof(buf), "~y~QW:~s~ %s", FtoS(QUARTW));
drawText(buf, 0, ObjectBoxXCoord, ObjectBoxYCoord + ObjectBoxYCoordS * 20, HeightText, HeightText, 255, 255, 255, 255, false);
}
}
snprintf(buf, sizeof(buf), "~y~Max X:~s~ %s", FtoS(Max[0]));
drawText(buf, 0, ObjectBoxXCoord2, ObjectBoxYCoord2 + ObjectBoxYCoordS2 * 2, HeightText2, HeightText2, 255, 255, 255, 255, false);

snprintf(buf, sizeof(buf), "~y~Min Y:~s~ %s", FtoS(Min[1]));
drawText(buf, 0, ObjectBoxXCoord2, ObjectBoxYCoord2 + ObjectBoxYCoordS2 * 3, HeightText2, HeightText2, 255, 255, 255, 255, false);

snprintf(buf, sizeof(buf), "~y~Max Y:~s~ %s", FtoS(Max[1]));
drawText(buf, 0, ObjectBoxXCoord2, ObjectBoxYCoord2 + ObjectBoxYCoordS2 * 4, HeightText2, HeightText2, 255, 255, 255, 255, false);

snprintf(buf, sizeof(buf), "~y~Min Z:~s~ %s", FtoS(Min[2]));
drawText(buf, 0, ObjectBoxXCoord2, ObjectBoxYCoord2 + ObjectBoxYCoordS2 * 5, HeightText2, HeightText2, 255, 255, 255, 255, false);

snprintf(buf, sizeof(buf), "~y~Max Z:~s~ %s", FtoS(Max[2]));
drawText(buf, 0, ObjectBoxXCoord2, ObjectBoxYCoord2 + ObjectBoxYCoordS2 * 6, HeightText2, HeightText2, 255, 255, 255, 255, false);

drawText("~y~Model Hash", 0, ObjectBoxXCoord, ObjectBoxYCoord + ObjectBoxYCoordS * 0, HeightText, HeightText, 255, 255, 255, 255, false);

if (!GAMEPLAY::ARE_STRINGS_EQUAL(IntToHexString(GET_ENTITY_ADDRESS(GetEntity)), "0x00000000"))
{
snprintf(buf, sizeof(buf), "~y~Hex:~s~ %s", IntToHexString(GET_ENTITY_ADDRESS(GetEntity)));
drawText(buf, 0, ObjectBoxXCoord, ObjectBoxYCoord + ObjectBoxYCoordS * 1, HeightText, HeightText, 255, 255, 255, 255, false);
}

snprintf(buf, sizeof(buf), "~y~Hash:~s~ %i", hash);
drawText(buf, 0, ObjectBoxXCoord, ObjectBoxYCoord + ObjectBoxYCoordS * 2, HeightText, HeightText, 255, 255, 255, 255, false);

if (ENTITY::IS_ENTITY_AN_OBJECT(GetEntity))
{
char buf[100];
snprintf(buf, sizeof(buf), "~y~Object Hash: ~s~%i", hash);
drawText(buf, 0, ObjectBoxXCoord, 0.033f + ObjectBoxYCoordS * 0, HeightText, HeightText, 255, 255, 255, 255, false);

snprintf(buf, sizeof(buf), "~y~Entitys Spawneds: ~s~%i", SpawnedObjects);
drawText(buf, 0, ObjectBoxXCoord, 0.033f + ObjectBoxYCoordS * 1, HeightText, HeightText, 255, 255, 255, 255, false);

drawText("~y~Type: Object", 0, ObjectBoxXCoord, 0.033f + ObjectBoxYCoordS * 2, HeightText, HeightText, 255, 255, 255, 255, false);

drawText("~y~Object Offsets", 0, ObjectBoxXCoord, ObjectBoxYCoord + ObjectBoxYCoordS * 3, HeightText, HeightText, 255, 255, 255, 255, false);
}
else if (ENTITY::IS_ENTITY_A_VEHICLE(GetEntity))
{
char buf[100];
snprintf(buf, sizeof(buf), "~y~Vehicle Name: ~s~%s ", UI::_0x95C4B5AD(VEHICLE::GET_DISPLAY_NAME_FROM_VEHICLE_MODEL(ENTITY::GET_ENTITY_MODEL(GetEntity))));
drawText(buf, 0, ObjectBoxXCoord, 0.033f + ObjectBoxYCoordS * 0, HeightText, HeightText, 255, 255, 255, 255, false);

snprintf(buf, sizeof(buf), "~y~Entitys Spawneds: ~s~%i", SpawnedObjects);
drawText(buf, 0, ObjectBoxXCoord, 0.033f + ObjectBoxYCoordS * 1, HeightText, HeightText, 255, 255, 255, 255, false);

drawText("~y~Type: Vehicle", 0, ObjectBoxXCoord, 0.033f + ObjectBoxYCoordS * 2, HeightText, HeightText, 255, 255, 255, 255, false);

drawText("~y~Vehicle Offsets", 0, ObjectBoxXCoord, ObjectBoxYCoord + ObjectBoxYCoordS * 3, HeightText, HeightText, 255, 255, 255, 255, false);
}
else if (ENTITY::IS_ENTITY_A_PED(GetEntity))
{
char buf[100];
snprintf(buf, sizeof(buf), "~y~Ped Hash: ~s~%i ", hash);
drawText(buf, 0, ObjectBoxXCoord, 0.033f + ObjectBoxYCoordS * 0, HeightText, HeightText, 255, 255, 255, 255, false);

snprintf(buf, sizeof(buf), "~y~Entitys Spawneds: ~s~%i", SpawnedObjects);
drawText(buf, 0, ObjectBoxXCoord, 0.033f + ObjectBoxYCoordS * 1, HeightText, HeightText, 255, 255, 255, 255, false);

drawText("~y~Type: Ped", 0, ObjectBoxXCoord, 0.033f + ObjectBoxYCoordS * 2, HeightText, HeightText, 255, 255, 255, 255, false);

drawText("~y~Ped Offsets", 0, ObjectBoxXCoord, ObjectBoxYCoord + ObjectBoxYCoordS * 3, HeightText, HeightText, 255, 255, 255, 255, false);
}

snprintf(buf, sizeof(buf), "~y~X:~s~ %s", FtoS(Pos.x));
drawText(buf, 0, ObjectBoxXCoord, ObjectBoxYCoord + ObjectBoxYCoordS * 4, HeightText, HeightText, 255, 255, 255, 255, false);

snprintf(buf, sizeof(buf), "~y~Y:~s~ %s", FtoS(Pos.y));
drawText(buf, 0, ObjectBoxXCoord, ObjectBoxYCoord + ObjectBoxYCoordS * 5, HeightText, HeightText, 255, 255, 255, 255, false);

snprintf(buf, sizeof(buf), "~y~Z:~s~ %s", FtoS(Pos.z));
drawText(buf, 0, ObjectBoxXCoord, ObjectBoxYCoord + ObjectBoxYCoordS * 6, HeightText, HeightText, 255, 255, 255, 255, false);

drawText("~y~Rotation", 0, ObjectBoxXCoord, ObjectBoxYCoord + ObjectBoxYCoordS * 7, HeightText, HeightText, 255, 255, 255, 255, false);

snprintf(buf, sizeof(buf), "~y~RX:~s~ %s", FtoS(Rot.x));
drawText(buf, 0, ObjectBoxXCoord, ObjectBoxYCoord + ObjectBoxYCoordS * 8, HeightText, HeightText, 255, 255, 255, 255, false);

snprintf(buf, sizeof(buf), "~y~RY:~s~ %s", FtoS(Rot.y));
drawText(buf, 0, ObjectBoxXCoord, ObjectBoxYCoord + ObjectBoxYCoordS * 9, HeightText, HeightText, 255, 255, 255, 255, false);

snprintf(buf, sizeof(buf), "~y~RZ:~s~ %s", FtoS(Rot.z));
drawText(buf, 0, ObjectBoxXCoord, ObjectBoxYCoord + ObjectBoxYCoordS * 10, HeightText, HeightText, 255, 255, 255, 255, false);

drawText("~y~Heading", 0, ObjectBoxXCoord, ObjectBoxYCoord + ObjectBoxYCoordS * 11, HeightText, HeightText, 255, 255, 255, 255, false);

snprintf(buf, sizeof(buf), "~y~H:~s~ %s", ItoS(Yaw));
drawText(buf, 0, ObjectBoxXCoord, ObjectBoxYCoord + ObjectBoxYCoordS * 12, HeightText, HeightText, 255, 255, 255, 255, false);

drawText("~y~Roots", 0, ObjectBoxXCoord, ObjectBoxYCoord + ObjectBoxYCoordS * 13, HeightText, HeightText, 255, 255, 255, 255, false);

snprintf(buf, sizeof(buf), "~y~Pitch:~s~ %s", FtoS(QUARTX));
drawText(buf, 0, ObjectBoxXCoord, ObjectBoxYCoord + ObjectBoxYCoordS * 14, HeightText, HeightText, 255, 255, 255, 255, false);

snprintf(buf, sizeof(buf), "~y~Roll:~s~ %s", FtoS(Roll));
drawText(buf, 0, ObjectBoxXCoord, ObjectBoxYCoord + ObjectBoxYCoordS * 15, HeightText, HeightText, 255, 255, 255, 255, false);

drawText("~y~Quaternion", 0, ObjectBoxXCoord, ObjectBoxYCoord + ObjectBoxYCoordS * 16, HeightText, HeightText, 255, 255, 255, 255, false);

snprintf(buf, sizeof(buf), "~y~QX:~s~ %s", FtoS(QUARTX));
drawText(buf, 0, ObjectBoxXCoord, ObjectBoxYCoord + ObjectBoxYCoordS * 17, HeightText, HeightText, 255, 255, 255, 255, false);

snprintf(buf, sizeof(buf), "~y~QY:~s~ %s", FtoS(QUARTY));
drawText(buf, 0, ObjectBoxXCoord, ObjectBoxYCoord + ObjectBoxYCoordS * 18, HeightText, HeightText, 255, 255, 255, 255, false);

snprintf(buf, sizeof(buf), "~y~QZ:~s~ %s", FtoS(QUARTZ));
drawText(buf, 0, ObjectBoxXCoord, ObjectBoxYCoord + ObjectBoxYCoordS * 19, HeightText, HeightText, 255, 255, 255, 255, false);

snprintf(buf、sizeof(buf)、 "〜y〜QW:〜s〜%s"、FtoS(QUARTW));
drawText(buf、0、ObjectBoxXCoord、ObjectBoxYCoord + ObjectBoxYCoordS * 20、HeightText、HeightText、255,255,255,255、false);
}
}
NICE
Reply

Users browsing: 2 Guest(s)