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/, so therefore the same path and name will override and/or conflict.Client loading order
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/autorun/client/
postprocess/vgui/matproxy/skins/default.luagamemodes/*gamemodename*/gamemode/cl_init.lua- Everything fromgamemodes/*gamemodename*/gamemode/is included from this fileweapons/weapons/gmod_tool/stools/
entities/effects/
Server loading order
includes/init.lua- Everything fromincludes/is included from this filegamemodes/base/gamemode/init.lua- Everything fromgamemodes/base/gamemode/is included from this fileautorun/autorun/server/autorun/server/sensorbones
includes/dev_server_test.lua- Only executed if the-systemtestcommand line parameters were added.gamemodes/*gamemodename*/gamemode/init.lua- Everything fromgamemodes/*gamemodename*/gamemode/is included from this fileweapons/weapons/gmod_tool/stools/
entities/effects/
			Garry's Mod 
		
			Rust 
		
			Steamworks 
		
			Wiki Help