Luccas Posted March 21, 2019 Posted March 21, 2019 Então, eu quero colocar que o dxDrawRectangle fica abaixo do outro dxDrawRectangle como faço ? Olha como ele está: http://prntscr.com/n0r4f7. Eu quero que só fica uma parte embaixo Código: function DNL_Hud() for _, component in ipairs( components ) do setPlayerHudComponentVisible( component, false ) end dxDrawRectangle(x*835, y*40, x*521, y*34, tocolor(32, 32, 33), false) dxDrawRectangle(x*835, y*50, x*521, y*32, tocolor(150, 16, 148), false) dxDrawLine(x*835, y*74, x*1356, y*74, tocolor(0, 0, 0), x*2, false) dxDrawLine(x*998, y*73, x*998, y*40, tocolor(0, 0, 0), x*1, false) dxDrawLine(x*1170, y*74, x*1170, y*41, tocolor(0, 0, 0), x*1, false) O segundo dxDrawRectangle e a linha que eu quero que fique só um pedaço embaixo
Blaack Posted March 21, 2019 Posted March 21, 2019 48 minutes ago, Luccas said: Então, eu quero colocar que o dxDrawRectangle fica abaixo do outro dxDrawRectangle como faço ? Olha como ele está: http://prntscr.com/n0r4f7. Eu quero que só fica uma parte embaixo Código: function DNL_Hud() for _, component in ipairs( components ) do setPlayerHudComponentVisible( component, false ) end dxDrawRectangle(x*835, y*40, x*521, y*34, tocolor(32, 32, 33), false) dxDrawRectangle(x*835, y*50, x*521, y*32, tocolor(150, 16, 148), false) dxDrawLine(x*835, y*74, x*1356, y*74, tocolor(0, 0, 0), x*2, false) dxDrawLine(x*998, y*73, x*998, y*40, tocolor(0, 0, 0), x*1, false) dxDrawLine(x*1170, y*74, x*1170, y*41, tocolor(0, 0, 0), x*1, false) O segundo dxDrawRectangle e a linha que eu quero que fique só um pedaço embaixo Não entendi! Assim? function DNL_Hud() for _, component in ipairs( components ) do setPlayerHudComponentVisible( component, false ) end dxDrawRectangle(x*835, y*50, x*521, y*34, tocolor(32, 32, 33), false) dxDrawRectangle(x*835, y*50, x*521, y*34, tocolor(150, 16, 148), false) dxDrawLine(x*835, y*74, x*1356, y*74, tocolor(0, 0, 0), x*2, false) dxDrawLine(x*998, y*73, x*998, y*40, tocolor(0, 0, 0), x*1, false) dxDrawLine(x*1170, y*74, x*1170, y*41, tocolor(0, 0, 0), x*1, false)
#DeltaSCR Posted March 21, 2019 Posted March 21, 2019 Olá @Luccas, por favor, utilize corretamente o nosso fórum
Luccas Posted March 21, 2019 Author Posted March 21, 2019 ksksksk 52 minutes ago, #DaNiLiN said: DNL_Hud já sei que é minha hihi Iai, vai me ajudar?
Luccas Posted March 21, 2019 Author Posted March 21, 2019 19 hours ago, Sr Black said: Não entendi! Assim? function DNL_Hud() for _, component in ipairs( components ) do setPlayerHudComponentVisible( component, false ) end dxDrawRectangle(x*835, y*50, x*521, y*34, tocolor(32, 32, 33), false) dxDrawRectangle(x*835, y*50, x*521, y*34, tocolor(150, 16, 148), false) dxDrawLine(x*835, y*74, x*1356, y*74, tocolor(0, 0, 0), x*2, false) dxDrawLine(x*998, y*73, x*998, y*40, tocolor(0, 0, 0), x*1, false) dxDrawLine(x*1170, y*74, x*1170, y*41, tocolor(0, 0, 0), x*1, false) Black e pq tipo o segundo dxDrawRectangle, está em cima do primeiro. Eu só quero que fica uma linha roxa entende? (A linha roxa embaixo do primeiro Rectangle)
#DaNiLiN Posted March 21, 2019 Posted March 21, 2019 Seria isso? function DNL_Hud() dxDrawRectangle(x*835, y*50, x*521, y*34, tocolor(32, 32, 33), false) dxDrawRectangle(x*835, y*50, x*521, y*4, tocolor(150, 16, 148), false) dxDrawLine(x*835, y*74, x*1356, y*74, tocolor(0, 0, 0), x*2, false) dxDrawLine(x*998, y*73, x*998, y*40, tocolor(0, 0, 0), x*1, false) dxDrawLine(x*1170, y*74, x*1170, y*41, tocolor(0, 0, 0), x*1, false) end addEventHandler("onClientRender", root, DNL_Hud)
Luccas Posted March 21, 2019 Author Posted March 21, 2019 3 minutes ago, #DaNiLiN said: Seria isso? function DNL_Hud() dxDrawRectangle(x*835, y*50, x*521, y*34, tocolor(32, 32, 33), false) dxDrawRectangle(x*835, y*50, x*521, y*4, tocolor(150, 16, 148), false) dxDrawLine(x*835, y*74, x*1356, y*74, tocolor(0, 0, 0), x*2, false) dxDrawLine(x*998, y*73, x*998, y*40, tocolor(0, 0, 0), x*1, false) dxDrawLine(x*1170, y*74, x*1170, y*41, tocolor(0, 0, 0), x*1, false)endaddEventHandler("onClientRender", root, DNL_Hud) Olha como eu quero que fica abre a print http://prntscr.com/n16911 mais olha como o meu tá http://prntscr.com/n169e3
#DaNiLiN Posted March 21, 2019 Posted March 21, 2019 Então amigo, tu deve mexer na largura/altura do dxDrawRetangle. Dai Explicação pra tu entender melhor. startX: Posição (X) startY: Posição (Y) width: largura do retângulo height: altura do retângulo dxDrawRectangle ( startX, startY, width, height, tocolor ( 0, 0, 0, 150 ) ) -- Create our black transparent MOTD background Rectangle. BOA SORTE
Luccas Posted March 21, 2019 Author Posted March 21, 2019 4 minutes ago, #DaNiLiN said: Então amigo, tu deve mexer na largura/altura do dxDrawRetangle. Dai Explicação pra tu entender melhor. startX: Posição (X) startY: Posição (Y) width: largura do retângulo height: altura do retângulo dxDrawRectangle ( startX, startY, width, height, tocolor ( 0, 0, 0, 150 ) ) -- Create our black transparent MOTD background Rectangle. BOA SORTE Sim eu já tentei mudar a altura mais ele fica em cima do outro ainda
#DaNiLiN Posted March 21, 2019 Posted March 21, 2019 Se tu mudar a posição do retângulo correto não vai ficar em cima do outro.
Other Languages Moderators Lord Henry Posted March 21, 2019 Other Languages Moderators Posted March 21, 2019 (edited) Cara, isso é fácil resolver. Pelo menos da pra fazer igual aquela print que vc mandou como objetivo. Só fazer o retângulo roxo mais fino e mais em baixo. Se não é isso que vc quer, então ninguém sabe oq vc quer. local sx, sy = guiGetScreenSize() local x = sx/1366 local y = sy/768 function DNL_Hud() for _, component in ipairs( components ) do setPlayerHudComponentVisible( component, false ) end dxDrawRectangle(x*835, y*40, x*521, y*34, tocolor(32, 32, 33), false) -- Background dxDrawRectangle(x*835, y*75, x*521, y*6, tocolor(150, 16, 148), false) -- linha roxa dxDrawLine(x*835, y*74, x*1356, y*74, tocolor(0, 0, 0), x*2, false) -- linha horizontal dxDrawLine(x*998, y*73, x*998, y*40, tocolor(0, 0, 0), x*1, false) -- linha vertical 1 dxDrawLine(x*1170, y*73, x*1170, y*40, tocolor(0, 0, 0), x*1, false) -- linha vertical 2 end addEventHandler ("onClientRender", root, DNL_Hud) Edited March 21, 2019 by Lord Henry 1
#DaNiLiN Posted March 22, 2019 Posted March 22, 2019 É basicamente isso. Mas ele tava esperando alguém deixar prontinho pra ele kkk 1
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