OnPackageStop

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