Jump to content

شرح dxDrawImage3D ؟


MrCor

Recommended Posts

حط هذا الكود في ملف كلنت ..

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 face = dxCreateTexture("trollface.png") 
addEventHandler("onClientRender", root, 
    function ( ) 
        dxDrawImage3D ( x, y, z, 20, 20, face, tocolor(255,255,255,255)) 
    end 
) 

x, y, z = الإحداثيات

20, 20 = الحجم

trollface.png = اسم الصورة

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