Garry's Mod Wiki

Lua Loading Order

This list shows the order of loading Lua files in Garry's Mod.

GMod filesystem combines all scripts into one folder. addon/myaddon/lua/entities/ and gamemodes/base/gamemoded/entities/entities/ will be merged with lua/entities/.
This is a list of client loading order
  • includes/init.lua - Everything from includes/ is included from this file

  • derma/init.lua - Everything from derma/ is included from this file

  • gamemodes/base/gamemode/cl_init.lua - Everything from gamemodes/base/gamemode/ is included from this file

  • autorun/ - 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/ - Only default.lua

  • gamemodes/*gamemodename*/gamemode/cl_init.lua - Everything from gamemodes/*gamemodename*/gamemode/ is included from this file

  • weapons/ - 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)

Page Links


Special Pages


Wikis

?

Render Time: 28ms

DB GetPage 4
Generate Html 0
SaveChanges (1) 10
Render Body 0
Render Sidebar 12