Jump to content

Custom Image or Text on the screen while loading


'LinKin

Recommended Posts

Hello,

I was wondering if there's a way to put an image or a text on the screen while the player is downloading. Instead of the blackscreen, also, is it possible to give a resource a priority? So that it starts before other resources.

Thanks.

Link to comment

As far as ik, you cant, since all the resources will try to be loaded upon join, you can just make a small resource for start, and then just make a huge loadstring with other files... Just giving some ideas... Anyways, this will be easier at 1.4 with downloadFile.

Link to comment
  
function wait ( ) 
   waiting = textCreateDisplay()                            
   textDisplayAddObserver ( waiting, source )                   
   local waitText = textCreateTextItem ( "Please Wait", 0.5, 0.5 )    
   textDisplayAddText (waiting, source )                    
end 
addEventHandler("onPlayerJoin",root,wait) 
  
function unwait () 
textDestroyDisplay(waiting) 
end 
addEvent("onUnwait",true) 
addEventHandler("onUnwait",root,unwait) 
  
--client 
  
destroy = true 
  
addEventHandler("onClientResourceStart",root, 
function () 
if destroy  then 
triggerServerEvent("onUnwait",localPlayer) 
destroy = false 
end 
  
  

i think this must work.

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