xRGamingx Posted February 1, 2018 Share Posted February 1, 2018 local screenW, screenH = guiGetScreenSize() addEventHandler("onClientRender", root, function() dxDrawRectangle(screenW * 0.3280, screenH * 0.4609, 469, 45, tocolor(0, 0, 0, 169), false) dxDrawLine(screenW * 0.3280, screenH * 0.4609, (screenW * 0.3280) + 469, ( screenH * 0.4609) + 0, tocolor(0, 0, 0, 254), 2, false) dxDrawLine(screenW * 0.3280, screenH * 0.5195, (screenW * 0.3280) + 469, ( screenH * 0.5195) + 0, tocolor(0, 0, 0, 254), 2, false) dxDrawLine(screenW * 0.6713, screenH * 0.4609, (screenW * 0.6713) + 0, ( screenH * 0.4609) + 45, tocolor(0, 0, 0, 254), 2, false) dxDrawLine((screenW * 0.3272) + 1, screenH * 0.4609, screenW * 0.3272, ( screenH * 0.4609) + 44, tocolor(0, 0, 0, 254), 2, false) dxDrawRectangle(screenW * 0.3280, screenH * 0.4609, 469, 45, tocolor(12, 251, 1, 254), false) ----dxDrawLoading - Green bar dxDrawText("Hacking the safe", 541 - 1, 370 - 1, 917 - 1, 399 - 1, tocolor(0, 0, 0, 255), 0.60, "bankgothic", "left", "top", false, false, false, false, false) dxDrawText("Hacking the safe", 541 + 1, 370 - 1, 917 + 1, 399 - 1, tocolor(0, 0, 0, 255), 0.60, "bankgothic", "left", "top", false, false, false, false, false) dxDrawText("Hacking the safe", 541 - 1, 370 + 1, 917 - 1, 399 + 1, tocolor(0, 0, 0, 255), 0.60, "bankgothic", "left", "top", false, false, false, false, false) dxDrawText("Hacking the safe", 541 + 1, 370 + 1, 917 + 1, 399 + 1, tocolor(0, 0, 0, 255), 0.60, "bankgothic", "left", "top", false, false, false, false, false) dxDrawText("Hacking the safe", screenW * 0.3960, screenH * 0.4818, (screenW * 0.3960) + 376, ( screenH * 0.4818) + 29, tocolor(255, 255, 255, 255), 0.60, "bankgothic", "left", "top", false, false, false, false, false) end ) Hello friends Someone helps me create this bar dxDrawLoading ? Plz Link to comment
Tails Posted February 1, 2018 Share Posted February 1, 2018 (edited) What part are you stuck with? Please provide some actual code so we can help you with it. Edited February 1, 2018 by Tails Link to comment
NeXuS™ Posted February 1, 2018 Share Posted February 1, 2018 local screenW, screenH = guiGetScreenSize() local loadPercent = 0 addEventHandler("onClientRender", root, function() if loadPercent < 100 then loadPercent = loadPercent + 1 end dxDrawRectangle(screenW * 0.3280, screenH * 0.4609, 469, 45, tocolor(0, 0, 0, 169), false) dxDrawLine(screenW * 0.3280, screenH * 0.4609, (screenW * 0.3280) + 469, ( screenH * 0.4609) + 0, tocolor(0, 0, 0, 254), 2, false) dxDrawLine(screenW * 0.3280, screenH * 0.5195, (screenW * 0.3280) + 469, ( screenH * 0.5195) + 0, tocolor(0, 0, 0, 254), 2, false) dxDrawLine(screenW * 0.6713, screenH * 0.4609, (screenW * 0.6713) + 0, ( screenH * 0.4609) + 45, tocolor(0, 0, 0, 254), 2, false) dxDrawLine((screenW * 0.3272) + 1, screenH * 0.4609, screenW * 0.3272, ( screenH * 0.4609) + 44, tocolor(0, 0, 0, 254), 2, false) dxDrawRectangle(screenW * 0.3280, screenH * 0.4609, 469/100*loadPercent, 45, tocolor(12, 251, 1, 254), false) ----dxDrawLoading - Green bar dxDrawText("Hacking the safe", 541 - 1, 370 - 1, 917 - 1, 399 - 1, tocolor(0, 0, 0, 255), 0.60, "bankgothic", "left", "top", false, false, false, false, false) dxDrawText("Hacking the safe", 541 + 1, 370 - 1, 917 + 1, 399 - 1, tocolor(0, 0, 0, 255), 0.60, "bankgothic", "left", "top", false, false, false, false, false) dxDrawText("Hacking the safe", 541 - 1, 370 + 1, 917 - 1, 399 + 1, tocolor(0, 0, 0, 255), 0.60, "bankgothic", "left", "top", false, false, false, false, false) dxDrawText("Hacking the safe", 541 + 1, 370 + 1, 917 + 1, 399 + 1, tocolor(0, 0, 0, 255), 0.60, "bankgothic", "left", "top", false, false, false, false, false) dxDrawText("Hacking the safe", screenW * 0.3960, screenH * 0.4818, (screenW * 0.3960) + 376, ( screenH * 0.4818) + 29, tocolor(255, 255, 255, 255), 0.60, "bankgothic", "left", "top", false, false, false, false, false) end) Try to understand the code. Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now