If you read the wiki page it tells you
[i]The path is relative to the addon's lua folder.[/i]
[i]You still need to include the file clientside to use it. If you want to run it automatically, make sure that it's in the autorun directory.[/i]
They should answer both your issues
[b][url=http://wiki.garrysmod.com/?title=G.AddCSLuaFile]G.AddCSLuaFile [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b]
For reference
-snip-
[QUOTE=Robin_xD;29296470]"spud/cl_plugins/luafilename.lua" should be correctly since the folder spud is directly in addonname/lua/
I'll be caring about the clientside includes as soon as the download itself works..[/QUOTE]
Its relative to the server-side file (afaik) in /lua/autorun/server so you need to go up a directory
-snip-
-snip- misread, sorry
-snip-
-snip-
Sorry, you need to Log In to post a reply to this thread.