Jump to content

#RooTs

Members
  • Posts

    1,990
  • Joined

  • Last visited

  • Days Won

    2

Everything posted by #RooTs

  1. what's wrong with this my function, the same happened with Armor ( it was for working with perfection ) if getElementHealth() ~= 0 then if getElementHealth() == 5 then dxDrawImage(x*0.785, y*0.200, 30, 35, "health/05.png", 0, 0, 0, tocolor(0, 0, 0, 255), true) if getElementHealth() == 10 then dxDrawImage(x*0.785, y*0.200, 30, 35, "health/10.png", 0, 0, 0, tocolor(0, 0, 0, 255), true) if getElementHealth() == 15 then dxDrawImage(x*0.785, y*0.200, 30, 35, "health/15.png", 0, 0, 0, tocolor(0, 0, 0, 255), true) if getElementHealth() == 20 then dxDrawImage(x*0.785, y*0.200, 30, 35, "health/20.png", 0, 0, 0, tocolor(0, 0, 0, 255), true) if getElementHealth() == 25 then dxDrawImage(x*0.785, y*0.200, 30, 35, "health/25.png", 0, 0, 0, tocolor(0, 0, 0, 255), true) if getElementHealth() == 30 then dxDrawImage(x*0.785, y*0.200, 30, 35, "health/30.png", 0, 0, 0, tocolor(0, 0, 0, 255), true) if getElementHealth() == 35 then dxDrawImage(x*0.785, y*0.200, 30, 35, "health/35.png", 0, 0, 0, tocolor(0, 0, 0, 255), true) if getElementHealth() == 40 then dxDrawImage(x*0.785, y*0.200, 30, 35, "health/40.png", 0, 0, 0, tocolor(0, 0, 0, 255), true) if getElementHealth() == 45 then dxDrawImage(x*0.785, y*0.200, 30, 35, "health/45.png", 0, 0, 0, tocolor(0, 0, 0, 255), true) if getElementHealth() == 50 then dxDrawImage(x*0.785, y*0.200, 30, 35, "health/50.png", 0, 0, 0, tocolor(0, 0, 0, 255), true) if getElementHealth() == 55 then dxDrawImage(x*0.785, y*0.200, 30, 35, "health/55.png", 0, 0, 0, tocolor(0, 0, 0, 255), true) if getElementHealth() == 60 then dxDrawImage(x*0.785, y*0.200, 30, 35, "health/60.png", 0, 0, 0, tocolor(0, 0, 0, 255), true) if getElementHealth() == 65 then dxDrawImage(x*0.785, y*0.200, 30, 35, "health/65.png", 0, 0, 0, tocolor(0, 0, 0, 255), true) if getElementHealth() == 70 then dxDrawImage(x*0.785, y*0.200, 30, 35, "health/70.png", 0, 0, 0, tocolor(0, 0, 0, 255), true) if getElementHealth() == 75 then dxDrawImage(x*0.785, y*0.200, 30, 35, "health/75.png", 0, 0, 0, tocolor(0, 0, 0, 255), true) if getElementHealth() == 80 then dxDrawImage(x*0.785, y*0.200, 30, 35, "health/80.png", 0, 0, 0, tocolor(0, 0, 0, 255), true) if getElementHealth() == 85 then dxDrawImage(x*0.785, y*0.200, 30, 35, "health/85.png", 0, 0, 0, tocolor(0, 0, 0, 255), true) if getElementHealth() == 90 then dxDrawImage(x*0.785, y*0.200, 30, 35, "health/90.png", 0, 0, 0, tocolor(0, 0, 0, 255), true) if getElementHealth() == 95 then dxDrawImage(x*0.785, y*0.200, 30, 35, "health/95.png", 0, 0, 0, tocolor(0, 0, 0, 255), true) if getElementHealth() == 100 then dxDrawImage(x*0.785, y*0.200, 30, 35, "health/100.png", 0, 0, 0, tocolor(0, 0, 0, 255), true) end end
  2. delete https://community.multitheftauto.com/in ... ls&id=6933 DONE
  3. #RooTs

    DX Panel Skills

    very nice Samy, I like of working with you
  4. tried this, not work dxDrawText("Text in DX", x*850, y*190, x*800, y*030, tocolor(A, B, C, 255), 1.1, "default-bold", "left", "top", false, false, true, false, false) setTimer( function() A,B,C = math.ramdom(0,255),math.ramdom(0,255),math.ramdom(0,255) end,1000,0)
  5. shows the complete example my friend, please. example in Wiki https://wiki.multitheftauto.com/wiki/GetTickCount not given to understand
  6. it is possible to manage color time? from to My line dxDrawText("Text in DX", x*850, y*190, x*800, y*030, tocolor(math.random(0, 255), math.random(0, 255), math.random(0, 255), 255), 1.1, "default-bold", "left", "top", false, false, true, false, false)
  7. try this, Add border size +2 pixels function dxDrawBorderedText( text, x, y, w, h, color, scale, font, alignX, alignY, clip, wordBreak, postGUI ) dxDrawText ( text, x - 2, y - 2, w - 2, h - 2, tocolor ( 0, 0, 0, 155 ), scale, font, alignX, alignY, clip, wordBreak, false ) -- black dxDrawText ( text, x + 2, y - 2, w + 2, h - 2, tocolor ( 0, 0, 0, 155 ), scale, font, alignX, alignY, clip, wordBreak, false ) dxDrawText ( text, x - 2, y + 2, w - 2, h + 2, tocolor ( 0, 0, 0, 155 ), scale, font, alignX, alignY, clip, wordBreak, false ) dxDrawText ( text, x + 2, y + 2, w + 2, h + 3, tocolor ( 0, 0, 0, 155 ), scale, font, alignX, alignY, clip, wordBreak, false ) dxDrawText ( text, x - 3, y, w - 3, h, tocolor ( 0, 0, 0, 155 ), scale, font, alignX, alignY, clip, wordBreak, false ) dxDrawText ( text, x + 3, y, w + 3, h, tocolor ( 0, 0, 0, 155 ), scale, font, alignX, alignY, clip, wordBreak, false ) dxDrawText ( text, x, y - 3, w, h - 3, tocolor ( 0, 0, 0, 155 ), scale, font, alignX, alignY, clip, wordBreak, false ) dxDrawText ( text, x, y + 3, w, h + 3, tocolor ( 0, 0, 0, 155 ), scale, font, alignX, alignY, clip, wordBreak, false ) dxDrawText ( text, x, y, w, h, color, scale, font, alignX, alignY, clip, wordBreak, postGUI ) end
  8. Not Description: https://community.multitheftauto.com/in ... ls&id=3899 DONE
  9. try this, add border in text, image look locais sWidth, sHeight = guiGetScreenSize ( ) local de sw, sh = 1280 , 960 local fontSize = ( 2,30 / sw ) * sWidth dxDrawText("km/h", 1089/sw*sWidth, 844/sh*sHeight, 1215/sw*sWidth, 905/sh*sHeight, tocolor(195, 195, 195, 255), fontSize,"pricedown", "left", "top", false, false, true, false, false) function dxDrawBorderedText(text, x, y, w, h, color, scale, font, alignX, alignY, clip, wordBreak, postGUI) dxDrawText(text, x - 2, y - 2, w - 2, h - 2, tocolor(0, 0, 0, 255), scale, font, alignX, alignY, clip, wordBreak, false) dxDrawText(text, x + 2, y - 2, w + 2, h - 2, tocolor(0, 0, 0, 255), scale, font, alignX, alignY, clip, wordBreak, false) dxDrawText(text, x - 2, y + 2, w - 2, h + 2, tocolor(0, 0, 0, 255), scale, font, alignX, alignY, clip, wordBreak, false) dxDrawText(text, x + 2, y + 2, w + 2, h + 2, tocolor(0, 0, 0, 255), scale, font, alignX, alignY, clip, wordBreak, false) dxDrawText(text, x - 1, y, w - 1, h, tocolor(0, 0, 0, 255), scale, font, alignX, alignY, clip, wordBreak, false) dxDrawText(text, x + 1, y, w + 1, h, tocolor(0, 0, 0, 255), scale, font, alignX, alignY, clip, wordBreak, false) dxDrawText(text, x, y - 1, w, h - 1, tocolor(0, 0, 0, 255), scale, font, alignX, alignY, clip, wordBreak, false) dxDrawText(text, x, y + 1, w, h + 1, tocolor(0, 0, 0, 255), scale, font, alignX, alignY, clip, wordBreak, false) dxDrawText(text, x, y, w, h, color, scale, font, alignX, alignY, clip, wordBreak, postGUI) end look my script https://community.multitheftauto.com/in ... ls&id=6561 EDITED
  10. why not create, in DX ( DX Panel )???
  11. try using the value "000" and "001" never value "0" guiSetSize (w, 001, altura, false)
  12. try using local sx,sy = guiGetScreenSize() local px,py = 1600,900 -- resolution screen local x,y = (sx/px), (sy/py) dxDrawText ( "" , x / 2 , y / 2 .... )
  13. Pessoas disponiveis em novo forum(Mta:sa) https://forum.multitheftauto.com.br (brasil)
  14. Not Work I use it ? function onThisResourceStart ( ) downloadFile ( "test.txt" ) end addEventHandler ( "onClientResourceStart", resourceRoot, onThisResourceStart )
  15. Of: txd = engineLoadTXD("400.txd") engineImportTXD(txd, 400) dff = engineLoadDFF("400.dff", 400) engineReplaceModel(dff, 400) To: txd = engineLoadTXD("http://NameSite.com/400.txd") engineImportTXD(txd, 400) dff = engineLoadDFF("http://NameSite.com/400.dff", 400) engineReplaceModel(dff, 400) Is it possible?
  16. already exists in the community, more continues sending https://community.multitheftauto.com/ind ... s&id=10128
×
×
  • Create New...