Lua Loading Order
This list shows the order of loading Lua files in Garry's Mod.
addon/myaddon/lua/entities/
and gamemodes/base/gamemode/entities/entities/
will be merged with lua/entities/
.includes/init.lua
- Everything fromincludes/
is included from this filederma/init.lua
- Everything fromderma/
is included from this filegamemodes/base/gamemode/cl_init.lua
- Everything fromgamemodes/base/gamemode/
is included from this fileautorun/
- Ascending order (Descending on Linux)autorun/client/
- Ascending order (Descending on Linux)
postprocess/
- Ascending order (Descending on Linux)vgui/
- Ascending order (Descending on Linux)matproxy/
- Ascending order (Descending on Linux)skins/
- Onlydefault.lua
gamemodes/*gamemodename*/gamemode/cl_init.lua
- Everything fromgamemodes/*gamemodename*/gamemode/
is included from this fileweapons/
- Ascending order (Descending on Linux)weapons/gmod_tool/stools/
- Ascending order (Descending on Linux)
entities/
- Ascending order (Descending on Linux)effects/
- Ascending order (Descending on Linux)