Jump to content

طلب كود لصوره


yazan

Recommended Posts

شلون اخليها مع المارك

yazan = createMarker( 137, -88, 2, "cylinder", 3, 255, 255, 255, 150 ) 
  
  
addEventHandler( "onClientRender", root, 
    function() 
    if myImage then 
         dxDrawImage( 100, 350, 300, 350, myImage ) 
            end 
    end) 
     
addEventHandler( "onClientResourceStart", root, 
    function() 
        if not myImage then 
            myImage = dxCreateTexture( "images/1.png" )  
        else         
            destroyElement( myImage )                
            myImage = nil 
        end 
    end 
) 

Link to comment

local yazan = createMarker( 137, -88, 2, "cylinder", 3, 255, 255, 255, 150 ) 
  
local white = tocolor(255,255,255,255) 
function dxDrawImage3D(x,y,z,w,h,m,c,r,...) 
        local lx, ly, lz = x+w, y+h, (z+tonumber(r or 0)) or z 
    return dxDrawMaterialLine3D(x,y,z, lx, ly, lz, m, h, c or white, ...) 
end 
  
local Image = dxCreateTexture("FilePath") 
addEventHandler("onClientRender",getRootElement(), 
    function() 
         local xm,ym,zm = getElementPosition ( yazan ) 
        dxDrawImage3D(xm,ym,zm,1,1,Image) 
    end 
) 

لم يتم التجربة .. كلنت

Link to comment
مشكور اخوي لكن شلون اعدل الاحداث

فوق تحت ....الخ

 dxDrawImage3D(xm,ym,zm,1,1,Image) 

تشوف

zm

سوي فيها +

مثلا

 dxDrawImage3D(xm,ym,zm +2,1,1,Image) 

راح ترتفع

و تشوف 1 ,1 هذي الارتفاع و العرض ! تقدر تغير و عشان تنقص تسوي -

 dxDrawImage3D(xm,ym,zm -1,1,1,Image) 

و جرب !

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...