Add extra lua files to gamemode?

Oh dear, noob question inbound (Probably)!

All I want to do is add clientside lua files to my gamemode, for example cl_hud.lua
For whatever reason, I am doing it wrong and getting errors saying it can not find the file.

So my question is, where do add write “AddCSLuafile” or “include” so I am not limited just to cl_init.lua, init.lua and shared.lua.
Its so I can have a more structured gamemode to allow for easier editing etc.

Thanks

AddCSLuaFile to init.lua (this makes the clientside files download)
include to cl_init.lua (this makes downloaded clientside files get to work)

@Edit: Also, if you are as lazy as I am, you can use this (just put your files into proper folders client/server/shared)
init.lua
[lua]local files, directiories = file.Find( “mygamemode/gamemode/libraries/server/*”, “LUA” )
for k, v in pairs ( files ) do
include( “mygamemode/gamemode/libraries/server/” … v )
print( "[SV] Included: " … v )
end

local files, directiories = file.Find( “mygamemode/gamemode/libraries/client/*”, “LUA” )
for k, v in pairs ( files ) do
AddCSLuaFile( “mygamemode/gamemode/libraries/client/” … v )
end[/lua]

cl_init.lua
[lua]local files, directiories = file.Find( “mygamemode/gamemode/libraries/client/*”, “LUA” )
for k, v in pairs ( files ) do
include( “mygamemode/gamemode/libraries/client/” … v )
print( "[CL] Included: " … v )
end[/lua]

AddCSLuaFile in init.lua and include in cl_init.lua

This should help you understanding realms and including files across them:

https://dl.dropboxusercontent.com/u/26074909/tutoring/loading_files_across_realms.lua

All I can say for now is thank you for the replies and help. I am going to do this tomorrow because my bed is calling me. Thanks again!

Well, its just saying “Couldn’t include file ‘cl_hud.lua’ (File not found) <@gamemodes/*******/gamemode/cl_init.lua (Line 2))”

In init.lua I have added "AddCSLuaFile( “cl_hud” )
And in cl_init I have added "include( “cl_hud” )

This is just odd because the cl_hud.lua is in the same folder as the other files, but it just doesn’t work…
Its probably something really obvious.

it’s called cl_hud.lua not cl_hud

True fact, sir. I said it would be really obvious. Thanks