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

IsModEnabled

Returns whether or not a mod, mod hack or framework is enabled.

Syntax

IsModEnabled( <mod_name> )
  • mod_name: The name of the mod to check for. This should be the mod's InternalName (if it has one, which it should).

Examples

if IsModEnabled("ReplayableBonusMissions") then
    -- Do stuff differently if the Replayable Bonus Missions Mod Hack is enabled.
end

Notes

No additional notes.

Version History

Unknown Version

Added this function.

Donut Team © 2020 · v4.0