Garry's Mod Wiki


  vararg IncludeCS( string filename )


We advise against using this. It may be changed or removed in a future update. To send the target file to the client simply call AddCSLuaFile() in the target file itself.

This function works exactly the same as include both clientside and serverside.

The only difference is that on the serverside it also calls AddCSLuaFile on the filename, so that it gets sent to the client.


1 string filename
The filename of the Lua file you want to include.


1 vararg
Anything that the executed Lua script returns.