Jump to content

كود تحميل


Recommended Posts

اظن في واحد طلب قبلك وبرستيج عطآه ذذ,

-- # Client Side ~ 
addEventHandler('onClientResourceStart',getResourceRootElement( getThisResource ( ) ), 
    function ( ) 
        aTimer = setTimer ( 
                function (  ) 
                    if not isTransferBoxActive (    ) then 
                        triggerServerEvent ( 'aDestroyDisplay',localPlayer ) 
                        if isTimer ( aTimer ) then 
                        killTimer ( aTimer ) 
                    aTimer = nil 
                end 
            end 
        end,100,0 
        ) 
    end 
) 

-- # Server Side ~ 
addEventHandler('onPlayerJoin',getRootElement(), 
    function (      ) 
         aDisplay = textCreateDisplay (    )       
         textDisplayAddObserver ( aDisplay, source )             
         local aText = textCreateTextItem ( 'Welcome',0.5,0.5,'high',255,0,0,255,4,'center','center',255 ) 
         textDisplayAddText ( aDisplay, aText )   
    end 
) 
  
addEvent('aDestroyDisplay',true) 
addEventHandler('aDestroyDisplay',getRootElement(), 
    function (      ) 
    if textDisplayIsObserver( aDisplay, source ) then 
        textDisplayRemoveObserver( aDisplay, source ) 
        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...