Global/AddCSLuaFile

From Garry's Mod
(Difference between revisions)
Jump to: navigation, search
(Created page with "{{Function | Name = AddCSLuaFile | Namespace = Global | Realm = Server }} {{Syntax | Name = AddCSLuaFile | Description = Adds a Lua file to the list for clients to down...")
 
Line 22: Line 22:
 
  | Output =  
 
  | Output =  
 
}}
 
}}
 +
 +
==Additional Notes==
 +
* The file name and path cannot include ".."
 +
* The path is relative to the lua folder
 +
* You still need to [[include]] the file to use it client-side

Revision as of 02:23, 3 August 2012

Template:Function

Template:Syntax

Contents

Examples

Examples

Example

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

AddCSLuaFile( "cl_init.lua" )


Additional Notes

  • The file name and path cannot include ".."
  • The path is relative to the lua folder
  • You still need to include the file to use it client-side
Personal tools
Navigation