Jump to content

Search the Community

Showing results for tags 'rectangle'.

  • 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 7 results

  1. How to set dxDraw to the back of the screen?
  2. I want to render a rectangle to the cursor, but the rectangle too far from the cursor.. How to fix this in my code? code: local sx_, sy_ = 1920, 1080 local sx__, sy__ = guiGetScreenSize() local xm, ym = sx__/sx_, sy__/sy_ function render() local screenx, screeny = getCursorPosition() dxDrawRectangle((sx_-687) * xm * screenx, (sy_/2+70) * ym * screeny, 170 * xm, 25 * ym,tocolor(255,181,64,80)) end addEventHandler("onClientRender",root,render) the problem:
  3. I want create a dxdraw rectangle and text on the map. But how to make this possible?
  4. XML

    [Question] Arrow

    hello i'm making an arrow that follows the front of the rectangle. but the problem is, it's working fine to me and it follows the front of it with no problems but the other players not seeing the arrow in the right position they see it in another position. Code: local screenW, screenH = guiGetScreenSize () addEventHandler ("onClientRender", root, function () local veh = getPedOccupiedVehicle (localPlayer) if (veh) then local hp = math.floor (getElementHealth (veh) / 10) local calcule_hp = (screenW * 0.9114) + (hp / 100 * screenW * 0.0805) - (screenW - 2995 * 0.9070 / 2) dxDrawRectangle (screenW * 0.9114, screenH * 0.9323, hp / 100 * screenW * 0.0805, screenH * 0.0117, tocolor (7, 247, 142, 209), false) dxDrawText ("HP: " .. hp .. "%", screenW * 0.8638, screenH * 0.9310, screenW * 0.8997, screenH * 0.9505, tocolor (7, 247, 142, 255), 1.00, "default", "center", "top", false, false, false, false, false) dxDrawImage (calcule_hp, screenH * 0.9206, screenW * 0.0095, screenH * 0.0117, "Images/arrow.png", 0, 0, 0, tocolor (255, 255, 255, 255), false) end end ) So any help please ?
  5. local start = getTickCount() local one, one1 = -300, 604 local two, two1 = 0, 604 local screenW, screenH = guiGetScreenSize() local text = "" local pic = "j" function draw() local x,y = interpolateBetween(one, one1, 0, two, two1, 0, (now - start) / ((start + 1500) - start), "Linear") local now = getTickCount() dxDrawRectangle(x,y, screenW * 0.2306, screenH * 0.0356, tocolor(0, 0, 0, 130), false) dxDrawText(" * "..text, x, y, screenW * 0.2340, screenH * 0.7044, tocolor(255, 255, 255, 255), 1.00, "default", "left", "center", false, false, false, true, false) end addEventHandler("onClientPlayerChangeNick", root, function(oldName, newName) addEventHandler("onClientRender", root,draw) text = string.format("#%02X%02X%02X", getPlayerNametagColor(source)) .. oldName .. " #FFffFFneve mostantól " .. string.format("#%02X%02X%02X", getPlayerNametagColor(source)) .. newName .. "" pic = "c" setTimer ( function() removeEventHandler("onClientRender", root, draw) end, 5000, 1 ) end ) this is my code. the dx things are working, just the animation does not working how to fix? sorry for my very bad english :C
  6. i want create a rounded rectangle for a radar background, but how? and how to make rounded too the radar map image?
  7. I want create a nametag script,but i don't know, how. How to place the dxdrawrectangle on my head?
×
×
  • Create New...