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
 1874

The best [perfectionists]

by dabexclusive - 02-28-2019 - 04:16 AM
#1
[hide]


Code:
void pinfo()
{
/*DRAW ENTITY OF PLAYER VISUAL*/
//ARROWS
int maker = 2;//22;
float maker2 = 1.40;
Vector3 Loc = ENTITY::GET_OFFSET_FROM_ENTITY_IN_WORLD_COORDS(PLAYER::GET_PLAYER_PED(selectedPlayer), 0.0, 0.0, 1.5f);
GRAPHICS::DRAW_MARKER(maker, Loc.x, Loc.y, Loc.z, 0.0f, 0.0f, 0.0f, 180.0f, 0.0f, 0.0f, 0.7f, 0.7f, 0.7f, 0, 50, 255, 50, 1, 1, 2, 1, 0, 0, true);
int maker1 = 1;//27;
float maker12 = -2.46;
GRAPHICS::DRAW_MARKER(maker1, Loc.x, Loc.y, Loc.z + maker12, 0.0f, 0.0f, 0.0f, 180.0f, 0.0f, 0.0f, 0.7f, 0.7f, 0.7f, 0, 50, 255, 50, 0, 1, 2, 1, 0, 0, true);
//LINE
Vector3 Pos777;
Vector3 Pos2;
int PedID = PLAYER::GET_PLAYER_PED(selectedPlayer);
//Pos777 = ENTITY::GET_ENTITY_COORDS(PLAYER::PLAYER_PED_ID(), false);
//Pos2 = ENTITY::GET_ENTITY_COORDS(PedID, false);
GRAPHICS::DRAW_LINE(Pos777.x, Pos777.y, Pos777.z, Pos2.x, Pos2.y, Pos2.z, 0, 50, 255, 255);
/*DRAW PLAYER INFO*/
char CurrentWeapon = WEAPON::GET_CURRENT_PED_WEAPON_ENTITY_INDEX(PLAYER::GET_PLAYER_PED(selectedPlayer));
Hash equippedWeapon;
WEAPON::GET_CURRENT_PED_WEAPON(PLAYER::GET_PLAYER_PED(selectedPlayer), &equippedWeapon, 1);

//int AmmoNeeded = WEAPON::GET_AMMO_IN_PED_WEAPON(PLAYER::GET_PLAYER_PED(selectedPlayer), equippedWeapon);
//int BestWeapon = WEAPON::GET_BEST_PED_WEAPON(PLAYER::GET_PLAYER_PED(selectedPlayer), 0);

char *playerName = PLAYER::GET_PLAYER_NAME(PLAYER::GET_PLAYER_PED(selectedPlayer));
int CurrentUID = getUID(playerName);
//std::string s = std::to_string(CurrentUID);
///std::array<char, 10> str;
///std::to_chars(str.data(), str.data() + str.size(), 42);
std::string s = std::to_string(CurrentUID);
char const *pchar = s.c_str();  //use char const* as target type
//char* peace = pchar;
//int UIDStringed = STRING_TO_INT(CurrentUID, &UIDStringed);
///char* UID = NETWORK::NETWORK_PLAYER_GET_USERID(PLAYER::GET_PLAYER_PED(selectedPlayer), (char*)*pchar);
//int UIDStringed = GAMEPLAY::STRING_TO_INT(UID, &UIDStringed);

char WheelType = VEHICLE::GET_VEHICLE_WHEEL_TYPE(PED::GET_VEHICLE_PED_IS_IN(PLAYER::GET_PLAYER_PED(selectedPlayer), 1));
int JoinTrans = NETWORK::NETWORK_JOIN_TRANSITION(PLAYER::GET_PLAYER_PED(selectedPlayer));
//int IsConnected = NETWORK::NETWORK_IS_PLAYER_CONNECTED(PLAYER::GET_PLAYER_PED(selectedPlayer));
//int InScene = NETWORK::IS_PLAYER_IN_CUTSCENE(PLAYER::GET_PLAYER_PED(selectedPlayer));
int UserDead = ENTITY::IS_ENTITY_DEAD(PLAYER::GET_PLAYER_PED(selectedPlayer));
//bool isAlive = !PLAYER::IS_PLAYER_DEAD(selectedPlayer);
char InTransition = NETWORK::NETWORK_HAS_PLAYER_STARTED_TRANSITION(PLAYER::GET_PLAYER_PED(selectedPlayer));
int ValidDetails = NETWORK::NETWORK_ARE_TRANSITION_DETAILS_VALID(PLAYER::GET_PLAYER_PED(selectedPlayer));
int Active = NETWORK::NETWORK_IS_PLAYER_ACTIVE(PLAYER::GET_PLAYER_PED(selectedPlayer));
int IsPlaying = PLAYER::IS_PLAYER_PLAYING(PLAYER::GET_PLAYER_PED(selectedPlayer));


int VehicleHealth = ENTITY::GET_ENTITY_HEALTH(PED::GET_VEHICLE_PED_IS_IN(PLAYER::GET_PLAYER_PED(selectedPlayer), 0));
int VehicleSpeed = ENTITY::GET_ENTITY_SPEED(PED::GET_VEHICLE_PED_IS_IN(PLAYER::GET_PLAYER_PED(selectedPlayer), 0));
int playerHealt = ENTITY::GET_ENTITY_HEALTH(PLAYER::GET_PLAYER_PED(selectedPlayer));
Vector3 Pos = ENTITY::GET_ENTITY_COORDS(PLAYER::GET_PLAYER_PED(selectedPlayer), 1);
int playerCar = PED::GET_VEHICLE_PED_IS_IN(PLAYER::GET_PLAYER_PED(selectedPlayer), 0);
int dev = DLC2::IS_DLC_PRESENT(2532323046);
int Cheater = NETWORK::_NETWORK_PLAYER_IS_CHEATER(PLAYER::GET_PLAYER_PED(selectedPlayer)); //
int InInterior = INTERIOR::GET_INTERIOR_FROM_ENTITY(PLAYER::GET_PLAYER_PED(selectedPlayer));
int Damaged = VEHICLE::_IS_VEHICLE_DAMAGED(PED::GET_VEHICLE_PED_IS_IN(PLAYER::GET_PLAYER_PED(selectedPlayer), 0));
int netHandle;
NETWORK::NETWORK_HANDLE_FROM_PLAYER(selectedPlayer, &netHandle, 13);
int thisPlayersCar = ENTITY::GET_ENTITY_MODEL(playerCar);
char buf[1000];
char buf2[1000];

snprintf(buf2, sizeof(buf2), "~r~Name: ~s~%s", PLAYER::GET_PLAYER_NAME(selectedPlayer));
drawTextxxx2(buf2, 0, 0.2f, 0.775f, Subx2, Suby2, 0, 50, 255, 255, false);

snprintf(buf, sizeof(buf), "~r~Position: ~o~X.~w~ %f ~o~Y.~w~ %f ~o~Z.~w~ %f", Pos.x, Pos.y, Pos.z);
drawTextxxx2(buf, 0, 0.2f, 0.80f, Subx2, Suby2, 0, 50, 255, 255, false);

snprintf(buf2, sizeof(buf2), "~r~Vehicle: ~w~%s", VEHICLE::GET_DISPLAY_NAME_FROM_VEHICLE_MODEL(thisPlayersCar));
drawTextxxx2(buf2, 0, 0.2f, 0.825f, Subx2, Suby2, 0, 50, 255, 255, false);

snprintf(buf2, sizeof(buf2), "~r~Weapon Type: ~w~%s", WEAPON::GET_WEAPONTYPE_MODEL(CurrentWeapon));
drawTextxxx2(buf2, 0, 0.2f, 0.835f, Subx2, Suby2, 0, 50, 255, 255, false);

snprintf(buf2, sizeof(buf2), "~r~Weapon: ~w~%s", WEAPON::GET_WEAPONTYPE_MODEL(equippedWeapon));
drawTextxxx2(buf2, 0, 0.4f, 0.835f, Subx2, Suby2, 0, 50, 255, 255, false);

snprintf(buf2, sizeof(buf2), "~r~Wheel Type: ~w~%s", VEHICLE::GET_VEHICLE_WHEEL_TYPE(PLAYER::GET_PLAYER_PED(selectedPlayer)));
drawTextxxx2(buf2, 0, 0.2f, 0.122f, Subx2, Suby2, 0, 50, 255, 255, false);

snprintf(buf2, sizeof(buf2), "~r~Ammo: ~w~%s", WEAPON::GET_AMMO_IN_PED_WEAPON(PLAYER::GET_PLAYER_PED(selectedPlayer), CurrentWeapon));
drawTextxxx2(buf2, 0, 0.2f, 0.848f, Subx2, Suby2, 0, 50, 255, 255, false);

snprintf(buf2, sizeof(buf2), "~r~Favorite Weapon: ~w~%s", WEAPON::GET_BEST_PED_WEAPON(PLAYER::GET_PLAYER_PED(selectedPlayer), 0));
drawTextxxx2(buf2, 0, 0.2f, 0.852f, Subx2, Suby2, 0, 50, 255, 255, false);

snprintf(buf2, sizeof(buf2), "~r~UID: ~w~%s", NETWORK::NETWORK_PLAYER_GET_USERID(PLAYER::GET_PLAYER_PED(selectedPlayer), (char*)*pchar));
drawTextxxx2(buf2, 0, 0.2f, 0.854f, Subx2, Suby2, 0, 50, 255, 255, false);

// snprintf(buf2, sizeof(buf2), "~r~Favorite Weapon: ~w~%s", WEAPON::GET_BEST_PED_WEAPON(PLAYER::GET_PLAYER_PED(selectedPlayer), 0));
//drawTextxxx2(buf2, 0, 0.2f, 0.852f, Subx2, Suby2, 0, 50, 255, 255, false);

{
if (NETWORK::NETWORK_PLAYER_HAS_HEADSET(selectedPlayer))
{
char buf[30];
snprintf(buf, sizeof(buf), "~w~Headset: ~s~Has Headset");
drawTextxxx2(buf, 0, 0.2f, 0.85f, Subx2, Suby2, 0, 50, 255, 255, false);
}

else if (!NETWORK::NETWORK_PLAYER_HAS_HEADSET(selectedPlayer))
{
char buf[30];
snprintf(buf, sizeof(buf), "~w~Headset: ~s~No Headset");
drawTextxxx2(buf, 0, 0.2f, 0.85, Subx2, Suby2, 0, 50, 255, 255, false);
}
}
{
if (NETWORK::NETWORK_IS_PLAYER_MUTED_BY_ME(selectedPlayer))
{
char buf[30];
snprintf(buf, sizeof(buf), "~w~Muted Me: ~s~Yes");
drawTextxxx2(buf, 0, 0.2f, 0.875, Subx2, Suby2, 0, 50, 255, 255, false);
}

else if (!NETWORK::NETWORK_IS_PLAYER_MUTED_BY_ME(selectedPlayer))
{
char buf[30];
snprintf(buf, sizeof(buf), "~r~Muted Me: ~s~No");
drawTextxxx2(buf, 0, 0.2f, 0.875, Subx2, Suby2, 0, 50, 255, 255, false);
}
}
{
if (NETWORK::NETWORK_IS_PLAYER_CONNECTED(selectedPlayer))
{
char buf[30];
snprintf(buf, sizeof(buf), "~r~Is Connected: ~w~Yes");
drawTextxxx2(buf, 0, 0.2f, 0.133, Subx2, Suby2, 0, 50, 255, 255, false);
}

else if (!NETWORK::NETWORK_IS_PLAYER_CONNECTED(selectedPlayer))
{
char buf[30];
snprintf(buf, sizeof(buf), "~r~Is Connected: ~w~Negative");
drawTextxxx2(buf, 0, 0.2f, 0.133, Subx2, Suby2, 0, 50, 255, 255, false);
}
}
{
if (NETWORK::IS_PLAYER_IN_CUTSCENE(selectedPlayer))
{
char buf[30];
snprintf(buf, sizeof(buf), "~r~In Cutscene: ~w~Yes");
drawTextxxx2(buf, 0, 0.2f, 0.166, Subx2, Suby2, 0, 50, 255, 255, false);
}

else if (!NETWORK::IS_PLAYER_IN_CUTSCENE(selectedPlayer))
{
char buf[30];
snprintf(buf, sizeof(buf), "~r~In Cutscene: ~w~No");
drawTextxxx2(buf, 0, 0.2f, 0.166, Subx2, Suby2, 0, 50, 255, 255, false);
}
}
{
if (ENTITY::IS_ENTITY_DEAD(PLAYER::GET_PLAYER_PED(selectedPlayer)))
{
char buf[30];
snprintf(buf, sizeof(buf), "~r~Is Dead: ~w~Yes");
drawTextxxx2(buf, 0, 0.2f, 0.188, Subx2, Suby2, 0, 50, 255, 255, false);
}

else if (!ENTITY::IS_ENTITY_DEAD(PLAYER::GET_PLAYER_PED(selectedPlayer)))
{
char buf[30];
snprintf(buf, sizeof(buf), "~r~In Cutscene: ~w~No");
drawTextxxx2(buf, 0, 0.2f, 0.188, Subx2, Suby2, 0, 50, 255, 255, false);
}
}
{
if (NETWORK::NETWORK_HAS_PLAYER_STARTED_TRANSITION(PLAYER::GET_PLAYER_PED(selectedPlayer)))
{
char buf[30];
snprintf(buf, sizeof(buf), "~r~In Transition: ~w~Yes");
drawTextxxx2(buf, 0, 0.2f, 0.210, Subx2, Suby2, 0, 50, 255, 255, false);
}

else if (!NETWORK::NETWORK_HAS_PLAYER_STARTED_TRANSITION(PLAYER::GET_PLAYER_PED(selectedPlayer)))
{
char buf[30];
snprintf(buf, sizeof(buf), "~r~In Transition: ~w~No");
drawTextxxx2(buf, 0, 0.2f, 0.210, Subx2, Suby2, 0, 50, 255, 255, false);
}
}
{
if (NETWORK::NETWORK_ARE_TRANSITION_DETAILS_VALID(PLAYER::GET_PLAYER_PED(selectedPlayer)))
{
char buf[30];
snprintf(buf, sizeof(buf), "~r~Transition Info Valid: ~w~Yes");
drawTextxxx2(buf, 0, 0.2f, 0.233, Subx2, Suby2, 0, 50, 255, 255, false);
}

else if (!NETWORK::NETWORK_ARE_TRANSITION_DETAILS_VALID(PLAYER::GET_PLAYER_PED(selectedPlayer)))
{
char buf[30];
snprintf(buf, sizeof(buf), "~r~Transition Info Valid: ~w~No");
drawTextxxx2(buf, 0, 0.2f, 0.233, Subx2, Suby2, 0, 50, 255, 255, false);
}
}
{
if (NETWORK::_NETWORK_PLAYER_IS_CHEATER(PLAYER::GET_PLAYER_PED(selectedPlayer)))
{
char buf[30];
snprintf(buf, sizeof(buf), "~r~Cheater: ~w~Yes");
drawTextxxx2(buf, 0, 0.2f, 0.266, Subx2, Suby2, 0, 50, 255, 255, false);
}

else if (!NETWORK::_NETWORK_PLAYER_IS_CHEATER(PLAYER::GET_PLAYER_PED(selectedPlayer)))
{
char buf[30];
snprintf(buf, sizeof(buf), "~r~Cheater: ~w~No");
drawTextxxx2(buf, 0, 0.2f, 0.266, Subx2, Suby2, 0, 50, 255, 255, false);
}
}
}

