Garry's Mod Wiki

Garry's Mod Wiki

  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.

This site is a community mirror of the official Garry's Mod wiki.. This site is not maintained by Facepunch Studios.

Page content is automatically updated twice a day. Edits and history are not available.

Last Parsed: Loading...