OnPackageStart

From Onset Developer Wiki
Revision as of 14:49, 27 January 2020 by BlueMountains (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
OnPackageStart

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

Description

Package was started and its scripts loaded. Use this event to initialize your script. For instance connecting to a database.

Syntax

OnPackageStart()

Example

local function OnPackageStart()
	print(GetPackageName().." started")
end
AddEvent("OnPackageStart", OnPackageStart)

See also