include
Example
Demonstrates correct and incorrect usage.
Example
Specify a base folder and recursively include client, shared and server files without having to specify them.
Executes a Lua script.
This function will try to load local client file if sv_allowcslua
is 1.
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.
Addon files (.gma files) and dedicated servers clientside do not support relative parent folders (..
notation).
Absolute paths for gamemode files must include <gamemode_folder_name>/gamemode/
.
lua/config.lua
in your addon may be overwritten by the same file in another addon.Demonstrates correct and incorrect usage.
Specify a base folder and recursively include client, shared and server files without having to specify them.