DestroyWebUI

From Onset Developer Wiki
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