File Search Paths

From Garry's Mod
(Difference between revisions)
Jump to: navigation, search
(Added a row for Workshop addon title)
Line 43: Line 43:
|<mounted Workshop addon title>
|<mounted Workshop addon title>
|Strictly within the specified Workshop addon. See {{LibraryFunction|engine|GetAddons}}.
|{{Deprecated}} Strictly within the specified Workshop addon. See {{LibraryFunction|engine|GetAddons}}.

Revision as of 20:47, 6 June 2017

File Search Paths

Here is a list of file search paths for use by the file library.

Search Paths
Path Description
"GAME" Structured like base folder (garrysmod/), searches all the mounted content (main folder, addons, mounted games, etc)
"LUA" or "lsv" All Lua folders (lua/) including gamemodes and addons
"LuaMenu" All Lua files and subfolders (lua/) visible to the menu state.
"DATA" Data folder (garrysmod/data)
"DOWNLOAD" Downloads folder (garrysmod/download/)
"MOD" Strictly the game folder (garrysmod/), ignores mounting.
"BASE_PATH" Location of the root folder (where hl2.exe, bin and etc. are)
"EXECUTABLE_PATH" Bin folder and root folder
"THIRDPARTY" Contains content from installed addons or gamemodes.
"WORKSHOP" Contains only the content from workshop addons. This includes all mounted .gma files.
<mounted folder> Strictly within the folder of a mounted game specified, e.g. "cstrike"
<mounted Workshop addon title>
This feature is deprecated.
You should avoid using it as it may be removed in a future version.
Strictly within the specified Workshop addon. See engine.GetAddons.

For a more comprehensive list of paths accessible via the above Search Paths, plus additional paths such as "episodic", "hl2mp", "lostcoast", "tf", etc.. depending on mounted content and addons, use the console command: "path" which outputs a large list of all of the paths accessible for each id.

Personal tools