M MY Multiplayer: Wiki
Side
Kind

setDuiUrl

Client

Takes a dui to another address.

bool setDuiUrl(dui dui, string url)

Parameters

NameTypeDescription
duiduiThe dui.
urlstringThe new address.

Returns

true once navigation starts. false with an argument that is not a dui (logs a warning).

Until the new address has loaded, isDuiReady returns false, and sendDuiMessage messages not yet delivered are dropped.

Example

local dui = createDui("https://example.com", 800, 600)
addCommandHandler("tv", function(_, url)
    setDuiUrl(dui, url)
end)

See also