OnPackageStop: Difference between revisions

From Onset Developer Wiki
No edit summary
No edit summary
 
(One intermediate revision by one other user not shown)
Line 6: Line 6:


== Example ==
== Example ==
__EDIT_ME__
<syntaxhighlight lang="Lua">
AddEvent("OnPackageStop", function()
 
-- Do some cleanup here
 
end)
</syntaxhighlight>


{{RelatedFunctions}}
{{RelatedFunctions}}
{{ServerEvents}}
{{PackageServerEvents}}

Latest revision as of 19:29, 30 August 2020

OnPackageStop

Type: Event
Context: Server & Client
Introduced: v1.0

Description

Package is being stopped. Cleanup your allocated resources here. At this point all timers started by this package have been killed already. Also plugins were notified about the package unload.

Syntax

OnPackageStop()

Example

AddEvent("OnPackageStop", function()

	-- Do some cleanup here

end)

See also