Hi, may be I’m wrong but do “addons/<addon name>/lua/vgui” files load automatically but “gamemodes/<gamemode name>/gamemode/vgui” dont? I used TTT as an example of file hierarchy and TTT AddCSLua and include every single one of vgui/* files, but it seems that addons do it automatically, is it documented anywherein http://wiki.garrysmod.com or should I add it there (and where)?
–snip-- Wasn’t at all what you were asking.
Yes, ~/lua/vgui/ loads automatically. No files in ~gamomodes/<name>/gamemode/ load automatically except cl_init.lua and init.lua.
Thanks, just seems strange, why addons, but not gamemode.
Should I add it to wiki? Cuz I didn’t find it to be mentioned anywhere.
Nah, lua is the only folder where things are automatically loaded by folder.
which ones besides vgui?
I’m not sure if this is up-to date but: https://maurits.tv/data/garrysmod/wiki/wiki.garrysmod.com/index66fb-2.html
(it doesn’t say anything about vgui tho)
Yes but not everything from old wiki is outdated/no longer valid. And it contains more detailed examples or information on many subjects, at least from what I know.
Correct me if I’m wrong.