Function: GetMainMod

Synopsis

Get the name of the current main mod.

If no main mod is enabled, this will returnĀ nil.

Syntax

GetMainMod()

Examples

local CurrentMainMod = GetMainMod()

if CurrentMainMod == "DonutMod3" then
	-- Donut Mod specific code.
else
	-- Whatever else you want.
end

Notes

No additional notes.

History

1.19

  • Added this function.
Back to top