bool PLAYER_PLAYING_INF_SELC = false;
void PlayerInfo(bool selectedPlayerinf)
{
Player ui_slectedPlayer = selectedPlayerinf, ui_currentPlayer = (currentOption - 1);
/*DRAW ENTITY OF PLAYER VISUAL*/
//ARROWS
int maker = 22;
float maker2 = 1.40;
Vector3 Loc = ENTITY::GET_OFFSET_FROM_ENTITY_IN_WORLD_COORDS(PLAYER::GET_PLAYER_PED(selectedPlayerinf ? ui_slectedPlayer : ui_currentPlayer), 0.0, 0.0, 1.5f);
GRAPHICS::DRAW_MARKER(maker, Loc.x, Loc.y, Loc.z, 0.0f, 0.0f, 0.0f, 180.0f, 0.0f, 0.0f, 0.7f, 0.7f, 0.7f, 0, 50, 255, 50, 1, 1, 2, 1, 0, 0, 0);
int maker1 = 27;
float maker12 = -2.46;
GRAPHICS::DRAW_MARKER(maker1, Loc.x, Loc.y, Loc.z + maker12, 0.0f, 0.0f, 0.0f, 180.0f, 0.0f, 0.0f, 0.7f, 0.7f, 0.7f, 0, 50, 255, 50, 0, 1, 2, 1, 0, 0, 0);
//LINE
Vector3 Pos777;
Vector3 Pos2;
int PedID = PLAYER::GET_PLAYER_PED(selectedPlayerinf ? ui_slectedPlayer : ui_currentPlayer);
Pos777 = ENTITY::GET_ENTITY_COORDS(PLAYER::PLAYER_PED_ID(), false);
Pos2 = ENTITY::GET_ENTITY_COORDS(PedID, false);
GRAPHICS::DRAW_LINE(Pos777.x, Pos777.y, Pos777.z, Pos2.x, Pos2.y, Pos2.z, 0, 50, 255, 255);
/*DRAW PLAYER INFO*/
int playerHealt = ENTITY::GET_ENTITY_HEALTH(PLAYER::GET_PLAYER_PED(selectedPlayerinf ? ui_slectedPlayer : ui_currentPlayer));
Vector3 Pos = ENTITY::GET_ENTITY_COORDS(PLAYER::GET_PLAYER_PED(selectedPlayerinf ? ui_slectedPlayer : ui_currentPlayer), 1);
int playerCar = PED::GET_VEHICLE_PED_IS_IN(PLAYER::GET_PLAYER_PED(selectedPlayerinf ? ui_slectedPlayer : ui_currentPlayer), 0);
int thisPlayersCar = ENTITY::GET_ENTITY_MODEL(playerCar);
char CurrentWeapon = WEAPON::GET_CURRENT_PED_WEAPON_ENTITY_INDEX(PLAYER::GET_PLAYER_PED(selectedPlayer));
Hash equippedWeapon;
WEAPON::GET_CURRENT_PED_WEAPON(PLAYER::GET_PLAYER_PED(selectedPlayer), &equippedWeapon, 1);
char buf[1000];
char buf2[1000];

snprintf(buf2, sizeof(buf2), "~w~Username: ~w~%s", PLAYER::GET_PLAYER_NAME(selectedPlayerinf ? ui_slectedPlayer : ui_currentPlayer));
drawTextxxx2(buf2, 0, 0.2f, YScaleInfo, Subx2, Suby2, 0, 50, 255, 255, false);

snprintf(buf, sizeof(buf), "~r~Coordinates: ~w~X = %f, Y = %f, Z = %f", Pos.x, Pos.y, Pos.z);
drawTextxxx2(buf, 0, 0.2f, YScaleInfo + 0.02, Subx2, Suby2, 0, 50, 255, 255, false);

snprintf(buf2, sizeof(buf2), "~r~Vehicle: ~w~%s", VEHICLE::GET_DISPLAY_NAME_FROM_VEHICLE_MODEL(thisPlayersCar));
drawTextxxx2(buf2, 0, 0.2f, YScaleInfo + 0.2 + 0.02, Subx2, Suby2, 0, 50, 255, 255, false);

snprintf(buf2, sizeof(buf2), "~r~Weapon Type: ~w~%s", WEAPON::GET_WEAPONTYPE_MODEL(CurrentWeapon));
drawTextxxx2(buf2, 0, 0.2f, YScaleInfo + 0.2 + 0.04, Subx2, Suby2, 0, 50, 255, 255, false);

snprintf(buf2, sizeof(buf2), "~r~Weapon: ~w~%s", WEAPON::GET_WEAPONTYPE_MODEL(equippedWeapon));
drawTextxxx2(buf2, 0, 0.4f, YScaleInfo + 0.08, Subx2, Suby2, 0, 50, 255, 255, false);

snprintf(buf2, sizeof(buf2), "~r~Wheel Type: ~w~%s", VEHICLE::GET_VEHICLE_WHEEL_TYPE(PLAYER::GET_PLAYER_PED(selectedPlayer)));
drawTextxxx2(buf2, 0, 0.2f, YScaleInfo + 0.010, Subx2, Suby2, 0, 50, 255, 255, false);

snprintf(buf2, sizeof(buf2), "~r~Ammo: ~w~%s", WEAPON::GET_AMMO_IN_PED_WEAPON(PLAYER::GET_PLAYER_PED(selectedPlayer), CurrentWeapon));
drawTextxxx2(buf2, 0, 0.2f, YScaleInfo + 0.012, Subx2, Suby2, 0, 50, 255, 255, false);

snprintf(buf2, sizeof(buf2), "~r~Favorite Weapon: ~w~%s", WEAPON::GET_BEST_PED_WEAPON(PLAYER::GET_PLAYER_PED(selectedPlayer), 0));
drawTextxxx2(buf2, 0, 0.2f, YScaleInfo + 0.014, Subx2, Suby2, 0, 50, 255, 255, false);

snprintf(buf2, sizeof(buf2), "~r~UID: ~w~%s", NETWORK::NETWORK_PLAYER_GET_USERID(PLAYER::GET_PLAYER_PED(selectedPlayer), ""));
drawTextxxx2(buf2, 0, 0.2f, YScaleInfo + 0.016, Subx2, Suby2, 0, 50, 255, 255, false);

{
if (NETWORK::NETWORK_PLAYER_HAS_HEADSET(selectedPlayerinf ? ui_slectedPlayer : ui_currentPlayer))
{
char buf[30];
snprintf(buf, sizeof(buf), "~w~Headset: ~s~Has Headset");
drawTextxxx2(buf, 0, XScaleInfo + 0.2f, YScaleInfo, Subx2, Suby2, 0, 50, 255, 255, false);
}

else if (!NETWORK::NETWORK_PLAYER_HAS_HEADSET(selectedPlayerinf ? ui_slectedPlayer : ui_currentPlayer))
{
char buf[30];
snprintf(buf, sizeof(buf), "~w~Headset: ~s~No Headset");
drawTextxxx2(buf, 0, XScaleInfo + 0.2f, YScaleInfo, Subx2, Suby2, 0, 50, 255, 255, false);
}
}
{
if (NETWORK::NETWORK_IS_PLAYER_MUTED_BY_ME(selectedPlayerinf ? ui_slectedPlayer : ui_currentPlayer))
{
char buf[30];
snprintf(buf, sizeof(buf), "~w~Muted Me: ~s~Yes");
drawTextxxx2(buf, 0, XScaleInfo + 0.4, YScaleInfo, Subx2, Suby2, 0, 50, 255, 255, false);
}

else if (!NETWORK::NETWORK_IS_PLAYER_MUTED_BY_ME(selectedPlayerinf ? ui_slectedPlayer : ui_currentPlayer))
{
char buf[30];
snprintf(buf, sizeof(buf), "~w~Muted Me: ~s~No");
drawTextxxx2(buf, 0, XScaleInfo + 0.4, YScaleInfo, Subx2, Suby2, 0, 50, 255, 255, false);
}
}
{
if (NETWORK::NETWORK_IS_PLAYER_CONNECTED(selectedPlayerinf ? ui_slectedPlayer : ui_currentPlayer))
{
char buf[30];
snprintf(buf, sizeof(buf), "~r~Is Connected: ~w~Yes");
drawTextxxx2(buf, 0, XScaleInfo + 0.06, YScaleInfo, Subx2, Suby2, 0, 50, 255, 255, false);
}

else if (!NETWORK::NETWORK_IS_PLAYER_CONNECTED(selectedPlayerinf ? ui_slectedPlayer : ui_currentPlayer))
{
char buf[30];
snprintf(buf, sizeof(buf), "~r~Is Connected: ~w~Negative");
drawTextxxx2(buf, 0, XScaleInfo + 0.06, YScaleInfo, Subx2, Suby2, 0, 50, 255, 255, false);
}
}
{
if (NETWORK::IS_PLAYER_IN_CUTSCENE(selectedPlayerinf ? ui_slectedPlayer : ui_currentPlayer))
{
char buf[30];
snprintf(buf, sizeof(buf), "~r~In Cutscene: ~w~Yes");
drawTextxxx2(buf, 0, XScaleInfo + 0.08, YScaleInfo, Subx2, Suby2, 0, 50, 255, 255, false);
}

else if (!NETWORK::IS_PLAYER_IN_CUTSCENE(selectedPlayerinf ? ui_slectedPlayer : ui_currentPlayer))
{
char buf[30];
snprintf(buf, sizeof(buf), "~r~In Cutscene: ~w~No");
drawTextxxx2(buf, 0, XScaleInfo + 0.08, YScaleInfo, Subx2, Suby2, 0, 50, 255, 255, false);
}
}
{
if (ENTITY::IS_ENTITY_DEAD(selectedPlayerinf ? ui_slectedPlayer : ui_currentPlayer))
{
char buf[30];
snprintf(buf, sizeof(buf), "~r~Is Dead: ~w~Yes");
drawTextxxx2(buf, 0, XScaleInfo + 0.011, YScaleInfo, Subx2, Suby2, 0, 50, 255, 255, false);
}

else if (!ENTITY::IS_ENTITY_DEAD(selectedPlayerinf ? ui_slectedPlayer : ui_currentPlayer))
{
char buf[30];
snprintf(buf, sizeof(buf), "~r~In Cutscene: ~w~No");
drawTextxxx2(buf, 0, XScaleInfo + 0.011, YScaleInfo, Subx2, Suby2, 0, 50, 255, 255, false);
}
}
{
if (NETWORK::NETWORK_HAS_PLAYER_STARTED_TRANSITION(selectedPlayerinf ? ui_slectedPlayer : ui_currentPlayer))
{
char buf[30];
snprintf(buf, sizeof(buf), "~r~In Transition: ~w~Yes");
drawTextxxx2(buf, 0, XScaleInfo + 0.014, YScaleInfo, Subx2, Suby2, 0, 50, 255, 255, false);
}

else if (!NETWORK::NETWORK_HAS_PLAYER_STARTED_TRANSITION(selectedPlayerinf ? ui_slectedPlayer : ui_currentPlayer))
{
char buf[30];
snprintf(buf, sizeof(buf), "~r~In Transition: ~w~No");
drawTextxxx2(buf, 0, XScaleInfo + 0.014, YScaleInfo, Subx2, Suby2, 0, 50, 255, 255, false);
}
}
{
if (NETWORK::NETWORK_ARE_TRANSITION_DETAILS_VALID(selectedPlayerinf ? ui_slectedPlayer : ui_currentPlayer))
{
char buf[30];
snprintf(buf, sizeof(buf), "~r~Transition Info Valid: ~w~Yes");
drawTextxxx2(buf, 0, XScaleInfo + 0.016, YScaleInfo, Subx2, Suby2, 0, 50, 255, 255, false);
}

else if (!NETWORK::NETWORK_ARE_TRANSITION_DETAILS_VALID(PLAYER::GET_PLAYER_PED(selectedPlayerinf ? ui_slectedPlayer : ui_currentPlayer)))
{
char buf[30];
snprintf(buf, sizeof(buf), "~r~Transition Info Valid: ~w~No");
drawTextxxx2(buf, 0, XScaleInfo + 0.016, YScaleInfo, Subx2, Suby2, 0, 50, 255, 255, false);
}
}
{
if (NETWORK::_NETWORK_PLAYER_IS_CHEATER(PLAYER::GET_PLAYER_PED(selectedPlayerinf ? ui_slectedPlayer : ui_currentPlayer)))
{
char buf[30];
snprintf(buf, sizeof(buf), "~r~Cheater: ~w~Yes");
drawTextxxx2(buf, 0, XScaleInfo + 0.018, YScaleInfo, Subx2, Suby2, 0, 50, 255, 255, false);
}

else if (!NETWORK::_NETWORK_PLAYER_IS_CHEATER(selectedPlayerinf ? ui_slectedPlayer : ui_currentPlayer))
{
char buf[30];
snprintf(buf, sizeof(buf), "~r~Cheater: ~w~No");
drawTextxxx2(buf, 0, XScaleInfo + 0.018, YScaleInfo, Subx2, Suby2, 0, 50, 255, 255, false);
}
}
}


