Available since Version 1.19.
Returns the InternalName of the current main mod.
Syntax
GetMainMod()Arguments
No arguments.
Return Values
- (string | nil): The name of the current main mod or
nilif there is no main mod enabled.
Examples
local CurrentMainMod = GetMainMod()
if CurrentMainMod == "DonutMod3" then
-- Donut Mod specific code.
else
-- Whatever else you want.
end