IsPackageStarted: Difference between revisions
From Onset Developer Wiki
Created page with "{{Info|Function|Server|1.0}} {{FuncDescription|Checks whether a package is started.}} {{FuncSyntax|IsPackageStarted(PackageName)}} {{FuncParameters}} {{FuncParam|PackageNam..." |
FlyingFork (talk | contribs) No edit summary |
||
(One intermediate revision by one other user not shown) | |||
Line 11: | Line 11: | ||
== Example == | == Example == | ||
<syntaxhighlight lang="Lua> | |||
local packageName = "dev" | |||
print("Package state: " .. (IsPackageStarted(packageName) and "ON" or "OFF")) | |||
</syntaxhighlight> | |||
{{RelatedFunctions}} | {{RelatedFunctions}} | ||
*[[ImportPackage]] | |||
*[[StartPackage]] | |||
*[[StopPackage]] | |||
*[[GetAllPackages]] | |||
*[[GetPackageName]] | |||
*[[IsPackageStarted]] | |||
*[[GetPackageFiles]] |
Latest revision as of 14:35, 26 June 2021
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"))