GetPackageFiles

From Onset Developer Wiki
Revision as of 17:12, 30 December 2020 by BlueMountains (talk | contribs) (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...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
GetPackageFiles

Type: Function
Context: Server & Client
Introduced: v1.0

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

See also