IsPackageStarted: Difference between revisions

From Onset Developer Wiki
No edit summary
No edit summary
 
Line 11: Line 11:


== Example ==
== Example ==
__EDIT_ME__
<syntaxhighlight lang="Lua>
local packageName = "dev"
print("Package state: " .. (IsPackageStarted(packageName) and "ON" or "OFF"))
</syntaxhighlight>


{{RelatedFunctions}}
{{RelatedFunctions}}

Latest revision as of 14:35, 26 June 2021

IsPackageStarted

Type: Function
Context: Server
Introduced: v1.0

Description

Checks whether a package is started.

Syntax

IsPackageStarted(PackageName)

Parameters

  • PackageName
    The name of the package.

Return Value

  • Returns true if the package is started.

Example

local packageName = "dev"
print("Package state: " .. (IsPackageStarted(packageName) and "ON" or "OFF"))

See also