AddCSLuaFile

From Garry's Mod
Revision as of 19:26, 25 March 2013 by FPtje (Talk | contribs)
Jump to: navigation, search
 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