G.GetLoadingURL

From GMod Wiki

Revision as of 19:35, 3 April 2011 by Non-Robot (Talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
Function
Syntax GetLoadingURL( )
Where is this used?
Description:
Returns the current loading url.
Returns: String
Part of Library: Global Functions
Realm: Menu.png
BBCode Link: [b][url=http://wiki.garrysmod.com/?title=G.GetLoadingURL]G.GetLoadingURL [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b]



Examples

DescriptionGets the loading url and prints it to console.
Used onMenu.png
Code
print("The loading url is " .. GetLoadingURL())
OutputIf the loading url in not overridden by server, it will return something like this:
The loading url is file://c:\program files\steam\steamapps\<your user name>\garrysmod\garrysmod\resource\loading\index.html
Personal tools
Namespaces
Variants
Actions
Navigation
Lua Scripting
Functions
Hooks
Toolbox