GetAllPackages: Difference between revisions

From Onset Developer Wiki
28days (talk | contribs)
No edit summary
No edit summary
Line 17: Line 17:


{{RelatedFunctions}}
{{RelatedFunctions}}
{{PackageFunctions}}
*[[ImportPackage]]
*[[StartPackage]]
*[[StopPackage]]
*[[GetAllPackages]]
*[[GetPackageName]]
*[[IsPackageStarted]]

Revision as of 09:39, 2 September 2020

GetAllPackages

Type: Function
Context: Server
Introduced: v1.0

Description

Returns the name of packages in a table.

Syntax

GetAllPackages()

Parameters

  • This function has no parameters.

Return Value

  • This function returns a table with package names.

Example

local packages = GetAllPackages()
print(packages[1]) -- prints your first package in server config

See also