Advertisement
Fastmapler

BLG Loading screen

Jan 26th, 2018
217
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.78 KB | None | 0 0
  1. Loading Screens
  2.  
  3. Glass allows gamemode creators to set custom loading backgrounds for users loading their gamemode. Setup is quite simple:
  4.  
  5. registerLoadingScreen(%url, %fileType[, %crc]);
  6.  
  7. Calling this method inside your gamemode makes clients (who have loading backgrounds enabled) download the specified image URL. Any jpeg, png, or jpg image is supported. Note that Glass has to be running on the server.
  8.  
  9. %crc is an optional field allowing the client to cache your server's preview image. If a client already has the loading image with the given CRC downloaded, the image will load automatically without needing to be downloaded.
  10.  
  11. Example:
  12.  
  13. registerLoadingScreen("http://mysite.com/image.png", "png");
  14.  
  15. The background must be below 2MB in file size, or else it won't load!
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement