include

From Garry's Mod
Jump to: navigation, search
 include( )

Description

Executes a Lua script either relative to the current file, or absolute(relative to the /lua/ folder).

NOTE The file you are attempting to include MUST NOT be empty or the include will fail.
NOTE If the file you are including is clientside or shared, it must be AddCSLuaFile'd or this function will error saying the file doesn't exist.

Arguments

string fileName

The name of the script to be executed.

Returns

vararg

Anything that the executed Lua script returns.
Personal tools
Navigation