Am I doing something wrong here?
Inside my gamemode:
[b]cl_init.lua[/b]
[code]include ("cl_others.lua") -- error here![/code]
cl_others.lua exists, within the same folder (gamemode - so - garrysmod/gamemodes/DERP/gamemode/cl_others.lua) as cl_init.lua
Works fine for server-side includes. What gives man.
AddCSLuaFile
I thought originally that was purely for download purposes? But that worked, thanks.
Yeah, you are making the client download the .lua file.
Well yeah. But i'm on a listen server - so I have the files already.
Actually, I have noticed it doesn't include them even when AddCSLuaFile'd sometimes.
[QUOTE=KatNotDinner;38614152]Actually, I have noticed it doesn't include them even when AddCSLuaFile'd sometimes.[/QUOTE]
Correct, just ran into this problem. I'm pushing 20+ files.
Sorry, you need to Log In to post a reply to this thread.