Jump to content

Search the Community

Showing results for tags 'dxdrawmaterialline3d'.

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

  1. Buenas, Queria saber quien me podria ayudar u orientar para poner una imagen debajo de un vehiculo. tipo sombra pero con una imagen, e visto que algunos manejan el dxDrawMaterialLine3D o con un shader, De ante mano gracias.
  2. Hello! I have question: "Is possible to create a rotation of image made by "dxDrawMaterialLine3D ?? "". Please fast return message.
  3. السلام عليكم ورحمة الله وبركاتة في مشكلة في كود انشاء صورة ان الصورة تيجي مقلوبة 180 درجة يعني الراس تككون تحت local img = dxCreateTexture("trollface.png") addEventHandler("onClientRender", root, function() -- x,y,z, targetx,targety,targetz,texture,width,color image = dxDrawMaterialLine3D (0,0,3,0,0,5,img, 5, tocolor(255,255,255,255)) end) حاولت اعدلها عن طريق setElementRotation(image ,rotX,rotY,rotZ) لكن ما ظبطت ممكن احد يعلمني وش المشكلة ؟
  4. Anyone help me ? My code; local minX = 2 tex = dxCreateTexture("texture.png") function test3DGUI() minX = getElementBoundingBox(localPlayer) x,y,z,lx,ly,lz,x2,y2,z2 = getPositionFromElementOffset(minX-1,0,minX+0.5,1) dxDrawMaterialLine3D(x2,y2,z2+0.5,x,y,z+0.5, tex, 1, tocolor(0,0,0,150),lx,ly,lz) dxDrawMaterialLine3D(x2,y2,z2+0.5,x,y,z2+0.32, tex, 1, tocolor(255,0,29,255),lx,ly,lz) local sx,sy = getScreenFromWorldPosition ( x2,y2,z2, 0 ) dxDrawText ( "3D text", sx, sy - 30, sx, sy - 30, tocolor(255,255,255,255), 1, "bankgothic", "center", "bottom", false, false, false ) end addEventHandler("onClientRender", root, test3DGUI) function getPositionFromElementOffset(offX,offY,offX2,offY2) local offZ = -0.5 local m = getElementMatrix ( localPlayer ) local x = offX * m[1][1] + offY * m[2][1] + offZ * m[3][1] + m[4][1] local y = offX * m[1][2] + offY * m[2][2] + offZ * m[3][2] + m[4][2] local z = offX * m[1][3] + offY * m[2][3] + offZ * m[3][3] + m[4][3] local x2 = offX2 * m[1][1] + offY2 * m[2][1] + offZ * m[3][1] + m[4][1] local y2 = offX2 * m[1][2] + offY2 * m[2][2] + offZ * m[3][2] + m[4][2] local z2 = offX2 * m[1][3] + offY2 * m[2][3] + offZ * m[3][3] + m[4][3] offZ = 0.5 local x3 = offX * m[1][1] + offY * m[2][1] + offZ * m[3][1] + m[4][1] local y3 = offX * m[1][2] + offY * m[2][2] + offZ * m[3][2] + m[4][2] local z3 = offX * m[1][3] + offY * m[2][3] + offZ * m[3][3] + m[4][3] return x, y, z, x2, y2, z2, x3, y3, z3 end
×
×
  • Create New...