Jump to content

-[question]- استفسار في كود


Recommended Posts

  
addEventHandler ( "onClientResourceStart", resourceRoot, 
    function (  ) 
        for _,v in ipairs ( downloadList ) do 
            downloadFile ( tostring ( v [ 1 ] ) ) 
        end 
    end 
) 
-------------------------------------------------------------------------- 
addEventHandler ( "onClientFileDownloadComplete", root, 
    function ( fileName, success ) 
        if ( source == resourceRoot ) then 
            for _,v in ipairs ( downloadList ) do 
                if ( success ) then 
                    if ( fileName == tostring ( v [ 1 ] ) ) then 
                        if ( string.find ( fileName, ".txd" ) ) then 
                            txd = engineLoadTXD ( tostring ( v [ 1 ] ) ) 
                            engineImportTXD ( txd, tonumber ( v [ 2 ] ) ) 
                        else 
                            dff = engineLoadDFF ( tostring ( v [ 1 ] ), tonumber ( v [ 2 ] ) ) 
                            engineReplaceModel ( dff, tonumber ( v [ 2 ] ) ) 
                        end 
                    end 
                end 
            end 
        end 
    end 
) 

هذا الكود حملت موتر لقيته موجود فيه ممكن وش الفايده من هذا الكود

هل هو يخفي التحميل؟

ولا

فآيدته غير

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