isDuiReady
Client
Tells whether a dui's page has finished loading.
bool isDuiReady(dui dui)
Parameters
| Name | Type | Description |
|---|---|---|
| dui | dui | The 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)