Module · Scripting core
mods
Other mods: what is installed and running, and the exports of mods this one depends on.
mods.get(id: string): ModExports?
The table another mod published with mod.export, or nil when it is not running or exports nothing. The mod must be listed in this mod's dependencies or optionalDependencies. Its functions run inside that mod; arguments and results are copied.
local wheels = mods.get("someone.better-wheels")
if wheels then wheels.setGrip(1.4) endmods.isRunning(id: string): boolean
True when the mod is running on this side.
mods.list(): any
Every valid mod the game found.
Returns Array of { id, name, version, running }.