Available since Version 1.22.
Returns the version of the specified mod.
Syntax
GetModVersion( [mod_name] )Arguments
- mod_name (string): The name of the mod whose version you'd like to get.
- Optional, defaults to the mod that called the function.
Return Values
- (string | nil): The version of the mod or
nilif it does not have a version or is not loaded.
Examples
local CurrentModVersion = GetModVersion()
print("Version " .. CurrentModVersion .. " loaded!")