Garry's Mod Wiki

IncludeCS

  vararg IncludeCS( string filename )

Description

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.

Arguments

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

Returns

1 vararg
Anything that the executed Lua script returns.