Garry's Mod Wiki

IncludeCS

void 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.

Page Links


Special Pages


Wikis

?

Render Time: 22ms

Session 0
DB GetPage 4
Generate Html 1
SaveChanges 9
Render Body 0
Render Sidebar 6