Modding Tools > Lucas' Simpsons Hit & Run Mod Launcher > Hacks > Mod Requirable Hacks > Custom Files > Custom Lua Functions > General Functions > GetMainMod

GetMainMod

Returns the InternalName 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.

Donut Team © 2024 · v4.0