• Announcements

    • jhxp

      Forums are online again after a maintenance.   18/03/17

      MTA Forums maintenance is completed, although some automatic time-heavy tasks are still in process and will be finished eventually in background. Expect some features such as Forum Search to not display all results until all processes are finished. Please let us know if you spot a forum feature that worked correctly before the maintenance but does not work anymore now. Thanks. --MTA Team

Search the Community

Showing results for tags 'guieditor'.



More search options

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • Multi Theft Auto: San Andreas 1.x
    • Support for MTA:SA 1.x
    • Open Source Contributors
    • Suggestions
  • General MTA
    • News
    • Media
    • Site/Forum/IRC/Mantis/Wiki related
    • MTA Chat
    • Other languages
  • community.mtasa.com
    • Scripting
    • Maps
    • Resources
    • Other Creations
    • Competitive gameplay
    • Servers
  • Other
    • General
    • Multi Theft Auto 0.5r2
    • Third party GTA mods
  • Archive
    • Archived Items
    • Trash
  • Private Bugtracker

Found 1 result

  1. HUD

    Hi. I'm trying to make a nice DXDRAW hud. I'm using the "guieditor" resource for that. The problem is, when i make the hud at 1600x900 res, its looks nice, but when i change my resoultion to 1920x1080, the hud is looks like blured out. Anybody can help me please with this? here is 1600x900 here is at 1920x1080p here is the script. (THIS IS ONLY because of testing. --————————————————————————————————————————————————————————— --————————————————————————————————————————————————————————— local screenW,screenH = guiGetScreenSize() function HUD () dxDrawLine((screenW * 0.5994) - 1, (screenH * 0.5456) - 1, (screenW * 0.5994) - 1, screenH * 0.7111, tocolor(0, 0, 0, 255), 1, false) dxDrawLine(screenW * 0.7481, (screenH * 0.5456) - 1, (screenW * 0.5994) - 1, (screenH * 0.5456) - 1, tocolor(0, 0, 0, 255), 1, false) dxDrawLine((screenW * 0.5994) - 1, screenH * 0.7111, screenW * 0.7481, screenH * 0.7111, tocolor(0, 0, 0, 255), 1, false) dxDrawLine(screenW * 0.7481, screenH * 0.7111, screenW * 0.7481, (screenH * 0.5456) - 1, tocolor(0, 0, 0, 255), 1, false) dxDrawRectangle(screenW * 0.5994, screenH * 0.5456, screenW * 0.1487, screenH * 0.1656, tocolor(0, 0, 0, 100), false) dxDrawLine((screenW * 0.5994) - 1, (screenH * 0.5456) - 1, (screenW * 0.5994) - 1, screenH * 0.5733, tocolor(0, 0, 0, 255), 1, false) dxDrawLine(screenW * 0.7481, (screenH * 0.5456) - 1, (screenW * 0.5994) - 1, (screenH * 0.5456) - 1, tocolor(0, 0, 0, 255), 1, false) dxDrawLine((screenW * 0.5994) - 1, screenH * 0.5733, screenW * 0.7481, screenH * 0.5733, tocolor(0, 0, 0, 255), 1, false) dxDrawLine(screenW * 0.7481, screenH * 0.5733, screenW * 0.7481, (screenH * 0.5456) - 1, tocolor(0, 0, 0, 255), 1, false) dxDrawRectangle(screenW * 0.5994, screenH * 0.5456, screenW * 0.1487, screenH * 0.0278, tocolor(0, 0, 0, 100), false) dxDrawText("The time", screenW * 0.5994, screenH * 0.6833, screenW * 0.6581, screenH * 0.7111, tocolor(255, 255, 255, 255), 1.00, "default", "center", "center", false, false, false, false, false) dxDrawText("The date", screenW * 0.6894, screenH * 0.6833, screenW * 0.7481, screenH * 0.7111, tocolor(255, 255, 255, 255), 1.00, "default", "center", "center", false, false, false, false, false) end addEventHandler("onClientRender",getRootElement(),HUD)