Available since Version 1.7.
Returns the path to a mod within the Virtual File System.
Syntax
GetModPath( [mod_name] )Arguments
- mod_name (string): Specify the InternalName of a mod whose path you want to get.
- Optional, defaults to the mod that called the function.
- This function always returns a path regardless of whether or not the specified mod name is valid or enabled.
Return Values
- (string): The path to the mod.
Examples
-- Get the current mod's path.
-- Returns "/Mods/CurrentMod"
local Path = GetModPath()
-- Get Donut Mod's path
local Path = GetModPath("DonutMod3")