DestroyWebUI: Difference between revisions

From Onset Developer Wiki
(Created page with "{{Info|Function|Client|1.0}} {{FuncDescription|__EDIT_ME__}} {{FuncSyntax|DestroyWebUI(web)}} {{FuncParameters}} {{FuncParam|web|__EDIT_ME__}} {{FuncReturnValue|__EDIT_ME_...")
 
No edit summary
 
Line 1: Line 1:
{{Info|Function|Client|1.0}}
{{Info|Function|Client|1.0}}


{{FuncDescription|__EDIT_ME__}}
{{FuncDescription|Destroy a web UI made with [[CreateWebUI]].}}


{{FuncSyntax|DestroyWebUI(web)}}
{{FuncSyntax|DestroyWebUI(web)}}


{{FuncParameters}}
{{FuncParameters}}
{{FuncParam|web|__EDIT_ME__}}
{{FuncParam|web|The web identifier.}}


{{FuncReturnValue|__EDIT_ME__}}
{{FuncReturnValue|This function returs nothing.}}


== Example ==
== Example ==
__EDIT_ME__
<syntaxhighlight lang="Lua>
scoreboard = 0
 
AddEvent("OnPackageStart", function()
scoreboard = CreateWebUI(0.0, 0.0, 0.0, 0.0, 5, 10)
end)
 
AddEvent("OnPackageStop", function()
DestroyWebUI(scoreboard)
end)
</syntaxhighlight>


{{RelatedFunctions}}
{{RelatedFunctions}}
__EDIT_ME__
{{Template:WebFunctions}}

Latest revision as of 13:00, 20 November 2019

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