i have made my loadingurl it shows the player name and mapname...how do i make it so it does the downloads at the bottom of the screen
like the ones from my fastdl server
Thanks guys
Mike
loadingurl
-
- New to forums
- Posts: 8
- https://www.youtube.com/channel/UC40BgXanDqOYoVCYFDSTfHA
- Joined: Wed Mar 06, 2013 7:32 pm
-
- New to forums
- Posts: 11
- Joined: Tue Oct 29, 2013 10:10 am
Re: loadingurl
http://wiki.garrysmod.com/page/Loading_URL should be able to help you.
The page says this under JavaScript Functions:
The page says this under JavaScript Functions:
Hope this helped and let me know if you need anything else!There are several JavaScript functions which are called directly by Garry's Mod. To use these, simply create a function with that name in your page - it will be called when your page loads. //Code: Select all
Called when the loading screen finishes loading all assets. function GameDetails( servername, serverurl, mapname, maxplayers, steamid, gamemode ) {}
Code: Select all
// Called when a file starts downloading. The filename includes the entire path of the file; // for example "materials/models/bobsModels/car.mdl". function DownloadingFile( fileName ) {}
Code: Select all
// Called when something happens. This might be "Initialising Game Data", "Sending Client Info", etc. function SetStatusChanged( status ) {}
Code: Select all
// Called at the start, tells us how many files need to be downloaded in total. function SetFilesTotal( total ) {}
Code: Select all
// Called when the number of files to download changes. function SetFilesNeeded( needed ) {}