Skip to content

IsWebAvailable

Whether this game runs the web layer with the server’s interface in force.

true when the player’s web layer runs and the server has an interface it has sent, so its frames can be shown. false in every other case - with no web layer, while the interface is still arriving - and a script that has a second way to show a screen (a Lua one) uses it then.

IsWebAvailable()

boolean - true when the frames can be shown

if IsWebAvailable() then
ShowWebFrame("login")
else
showLuaLogin() -- the script's own screen, drawn with the game's UI functions
end

IsWebFrameReady · ShowWebFrame · the Web interface group of the index