Modding Tools > Lucas' Simpsons Hit & Run Mod Launcher > Hacks > Mod Requirable Hacks > Custom Files > Custom Lua Functions > Path Handler Functions > GetPath

GetPath

This function should only be called in a Path Handler script.

Returns the path of the file being requested.

Syntax

GetPath()

Examples

local CurrentPath = GetPath()

if ComparePaths(CurrentPath, "scripts\\missions\\rewards.mfk") then
    -- Do something based on it being the rewards file.
else
    -- Do something else, nothing probably with this example
end

Notes

No additional notes.

History

Unknown Version

Added this function.

Donut Team © 2024 · v4.0