mirror of
https://github.com/PHIDIAS0303/ExpCluster.git
synced 2026-07-27 02:46:22 +09:00
12 lines
494 B
Lua
12 lines
494 B
Lua
--[[
|
|
It is best practice to not expose any globals because all modules share a global environment
|
|
However, sometimes you need globals, for example to access functions within rcon commands
|
|
Therefore, we advise that this should be the only file in your module to expose globals
|
|
Typically this would be your control file as shown in the example below
|
|
]]
|
|
|
|
--- @diagnostic disable: global-element
|
|
|
|
-- Access using `/sc exp_groups.foo()`
|
|
exp_groups = require("modules/exp_groups/control")
|