Global/AddCSLuaFile

From Garry's Mod
(Difference between revisions)
Jump to: navigation, search
m (Fixed link)
(Changed how Namespace works - pass it the link yourself)
Line 1: Line 1:
 
{{Function
 
{{Function
 
  | Name = AddCSLuaFile
 
  | Name = AddCSLuaFile
  | Namespace = Global
+
  | Namespace = [[Global]]
 
  | Realm = Server
 
  | Realm = Server
 
}}
 
}}
Line 11: Line 11:
 
  | Returns =  
 
  | Returns =  
 
  | Arg1Name = file
 
  | Arg1Name = file
  | Arg1Type = String
+
  | Arg1Type = string
 
  | Arg1Req = true
 
  | Arg1Req = true
 
  | Arg1Desc = The name/path (relative from the lua folder) to the Lua file that should be included.
 
  | Arg1Desc = The name/path (relative from the lua folder) to the Lua file that should be included.

Revision as of 12:48, 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