st.require / st.load / st.loadJson — Module Loading
lua
-- Load a Lua module from the current resource (cached, like Lua's require)
local myModule = st.require('modules/myModule')
-- Load from another resource
local remoteModule = st.require('@other_resource.modules/shared')
-- Load and execute a Lua file (not cached)
st.load('path/to/file.lua')
-- Load and decode a JSON file
local data = st.loadJson('data/config') -- loads data/config.json