GetPackageFiles: Difference between revisions
From Onset Developer Wiki
Created page with "{{Info|Function|Server & Client|1.0}} {{FuncDescription|Returns all files that are registered with a specific package. See packages.}} {{FuncSyntax|GetPackageFiles(Packa..." |
No edit summary |
||
Line 1: | Line 1: | ||
{{Info|Function|Server & Client|1.0}} | {{Info|Function|Server & Client|1.4.0}} | ||
{{FuncDescription|Returns all files that are registered with a specific package. See [[packages]].}} | {{FuncDescription|Returns all files that are registered with a specific package. See [[packages]].}} |
Latest revision as of 17:12, 30 December 2020
Description
Returns all files that are registered with a specific package. See packages.
Syntax
GetPackageFiles(PackageName)
Parameters
- PackageName
The package name.
Return Value
- This function returns a table with the package files.
Example
local packages = GetPackageFiles("default")
print(packages[1]) -- prints the first package file