GetAllPackages: Difference between revisions
From Onset Developer Wiki
No edit summary |
No edit summary |
||
(2 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
{{Info|Function|Server|1.0}} | {{Info|Function|Server & Client|1.0}} | ||
{{FuncDescription|Returns the name of packages in a table.}} | {{FuncDescription|Returns the name of packages in a table.}} | ||
Line 17: | Line 17: | ||
{{RelatedFunctions}} | {{RelatedFunctions}} | ||
*[[ImportPackage]] | |||
*[[StartPackage]] | |||
*[[StopPackage]] | |||
*[[GetAllPackages]] | |||
*[[GetPackageName]] | |||
*[[IsPackageStarted]] | |||
*[[GetPackageFiles]] |
Latest revision as of 17:13, 30 December 2020
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