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 == | ||
<syntaxhighlight lang="Lua"> | |||
local pakname = "TestMod" | |||
print("Pak exists: ".. DoesPakExist(pakname) and "True" or "False" .. ".") | |||
</syntaxhighlight> | |||
{{RelatedFunctions}} | {{RelatedFunctions}} | ||
*[[DoesPakExist]] | |||
*[[LoadPak]] | |||
*[[ReplaceObjectModelMesh]] | |||
*[[ReplaceAnimationLibrarySequence]] | |||
*[[GetAllFilesInPak]] |
Latest revision as of 11:07, 2 September 2020
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" .. ".")