DestroyWebUI

From Onset Developer Wiki
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.
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