[/slide]
Reply
#2
build it and take a pic
Reply
#3
(02-28-2019 - 04:16 AM)dabexclusive Wrote: [hide]


Code:
void pinfo()
{
/*DRAW ENTITY OF PLAYER VISUAL*/
//ARROWS
int maker = 2;//22;
float maker2 = 1.40;
Vector3 Loc = ENTITY::GET_OFFSET_FROM_ENTITY_IN_WORLD_COORDS(PLAYER::GET_PLAYER_PED(selectedPlayer), 0.0, 0.0, 1.5f);
GRAPHICS::DRAW_MARKER(maker, Loc.x, Loc.y, Loc.z, 0.0f, 0.0f, 0.0f, 180.0f, 0.0f, 0.0f, 0.7f, 0.7f, 0.7f, 0, 50, 255, 50, 1, 1, 2, 1, 0, 0, true);
int maker1 = 1;//27;
float maker12 = -2.46;
GRAPHICS::DRAW_MARKER(maker1, Loc.x, Loc.y, Loc.z + maker12, 0.0f, 0.0f, 0.0f, 180.0f, 0.0f, 0.0f, 0.7f, 0.7f, 0.7f, 0, 50, 255, 50, 0, 1, 2, 1, 0, 0, true);
//LINE
Vector3 Pos777;
Vector3 Pos2;
int PedID = PLAYER::GET_PLAYER_PED(selectedPlayer);
//Pos777 = ENTITY::GET_ENTITY_COORDS(PLAYER::PLAYER_PED_ID(), false);
//Pos2 = ENTITY::GET_ENTITY_COORDS(PedID, false);
GRAPHICS::DRAW_LINE(Pos777.x, Pos777.y, Pos777.z, Pos2.x, Pos2.y, Pos2.z, 0, 50, 255, 255);
/*DRAW PLAYER INFO*/
char CurrentWeapon = WEAPON::GET_CURRENT_PED_WEAPON_ENTITY_INDEX(PLAYER::GET_PLAYER_PED(selectedPlayer));
Hash equippedWeapon;
WEAPON::GET_CURRENT_PED_WEAPON(PLAYER::GET_PLAYER_PED(selectedPlayer), &equippedWeapon, 1);

//int AmmoNeeded = WEAPON::GET_AMMO_IN_PED_WEAPON(PLAYER::GET_PLAYER_PED(selectedPlayer), equippedWeapon);
//int BestWeapon = WEAPON::GET_BEST_PED_WEAPON(PLAYER::GET_PLAYER_PED(selectedPlayer), 0);

char *playerName = PLAYER::GET_PLAYER_NAME(PLAYER::GET_PLAYER_PED(selectedPlayer));
int CurrentUID = getUID(playerName);
//std::string s = std::to_string(CurrentUID);
///std::array<char, 10> str;
///std::to_chars(str.data(), str.data() + str.size(), 42);
std::string s = std::to_string(CurrentUID);
char const *pchar = s.c_str();  //use char const* as target type
//char* peace = pchar;
//int UIDStringed = STRING_TO_INT(CurrentUID, &UIDStringed);
///char* UID = NETWORK::NETWORK_PLAYER_GET_USERID(PLAYER::GET_PLAYER_PED(selectedPlayer), (char*)*pchar);
//int UIDStringed = GAMEPLAY::STRING_TO_INT(UID, &UIDStringed);

char WheelType = VEHICLE::GET_VEHICLE_WHEEL_TYPE(PED::GET_VEHICLE_PED_IS_IN(PLAYER::GET_PLAYER_PED(selectedPlayer), 1));
int JoinTrans = NETWORK::NETWORK_JOIN_TRANSITION(PLAYER::GET_PLAYER_PED(selectedPlayer));
//int IsConnected = NETWORK::NETWORK_IS_PLAYER_CONNECTED(PLAYER::GET_PLAYER_PED(selectedPlayer));
//int InScene = NETWORK::IS_PLAYER_IN_CUTSCENE(PLAYER::GET_PLAYER_PED(selectedPlayer));
int UserDead = ENTITY::IS_ENTITY_DEAD(PLAYER::GET_PLAYER_PED(selectedPlayer));
//bool isAlive = !PLAYER::IS_PLAYER_DEAD(selectedPlayer);
char InTransition = NETWORK::NETWORK_HAS_PLAYER_STARTED_TRANSITION(PLAYER::GET_PLAYER_PED(selectedPlayer));
int ValidDetails = NETWORK::NETWORK_ARE_TRANSITION_DETAILS_VALID(PLAYER::GET_PLAYER_PED(selectedPlayer));
int Active = NETWORK::NETWORK_IS_PLAYER_ACTIVE(PLAYER::GET_PLAYER_PED(selectedPlayer));
int IsPlaying = PLAYER::IS_PLAYER_PLAYING(PLAYER::GET_PLAYER_PED(selectedPlayer));


int VehicleHealth = ENTITY::GET_ENTITY_HEALTH(PED::GET_VEHICLE_PED_IS_IN(PLAYER::GET_PLAYER_PED(selectedPlayer), 0));
int VehicleSpeed = ENTITY::GET_ENTITY_SPEED(PED::GET_VEHICLE_PED_IS_IN(PLAYER::GET_PLAYER_PED(selectedPlayer), 0));
int playerHealt = ENTITY::GET_ENTITY_HEALTH(PLAYER::GET_PLAYER_PED(selectedPlayer));
Vector3 Pos = ENTITY::GET_ENTITY_COORDS(PLAYER::GET_PLAYER_PED(selectedPlayer), 1);
int playerCar = PED::GET_VEHICLE_PED_IS_IN(PLAYER::GET_PLAYER_PED(selectedPlayer), 0);
int dev = DLC2::IS_DLC_PRESENT(2532323046);
int Cheater = NETWORK::_NETWORK_PLAYER_IS_CHEATER(PLAYER::GET_PLAYER_PED(selectedPlayer)); //
int InInterior = INTERIOR::GET_INTERIOR_FROM_ENTITY(PLAYER::GET_PLAYER_PED(selectedPlayer));
int Damaged = VEHICLE::_IS_VEHICLE_DAMAGED(PED::GET_VEHICLE_PED_IS_IN(PLAYER::GET_PLAYER_PED(selectedPlayer), 0));
int netHandle;
NETWORK::NETWORK_HANDLE_FROM_PLAYER(selectedPlayer, &netHandle, 13);
int thisPlayersCar = ENTITY::GET_ENTITY_MODEL(playerCar);
char buf[1000];
char buf2[1000];

snprintf(buf2, sizeof(buf2), "~r~Name: ~s~%s", PLAYER::GET_PLAYER_NAME(selectedPlayer));
drawTextxxx2(buf2, 0, 0.2f, 0.775f, Subx2, Suby2, 0, 50, 255, 255, false);

snprintf(buf, sizeof(buf), "~r~Position: ~o~X.~w~ %f ~o~Y.~w~ %f ~o~Z.~w~ %f", Pos.x, Pos.y, Pos.z);
drawTextxxx2(buf, 0, 0.2f, 0.80f, Subx2, Suby2, 0, 50, 255, 255, false);

snprintf(buf2, sizeof(buf2), "~r~Vehicle: ~w~%s", VEHICLE::GET_DISPLAY_NAME_FROM_VEHICLE_MODEL(thisPlayersCar));
drawTextxxx2(buf2, 0, 0.2f, 0.825f, Subx2, Suby2, 0, 50, 255, 255, false);

snprintf(buf2, sizeof(buf2), "~r~Weapon Type: ~w~%s", WEAPON::GET_WEAPONTYPE_MODEL(CurrentWeapon));
drawTextxxx2(buf2, 0, 0.2f, 0.835f, Subx2, Suby2, 0, 50, 255, 255, false);

snprintf(buf2, sizeof(buf2), "~r~Weapon: ~w~%s", WEAPON::GET_WEAPONTYPE_MODEL(equippedWeapon));
drawTextxxx2(buf2, 0, 0.4f, 0.835f, Subx2, Suby2, 0, 50, 255, 255, false);

snprintf(buf2, sizeof(buf2), "~r~Wheel Type: ~w~%s", VEHICLE::GET_VEHICLE_WHEEL_TYPE(PLAYER::GET_PLAYER_PED(selectedPlayer)));
drawTextxxx2(buf2, 0, 0.2f, 0.122f, Subx2, Suby2, 0, 50, 255, 255, false);

snprintf(buf2, sizeof(buf2), "~r~Ammo: ~w~%s", WEAPON::GET_AMMO_IN_PED_WEAPON(PLAYER::GET_PLAYER_PED(selectedPlayer), CurrentWeapon));
drawTextxxx2(buf2, 0, 0.2f, 0.848f, Subx2, Suby2, 0, 50, 255, 255, false);

snprintf(buf2, sizeof(buf2), "~r~Favorite Weapon: ~w~%s", WEAPON::GET_BEST_PED_WEAPON(PLAYER::GET_PLAYER_PED(selectedPlayer), 0));
drawTextxxx2(buf2, 0, 0.2f, 0.852f, Subx2, Suby2, 0, 50, 255, 255, false);

snprintf(buf2, sizeof(buf2), "~r~UID: ~w~%s", NETWORK::NETWORK_PLAYER_GET_USERID(PLAYER::GET_PLAYER_PED(selectedPlayer), (char*)*pchar));
drawTextxxx2(buf2, 0, 0.2f, 0.854f, Subx2, Suby2, 0, 50, 255, 255, false);

// snprintf(buf2, sizeof(buf2), "~r~Favorite Weapon: ~w~%s", WEAPON::GET_BEST_PED_WEAPON(PLAYER::GET_PLAYER_PED(selectedPlayer), 0));
//drawTextxxx2(buf2, 0, 0.2f, 0.852f, Subx2, Suby2, 0, 50, 255, 255, false);

{
if (NETWORK::NETWORK_PLAYER_HAS_HEADSET(selectedPlayer))
{
char buf[30];
snprintf(buf, sizeof(buf), "~w~Headset: ~s~Has Headset");
drawTextxxx2(buf, 0, 0.2f, 0.85f, Subx2, Suby2, 0, 50, 255, 255, false);
}

else if (!NETWORK::NETWORK_PLAYER_HAS_HEADSET(selectedPlayer))
{
char buf[30];
snprintf(buf, sizeof(buf), "~w~Headset: ~s~No Headset");
drawTextxxx2(buf, 0, 0.2f, 0.85, Subx2, Suby2, 0, 50, 255, 255, false);
}
}
{
if (NETWORK::NETWORK_IS_PLAYER_MUTED_BY_ME(selectedPlayer))
{
char buf[30];
snprintf(buf, sizeof(buf), "~w~Muted Me: ~s~Yes");
drawTextxxx2(buf, 0, 0.2f, 0.875, Subx2, Suby2, 0, 50, 255, 255, false);
}

else if (!NETWORK::NETWORK_IS_PLAYER_MUTED_BY_ME(selectedPlayer))
{
char buf[30];
snprintf(buf, sizeof(buf), "~r~Muted Me: ~s~No");
drawTextxxx2(buf, 0, 0.2f, 0.875, Subx2, Suby2, 0, 50, 255, 255, false);
}
}
{
if (NETWORK::NETWORK_IS_PLAYER_CONNECTED(selectedPlayer))
{
char buf[30];
snprintf(buf, sizeof(buf), "~r~Is Connected: ~w~Yes");
drawTextxxx2(buf, 0, 0.2f, 0.133, Subx2, Suby2, 0, 50, 255, 255, false);
}

else if (!NETWORK::NETWORK_IS_PLAYER_CONNECTED(selectedPlayer))
{
char buf[30];
snprintf(buf, sizeof(buf), "~r~Is Connected: ~w~Negative");
drawTextxxx2(buf, 0, 0.2f, 0.133, Subx2, Suby2, 0, 50, 255, 255, false);
}
}
{
if (NETWORK::IS_PLAYER_IN_CUTSCENE(selectedPlayer))
{
char buf[30];
snprintf(buf, sizeof(buf), "~r~In Cutscene: ~w~Yes");
drawTextxxx2(buf, 0, 0.2f, 0.166, Subx2, Suby2, 0, 50, 255, 255, false);
}

else if (!NETWORK::IS_PLAYER_IN_CUTSCENE(selectedPlayer))
{
char buf[30];
snprintf(buf, sizeof(buf), "~r~In Cutscene: ~w~No");
drawTextxxx2(buf, 0, 0.2f, 0.166, Subx2, Suby2, 0, 50, 255, 255, false);
}
}
{
if (ENTITY::IS_ENTITY_DEAD(PLAYER::GET_PLAYER_PED(selectedPlayer)))
{
char buf[30];
snprintf(buf, sizeof(buf), "~r~Is Dead: ~w~Yes");
drawTextxxx2(buf, 0, 0.2f, 0.188, Subx2, Suby2, 0, 50, 255, 255, false);
}

else if (!ENTITY::IS_ENTITY_DEAD(PLAYER::GET_PLAYER_PED(selectedPlayer)))
{
char buf[30];
snprintf(buf, sizeof(buf), "~r~In Cutscene: ~w~No");
drawTextxxx2(buf, 0, 0.2f, 0.188, Subx2, Suby2, 0, 50, 255, 255, false);
}
}
{
if (NETWORK::NETWORK_HAS_PLAYER_STARTED_TRANSITION(PLAYER::GET_PLAYER_PED(selectedPlayer)))
{
char buf[30];
snprintf(buf, sizeof(buf), "~r~In Transition: ~w~Yes");
drawTextxxx2(buf, 0, 0.2f, 0.210, Subx2, Suby2, 0, 50, 255, 255, false);
}

else if (!NETWORK::NETWORK_HAS_PLAYER_STARTED_TRANSITION(PLAYER::GET_PLAYER_PED(selectedPlayer)))
{
char buf[30];
snprintf(buf, sizeof(buf), "~r~In Transition: ~w~No");
drawTextxxx2(buf, 0, 0.2f, 0.210, Subx2, Suby2, 0, 50, 255, 255, false);
}
}
{
if (NETWORK::NETWORK_ARE_TRANSITION_DETAILS_VALID(PLAYER::GET_PLAYER_PED(selectedPlayer)))
{
char buf[30];
snprintf(buf, sizeof(buf), "~r~Transition Info Valid: ~w~Yes");
drawTextxxx2(buf, 0, 0.2f, 0.233, Subx2, Suby2, 0, 50, 255, 255, false);
}

else if (!NETWORK::NETWORK_ARE_TRANSITION_DETAILS_VALID(PLAYER::GET_PLAYER_PED(selectedPlayer)))
{
char buf[30];
snprintf(buf, sizeof(buf), "~r~Transition Info Valid: ~w~No");
drawTextxxx2(buf, 0, 0.2f, 0.233, Subx2, Suby2, 0, 50, 255, 255, false);
}
}
{
if (NETWORK::_NETWORK_PLAYER_IS_CHEATER(PLAYER::GET_PLAYER_PED(selectedPlayer)))
{
char buf[30];
snprintf(buf, sizeof(buf), "~r~Cheater: ~w~Yes");
drawTextxxx2(buf, 0, 0.2f, 0.266, Subx2, Suby2, 0, 50, 255, 255, false);
}

else if (!NETWORK::_NETWORK_PLAYER_IS_CHEATER(PLAYER::GET_PLAYER_PED(selectedPlayer)))
{
char buf[30];
snprintf(buf, sizeof(buf), "~r~Cheater: ~w~No");
drawTextxxx2(buf, 0, 0.2f, 0.266, Subx2, Suby2, 0, 50, 255, 255, false);
}
}
}

