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
 2117

Fix design

by carlos_20 - 04-01-2020 - 10:26 PM
#11
(04-02-2020 - 08:31 AM)carlos_20 Wrote: thank you very much i will try to see if i fix it

I don't know why you need 2 designs but whatever, this should do it.
Code:
//outside loops
bool NewDesign = true;
void Infobox(int player)
{
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
}
drawText(PLAYER::GET_PLAYER_NAME(player), 6, 0.5430f, 0.1530f, 0.7f, 0.7f, 100, 100, 100, 255, false)
}

//into player list submenu
Infobox(CurrentOption - 1);
Serozoid - FREE & FOREVER
Reply
#12
Thank you very much I already have it fixed you are some geniuses all
Reply
#13
(04-01-2020 - 10:26 PM)carlos_20 Wrote: 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);
This account is currently banned
Ban reason: Leeching and Spamming is not allowed, please read the forum Rules upon your return.
Reply

Users browsing: 1 Guest(s)