Global/AddCSLuaFile

From Garry's Mod
(Difference between revisions)
Jump to: navigation, search
Line 12: Line 12:
 
}}
 
}}
 
{{Example
 
{{Example
| Description = Adds the cl_init.lua file in the "lua" folder to be downloaded by connecting clients.
+
|Description=Adds the cl_init.lua file in the "lua" folder to be downloaded by connecting clients.
| Code = AddCSLuaFile( "cl_init.lua" )
+
|Code=AddCSLuaFile( "cl_init.lua" )
| Output =
+
}}
 +
{{Example
 +
|Description=Adds the current file to the list of files to be downloaded by clients.
 +
|Code=AddCSLuaFile()
 
}}
 
}}

Revision as of 19:26, 25 March 2013

 AddCSLuaFile( )

Contents

Description

Marks a Lua file to be sent to clients when they join the server.

Arguments

string file

The name/path (relative to the garrysmod/lua folder) to the Lua file that should be sent.

Examples

Example

Adds the cl_init.lua file in the "lua" folder to be downloaded by connecting clients.

AddCSLuaFile( "cl_init.lua" )


Examples

Example

Adds the current file to the list of files to be downloaded by clients.

AddCSLuaFile()


Personal tools
Navigation