Available since Version 1.7.
Calls the given callback function for each mod that is enabled.
Syntax
GetEnabledMods( callback )Arguments
- callback function(ModInternalName): A callback that will be called for each enabled mod.
- ModInternalName (string): The InternalName of the mod.
- This callback can return
trueto continue iteration. Returning any other value or not returning anything will end it.
Return Values
- (boolean): Whether the callback returned true every time.
Examples
-- Print the InternalName of each enabled mod/hack
GetEnabledMods(function(ModInternalName)
print(ModInternalName)
return true
end)