DoesPakExist: Difference between revisions

From Onset Developer Wiki
No edit summary
No edit summary
 
Line 17: Line 17:


{{RelatedFunctions}}
{{RelatedFunctions}}
{{Template:PakFunctions}}
*[[DoesPakExist]]
*[[LoadPak]]
*[[ReplaceObjectModelMesh]]
*[[ReplaceAnimationLibrarySequence]]
*[[GetAllFilesInPak]]

Latest revision as of 11:07, 2 September 2020

DoesPakExist

Type: Function
Context: Client
Introduced: v1.0

Description

Checks if a pak with the specified name exists.

Syntax

DoesPakExist(PakName)

Parameters

  • PakName
    The name of the Pak file without extension.

Return Value

  • Returns true when the Pak exsits.

Example

local pakname = "TestMod"
print("Pak exists: ".. DoesPakExist(pakname) and "True" or "False" .. ".")

See also