Global/AddCSLuaFile

From Garry's Mod
Revision as of 02:23, 3 August 2012 by Scratch (Talk | contribs)
Jump to: navigation, search

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