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

GetEnabledMods

Calls the given callback function for each mod that is enabled.

Syntax

GetEnabledMods( <callback> )
  • callback: The callback that will be called for each enabled mod.
    • This callback is given one argument:
      • ModInternalName: The InternalName of the mod.
    • This callback must return true for the loop to continue.

Examples

-- Print the InternalName of each enabled mod/hack
GetEnabledMods(function(ModInternalName) 
	print(ModInternalName)
	return true
end)

Notes

No additional notes.

Version History

Unknown Version

Added this function.

Donut Team © 2023 · v4.0