Jump to content

Search the Community

Showing results for tags 'help pls'.

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

  1. Sticmy

    Image World

    Guys, I need help when it comes to putting an image on the world as I did, I don't like it In this image as well as it is placed in that position when you move away you see it the same, without enlarging it or anything like that it is totally static Here is another image at the time when I walk away it gets bigger I did it in 2 ways but in those 2 ways I can't find a way to do it as I want it to be totally static even when I walk away at 500 meters Code: local TextureFile = nil local ImagesTable = { {1834.3446044922, -2398.0639648438, 13.5546875, "x.png"}, } addEventHandler("onClientResourceStart", resourceRoot, function() for _, texture in ipairs(ImagesTable) do TextureFile = DxTexture(texture[4]) end end) addEventHandler("onClientRender", getRootElement(), function() local pos = Vector3(localPlayer.position) for _, v in ipairs(ImagesTable) do local dist = math.sqrt( ( pos.x - v[1] ) ^ 2 + ( pos.y - v[2] ) ^ 2 + ( pos.z - v[3] ) ^ 2 ) if dist >= 0 and dist <= 900 then if isLineOfSightClear( pos.x, pos.y, pos.z, v[1], v[2], v[3], false, false, false, false, false, false, false,localPlayer ) then local x, y = getScreenFromWorldPosition( v[1], v[2], v[3]) if x and y then print(x, y) dxDrawImage(x-80, y-120, 120, 120, TextureFile, 0, 0, 0, tocolor(255, 255, 255, 255)) end end end end end) -- destroyTexture addEventHandler("onClientResourceStop", resourceRoot, function() if isElement(TextureFile) then TextureFile:destroy() TextureFile = nil; end end) --Another way I tried but couldn't --[[ addEventHandler("onClientRender", getRootElement(), function() local pos = Vector3(localPlayer.position) local x, y, z = getCameraTarget() for i, v in ipairs(ImagesTable) do local distance = getDistanceBetweenPoints3D(pos.x, pos.y, pos.z, v[1], v[2], v[3]) if distance >= 0 and distance <= 200 then dxDrawMaterialLine3D(v[1], v[2], v[3] + 1, v[1], v[2], v[3], TextureFile, 1, tocolor( 255, 255, 255, 255 )) end end end) ]]
  2. سلام عليكم بدي لعبة تشبه فورتنايت و فيها جرافيك خيالي بس بشرط تكون تشتغل على ذي المواصفات لأنه جهازي متوسط 32 bits 2 gb Ram Windows 7 ملاحظة : لا حد يقلي حمل H1Z1 أو pubg أو Creative Destrection ~
×
×
  • Create New...