Good I have a failure that, even though I try not to fix it, is to go online and the player info blinks
if (NewDesign)
{
GRAPHICS::DRAW_RECT(0.5805f, 0.1763f, 0.1846f, 0.0627f, 0, 255, 255, 255);//Banner
GRAPHICS::DRAW_RECT(0.5805f, 0.4419f, 0.1842f, 0.4680f, backgroundRed, backgroundGreen, backgroundBlue, backgroundOpacity);//background
DrawSprite("timerbars", "lhs_bg", 0.5813f, 0.1763f, 0.1847f, 0.0627f, 0, 171, 0, 255, 255);//Color Right menu
GRAPHICS::DRAW_RECT(0.4895f, 0.4428f, 0.0016f, 0.4681f, 0, 255, 255, 255);//left
GRAPHICS::DRAW_RECT(0.6720f, 0.4428f, 0.0016f, 0.4681f, 171, 0, 255, 255);//right
GRAPHICS::DRAW_RECT(0.5810f, 0.6771f, 0.1846f, 0.00046f, 0, 255, 255, 255);//down
DrawSprite("timerbars", "lhs_bg", 0.5813f, 0.6771f, 0.1846f, 0.00046f, 0, 171, 0, 255, 255);//Color Right menu
}
else
{
GRAPHICS::DRAW_RECT(0.5805f, 0.4419f, 0.1842f, 0.4680f, 16, 16, 16, 100);//background
GRAPHICS::DRAW_RECT(0.5805f, 0.1763f, 0.1846f, 0.0627f, bannerRectRed, bannerRectGreen, bannerRectBlue, bannerRectOpacity);//Banner
GRAPHICS::DRAW_RECT(0.4895f, 0.4428f, 0.0016f, 0.4681f, bannerRectRed, bannerRectGreen, bannerRectBlue, bannerRectOpacity);//left
GRAPHICS::DRAW_RECT(0.6720f, 0.4428f, 0.0016f, 0.4681f, bannerRectRed, bannerRectGreen, bannerRectBlue, bannerRectOpacity);//right
GRAPHICS::DRAW_RECT(0.5810f, 0.6771f, 0.1846f, 0.00046f, bannerRectRed, bannerRectGreen, bannerRectBlue, bannerRectOpacity);//down
}
Player ui_slectedPlayer = selectedPlayer;
Player ui_currentPlayer = currentOption - 1;
Player OnlinePlayer = PLAYER::GET_PLAYER_PED(isSelected ? ui_slectedPlayer : ui_currentPlayer);
Vector3 Coords = ENTITY::GET_ENTITY_COORDS(OnlinePlayer, 1);
drawText(PLAYER::GET_PLAYER_NAME(isSelected ? ui_slectedPlayer : ui_currentPlayer), 6, 0.5430f, 0.1530f, 0.7f, 0.7f, 100, 100, 100, 255, false);
if (NewDesign)
{
GRAPHICS::DRAW_RECT(0.5805f, 0.1763f, 0.1846f, 0.0627f, 0, 255, 255, 255);//Banner
GRAPHICS::DRAW_RECT(0.5805f, 0.4419f, 0.1842f, 0.4680f, backgroundRed, backgroundGreen, backgroundBlue, backgroundOpacity);//background
DrawSprite("timerbars", "lhs_bg", 0.5813f, 0.1763f, 0.1847f, 0.0627f, 0, 171, 0, 255, 255);//Color Right menu
GRAPHICS::DRAW_RECT(0.4895f, 0.4428f, 0.0016f, 0.4681f, 0, 255, 255, 255);//left
GRAPHICS::DRAW_RECT(0.6720f, 0.4428f, 0.0016f, 0.4681f, 171, 0, 255, 255);//right
GRAPHICS::DRAW_RECT(0.5810f, 0.6771f, 0.1846f, 0.00046f, 0, 255, 255, 255);//down
DrawSprite("timerbars", "lhs_bg", 0.5813f, 0.6771f, 0.1846f, 0.00046f, 0, 171, 0, 255, 255);//Color Right menu
}
else
{
GRAPHICS::DRAW_RECT(0.5805f, 0.4419f, 0.1842f, 0.4680f, 16, 16, 16, 100);//background
GRAPHICS::DRAW_RECT(0.5805f, 0.1763f, 0.1846f, 0.0627f, bannerRectRed, bannerRectGreen, bannerRectBlue, bannerRectOpacity);//Banner
GRAPHICS::DRAW_RECT(0.4895f, 0.4428f, 0.0016f, 0.4681f, bannerRectRed, bannerRectGreen, bannerRectBlue, bannerRectOpacity);//left
GRAPHICS::DRAW_RECT(0.6720f, 0.4428f, 0.0016f, 0.4681f, bannerRectRed, bannerRectGreen, bannerRectBlue, bannerRectOpacity);//right
GRAPHICS::DRAW_RECT(0.5810f, 0.6771f, 0.1846f, 0.00046f, bannerRectRed, bannerRectGreen, bannerRectBlue, bannerRectOpacity);//down
}
Player ui_slectedPlayer = selectedPlayer;
Player ui_currentPlayer = currentOption - 1;
Player OnlinePlayer = PLAYER::GET_PLAYER_PED(isSelected ? ui_slectedPlayer : ui_currentPlayer);
Vector3 Coords = ENTITY::GET_ENTITY_COORDS(OnlinePlayer, 1);
drawText(PLAYER::GET_PLAYER_NAME(isSelected ? ui_slectedPlayer : ui_currentPlayer), 6, 0.5430f, 0.1530f, 0.7f, 0.7f, 100, 100, 100, 255, false);