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| | {{FuncDescription|Destroy a web UI made with [[CreateWebUI]].}} | ||
{{FuncSyntax|DestroyWebUI(web)}} | {{FuncSyntax|DestroyWebUI(web)}} | ||
{{FuncParameters}} | {{FuncParameters}} | ||
{{FuncParam|web| | {{FuncParam|web|The web identifier.}} | ||
{{FuncReturnValue| | {{FuncReturnValue|This function returs nothing.}} | ||
== Example == | == Example == | ||
<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}} | ||
{{Template:WebFunctions}} |
Latest revision as of 13:00, 20 November 2019
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)