M MY Multiplayer: Wiki
Side
Kind

isDuiReady

Client

Tells whether a dui's page has finished loading.

bool isDuiReady(dui dui)

Parameters

NameTypeDescription
duiduiThe dui.

Returns

true if the page has loaded. false while it loads, or with an argument that is not a dui (logs a warning).

Example

local dui = createDui("https://example.com", 800, 600)
setTimer(function()
    outputDebugString(isDuiReady(dui) and "loaded" or "still loading")
end, 2000, 1)

See also