Jump to content

طلب كود :


Recommended Posts

3d صورة

https://wiki.multitheftauto.com/wiki/DxDrawImage3D

3d كتابة

local marker = createMarker( ..... ) 
addEventHandler('onClientRender',root, 
    function() 
      local x,y,z = getElementPosition(marker) 
        local mX,mY,mZ = getCameraMatrix() 
          if ( getDistanceBetweenPoints3D( mX, mY,mZ,x,y,z ) <= 10 ) then 
            local wX,wY = getScreenFromWorldPosition(x-0.50,y,z + 0.85,0) 
              if wX and wY then 
                dxDrawText('Your Text',wX,wY,wX,wY,tocolor(255,255,0),1.5,'default-bold') 
           end 
        end 
    end 
) 

Link to comment
local face = dxCreateTexture("trollface.png") 
addEventHandler("onClientRender", root, 
    function() 
        dxDrawImage3D(0,0, 20, 20, 20, face, tocolor(255,255,255,255)) 
    end 

فمثلا هذي ,, اخذت من الويكي ممكن شرح

Link to comment
local face = dxCreateTexture("trollface.png") 
addEventHandler("onClientRender", root, 
    function() 
        dxDrawImage3D(0,0, 20, 20, 20, face, tocolor(255,255,255,255)) 
    end 

فمثلا هذي ,, اخذت من الويكي ممكن شرح

dxCreateTexture("trollface.png") 

ذي تجيب الصورة

trollface اسمها

  
 dxDrawImage3D(0,0, 20, 20, 20, face, tocolor(255,255,255,255)) 

ذي ترد الصورة كانها حقيقية

ثري دي

bool dxDraw3DImage ( float x, float y, float z, float width, float height, element material 

ذا المطلوب

الاولين الي بالكود هم الاحداثيات اول ثلاثة

x,y,z

و الاثنين الي قبل الارقمنت الاخير

width,height

طول و عرض الشي الي راح تخليه ثري دي

و اخر ارقمنت

material

الشي الي راح تخليه ثري دي

Edited by Guest
Link to comment
هذي احداثية زي الاوبجكت العادية ولا كيف؟
X/Y/Z: The start position of the 3D image, representing a coordinate in the GTA world.

getElementPosition ببساطة ذي الأحداثيات تقدر تاخذها عن طريق الفنكشن

مود الأدمنية و الفري روم يستخدم الفنكشن ذا يعني تقدر تاخذ الأحداثيات من المودات المذكورة

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...