DoesPakExist: Difference between revisions

From Onset Developer Wiki
Created page with "{{Info|Function|Client|1.0}} {{FuncDescription|Checks if a pak with the specified name exists.}} {{FuncSyntax|DoesPakExist(PakName)}} {{FuncParameters}} {{FuncParam|PakName..."
 
No edit summary
 
(One intermediate revision by one other user not shown)
Line 11: Line 11:


== Example ==
== Example ==
__EDIT_ME__
<syntaxhighlight lang="Lua">
local pakname = "TestMod"
print("Pak exists: ".. DoesPakExist(pakname) and "True" or "False" .. ".")
</syntaxhighlight>


{{RelatedFunctions}}
{{RelatedFunctions}}
__EDIT_ME__
*[[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