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

GetModPath

Returns the path to a mod within the Virtual File System.

Syntax

GetModPath( [<mod_name>] )
  • mod_name: 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.

Examples

-- Get the current mod's path.
-- Returns "/Mods/CurrentMod"
local Path = GetModPath()

-- Get Donut Mod's path
local Path = GetModPath("DonutMod3")

Notes

No additional notes.

Version History

Unknown Version

Added this function.

Donut Team © 2024 · v4.0