DestroyWebUI

From Onset Developer Wiki
Revision as of 13:00, 20 November 2019 by 28days (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
DestroyWebUI

Type: Function
Context: Client
Introduced: v1.0

Description

Destroy a web UI made with CreateWebUI.

Syntax

DestroyWebUI(web)

Parameters

  • web
    The web identifier.

Return Value

  • This function returs nothing.

Example

scoreboard = 0

AddEvent("OnPackageStart", function()
	scoreboard = CreateWebUI(0.0, 0.0, 0.0, 0.0, 5, 10)
end)

AddEvent("OnPackageStop", function()
	DestroyWebUI(scoreboard)
end)

See also