Jump to content

Search the Community

Showing results for tags 'monitor optimizinig'.

  • 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
    • User Guides
    • Open Source Contributors
    • Suggestions
    • Ban appeals
  • General MTA
    • News
    • Media
    • Site/Forum/Discord/Mantis/Wiki related
    • MTA Chat
    • Other languages
  • MTA Community
    • Scripting
    • Maps
    • Resources
    • Other Creations & GTA modding
    • Competitive gameplay
    • Servers
  • Other
    • General
    • Multi Theft Auto 0.5r2
    • Third party GTA mods
  • Archive
    • Archived Items
    • Trash

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


Member Title


Gang


Location


Occupation


Interests

Found 1 result

  1. Hello! I started lua programming in MTA so, I got a problem, and I don't understand the other topics. Just send the code, and I will read it, and understand it. And if you can descript it pls do it. How to optimize this code on every screen? local x,y = guiGetScreenSize() oX, oY = 1920, 1080 function mainRender() local health, armor = getElementHealth(localPlayer), getPedArmor(localPlayer) local h, m = getTime() if h < 10 then h = "0" .. h end if m < 10 then m = "0" .. m end dxDrawRectangle(1590/oX*x, 30/oY*y, 300/oX*x, 100/oY*y 0x7F000000) dxDrawRectangle(1600/oX*x, 40/oY*y, 280*healt/100/oX*x, 10/oY*y, tocolor(255, 0, 0))-- élet dxDrawRectangle(1600/oX*x, 60/oY*y, 280*armor/100/oX*x, 10/lY*y, tocolor(0, 0, 255))-- pajzs dxDrawText(h .. ":" .. m, 1600, 70, _, _, _, 2, "pricedown", "left", "top") --idő end addEventHandler("OnClientRender", root, mainrender)
×
×
  • Create New...