bool PLAYER_PLAYING_INF_SELC = false;
void PlayerInfo(bool selectedPlayerinf)
{
Player ui_slectedPlayer = selectedPlayerinf, ui_currentPlayer = (currentOption - 1);
/*DRAW ENTITY OF PLAYER VISUAL*/
//ARROWS
int maker = 22;
float maker2 = 1.40;
Vector3 Loc = ENTITY::GET_OFFSET_FROM_ENTITY_IN_WORLD_COORDS(PLAYER::GET_PLAYER_PED(selectedPlayerinf ? ui_slectedPlayer : ui_currentPlayer), 0.0, 0.0, 1.5f);
GRAPHICS::DRAW_MARKER(maker, Loc.x, Loc.y, Loc.z, 0.0f, 0.0f, 0.0f, 180.0f, 0.0f, 0.0f, 0.7f, 0.7f, 0.7f, 0, 50, 255, 50, 1, 1, 2, 1, 0, 0, 0);
int maker1 = 27;
float maker12 = -2.46;
GRAPHICS::DRAW_MARKER(maker1, Loc.x, Loc.y, Loc.z + maker12, 0.0f, 0.0f, 0.0f, 180.0f, 0.0f, 0.0f, 0.7f, 0.7f, 0.7f, 0, 50, 255, 50, 0, 1, 2, 1, 0, 0, 0);
//LINE
Vector3 Pos777;
Vector3 Pos2;
int PedID = PLAYER::GET_PLAYER_PED(selectedPlayerinf ? ui_slectedPlayer : ui_currentPlayer);
Pos777 = ENTITY::GET_ENTITY_COORDS(PLAYER::PLAYER_PED_ID(), false);
Pos2 = ENTITY::GET_ENTITY_COORDS(PedID, false);
GRAPHICS::DRAW_LINE(Pos777.x, Pos777.y, Pos777.z, Pos2.x, Pos2.y, Pos2.z, 0, 50, 255, 255);
/*DRAW PLAYER INFO*/
int playerHealt = ENTITY::GET_ENTITY_HEALTH(PLAYER::GET_PLAYER_PED(selectedPlayerinf ? ui_slectedPlayer : ui_currentPlayer));
Vector3 Pos = ENTITY::GET_ENTITY_COORDS(PLAYER::GET_PLAYER_PED(selectedPlayerinf ? ui_slectedPlayer : ui_currentPlayer), 1);
int playerCar = PED::GET_VEHICLE_PED_IS_IN(PLAYER::GET_PLAYER_PED(selectedPlayerinf ? ui_slectedPlayer : ui_currentPlayer), 0);
int thisPlayersCar = ENTITY::GET_ENTITY_MODEL(playerCar);
char CurrentWeapon = WEAPON::GET_CURRENT_PED_WEAPON_ENTITY_INDEX(PLAYER::GET_PLAYER_PED(selectedPlayer));
Hash equippedWeapon;
WEAPON::GET_CURRENT_PED_WEAPON(PLAYER::GET_PLAYER_PED(selectedPlayer), &equippedWeapon, 1);
char buf[1000];
char buf2[1000];

snprintf(buf2, sizeof(buf2), "~w~Username: ~w~%s", PLAYER::GET_PLAYER_NAME(selectedPlayerinf ? ui_slectedPlayer : ui_currentPlayer));
drawTextxxx2(buf2, 0, 0.2f, YScaleInfo, Subx2, Suby2, 0, 50, 255, 255, false);

snprintf(buf, sizeof(buf), "~r~Coordinates: ~w~X = %f, Y = %f, Z = %f", Pos.x, Pos.y, Pos.z);
drawTextxxx2(buf, 0, 0.2f, YScaleInfo + 0.02, Subx2, Suby2, 0, 50, 255, 255, false);

snprintf(buf2, sizeof(buf2), "~r~Vehicle: ~w~%s", VEHICLE::GET_DISPLAY_NAME_FROM_VEHICLE_MODEL(thisPlayersCar));
drawTextxxx2(buf2, 0, 0.2f, YScaleInfo + 0.2 + 0.02, Subx2, Suby2, 0, 50, 255, 255, false);

snprintf(buf2, sizeof(buf2), "~r~Weapon Type: ~w~%s", WEAPON::GET_WEAPONTYPE_MODEL(CurrentWeapon));
drawTextxxx2(buf2, 0, 0.2f, YScaleInfo + 0.2 + 0.04, Subx2, Suby2, 0, 50, 255, 255, false);

snprintf(buf2, sizeof(buf2), "~r~Weapon: ~w~%s", WEAPON::GET_WEAPONTYPE_MODEL(equippedWeapon));
drawTextxxx2(buf2, 0, 0.4f, YScaleInfo + 0.08, Subx2, Suby2, 0, 50, 255, 255, false);

snprintf(buf2, sizeof(buf2), "~r~Wheel Type: ~w~%s", VEHICLE::GET_VEHICLE_WHEEL_TYPE(PLAYER::GET_PLAYER_PED(selectedPlayer)));
drawTextxxx2(buf2, 0, 0.2f, YScaleInfo + 0.010, Subx2, Suby2, 0, 50, 255, 255, false);

snprintf(buf2, sizeof(buf2), "~r~Ammo: ~w~%s", WEAPON::GET_AMMO_IN_PED_WEAPON(PLAYER::GET_PLAYER_PED(selectedPlayer), CurrentWeapon));
drawTextxxx2(buf2, 0, 0.2f, YScaleInfo + 0.012, Subx2, Suby2, 0, 50, 255, 255, false);

snprintf(buf2, sizeof(buf2), "~r~Favorite Weapon: ~w~%s", WEAPON::GET_BEST_PED_WEAPON(PLAYER::GET_PLAYER_PED(selectedPlayer), 0));
drawTextxxx2(buf2, 0, 0.2f, YScaleInfo + 0.014, Subx2, Suby2, 0, 50, 255, 255, false);

snprintf(buf2, sizeof(buf2), "~r~UID: ~w~%s", NETWORK::NETWORK_PLAYER_GET_USERID(PLAYER::GET_PLAYER_PED(selectedPlayer), ""));
drawTextxxx2(buf2, 0, 0.2f, YScaleInfo + 0.016, Subx2, Suby2, 0, 50, 255, 255, false);

{
if (NETWORK::NETWORK_PLAYER_HAS_HEADSET(selectedPlayerinf ? ui_slectedPlayer : ui_currentPlayer))
{
char buf[30];
snprintf(buf, sizeof(buf), "~w~Headset: ~s~Has Headset");
drawTextxxx2(buf, 0, XScaleInfo + 0.2f, YScaleInfo, Subx2, Suby2, 0, 50, 255, 255, false);
}

else if (!NETWORK::NETWORK_PLAYER_HAS_HEADSET(selectedPlayerinf ? ui_slectedPlayer : ui_currentPlayer))
{
char buf[30];
snprintf(buf, sizeof(buf), "~w~Headset: ~s~No Headset");
drawTextxxx2(buf, 0, XScaleInfo + 0.2f, YScaleInfo, Subx2, Suby2, 0, 50, 255, 255, false);
}
}
{
if (NETWORK::NETWORK_IS_PLAYER_MUTED_BY_ME(selectedPlayerinf ? ui_slectedPlayer : ui_currentPlayer))
{
char buf[30];
snprintf(buf, sizeof(buf), "~w~Muted Me: ~s~Yes");
drawTextxxx2(buf, 0, XScaleInfo + 0.4, YScaleInfo, Subx2, Suby2, 0, 50, 255, 255, false);
}

else if (!NETWORK::NETWORK_IS_PLAYER_MUTED_BY_ME(selectedPlayerinf ? ui_slectedPlayer : ui_currentPlayer))
{
char buf[30];
snprintf(buf, sizeof(buf), "~w~Muted Me: ~s~No");
drawTextxxx2(buf, 0, XScaleInfo + 0.4, YScaleInfo, Subx2, Suby2, 0, 50, 255, 255, false);
}
}
{
if (NETWORK::NETWORK_IS_PLAYER_CONNECTED(selectedPlayerinf ? ui_slectedPlayer : ui_currentPlayer))
{
char buf[30];
snprintf(buf, sizeof(buf), "~r~Is Connected: ~w~Yes");
drawTextxxx2(buf, 0, XScaleInfo + 0.06, YScaleInfo, Subx2, Suby2, 0, 50, 255, 255, false);
}

else if (!NETWORK::NETWORK_IS_PLAYER_CONNECTED(selectedPlayerinf ? ui_slectedPlayer : ui_currentPlayer))
{
char buf[30];
snprintf(buf, sizeof(buf), "~r~Is Connected: ~w~Negative");
drawTextxxx2(buf, 0, XScaleInfo + 0.06, YScaleInfo, Subx2, Suby2, 0, 50, 255, 255, false);
}
}
{
if (NETWORK::IS_PLAYER_IN_CUTSCENE(selectedPlayerinf ? ui_slectedPlayer : ui_currentPlayer))
{
char buf[30];
snprintf(buf, sizeof(buf), "~r~In Cutscene: ~w~Yes");
drawTextxxx2(buf, 0, XScaleInfo + 0.08, YScaleInfo, Subx2, Suby2, 0, 50, 255, 255, false);
}

else if (!NETWORK::IS_PLAYER_IN_CUTSCENE(selectedPlayerinf ? ui_slectedPlayer : ui_currentPlayer))
{
char buf[30];
snprintf(buf, sizeof(buf), "~r~In Cutscene: ~w~No");
drawTextxxx2(buf, 0, XScaleInfo + 0.08, YScaleInfo, Subx2, Suby2, 0, 50, 255, 255, false);
}
}
{
if (ENTITY::IS_ENTITY_DEAD(selectedPlayerinf ? ui_slectedPlayer : ui_currentPlayer))
{
char buf[30];
snprintf(buf, sizeof(buf), "~r~Is Dead: ~w~Yes");
drawTextxxx2(buf, 0, XScaleInfo + 0.011, YScaleInfo, Subx2, Suby2, 0, 50, 255, 255, false);
}

else if (!ENTITY::IS_ENTITY_DEAD(selectedPlayerinf ? ui_slectedPlayer : ui_currentPlayer))
{
char buf[30];
snprintf(buf, sizeof(buf), "~r~In Cutscene: ~w~No");
drawTextxxx2(buf, 0, XScaleInfo + 0.011, YScaleInfo, Subx2, Suby2, 0, 50, 255, 255, false);
}
}
{
if (NETWORK::NETWORK_HAS_PLAYER_STARTED_TRANSITION(selectedPlayerinf ? ui_slectedPlayer : ui_currentPlayer))
{
char buf[30];
snprintf(buf, sizeof(buf), "~r~In Transition: ~w~Yes");
drawTextxxx2(buf, 0, XScaleInfo + 0.014, YScaleInfo, Subx2, Suby2, 0, 50, 255, 255, false);
}

else if (!NETWORK::NETWORK_HAS_PLAYER_STARTED_TRANSITION(selectedPlayerinf ? ui_slectedPlayer : ui_currentPlayer))
{
char buf[30];
snprintf(buf, sizeof(buf), "~r~In Transition: ~w~No");
drawTextxxx2(buf, 0, XScaleInfo + 0.014, YScaleInfo, Subx2, Suby2, 0, 50, 255, 255, false);
}
}
{
if (NETWORK::NETWORK_ARE_TRANSITION_DETAILS_VALID(selectedPlayerinf ? ui_slectedPlayer : ui_currentPlayer))
{
char buf[30];
snprintf(buf, sizeof(buf), "~r~Transition Info Valid: ~w~Yes");
drawTextxxx2(buf, 0, XScaleInfo + 0.016, YScaleInfo, Subx2, Suby2, 0, 50, 255, 255, false);
}

else if (!NETWORK::NETWORK_ARE_TRANSITION_DETAILS_VALID(PLAYER::GET_PLAYER_PED(selectedPlayerinf ? ui_slectedPlayer : ui_currentPlayer)))
{
char buf[30];
snprintf(buf, sizeof(buf), "~r~Transition Info Valid: ~w~No");
drawTextxxx2(buf, 0, XScaleInfo + 0.016, YScaleInfo, Subx2, Suby2, 0, 50, 255, 255, false);
}
}
{
if (NETWORK::_NETWORK_PLAYER_IS_CHEATER(PLAYER::GET_PLAYER_PED(selectedPlayerinf ? ui_slectedPlayer : ui_currentPlayer)))
{
char buf[30];
snprintf(buf, sizeof(buf), "~r~Cheater: ~w~Yes");
drawTextxxx2(buf, 0, XScaleInfo + 0.018, YScaleInfo, Subx2, Suby2, 0, 50, 255, 255, false);
}

else if (!NETWORK::_NETWORK_PLAYER_IS_CHEATER(selectedPlayerinf ? ui_slectedPlayer : ui_currentPlayer))
{
char buf[30];
snprintf(buf, sizeof(buf), "~r~Cheater: ~w~No");
drawTextxxx2(buf, 0, XScaleInfo + 0.018, YScaleInfo, Subx2, Suby2, 0, 50, 255, 255, false);
}
}
}


[/slide]
jokes lmaoo
Reply

Users browsing: 1 Guest(s)