This page documents all the custom Lua functions provided by Custom Files.
General Functions
These are general functions.
Custom Save Data Functions
These are functions for getting and setting custom save data values.
Dialog Functions
These are functions for showing various types of popup dialogs.
File System Functions
These are functions for working with the Virtual File System.
Game State Functions
These are functions for querying various parts of the game's state and the player's current progress.
- GetActiveLevelMission
- GetCoins
- GetCurrentCar
- GetCurrentLevel
- GetCurrentMission
- GetCurrentSkin
- GetHighestLevelMission
- GetLevelCount
- GetLevelNumCarsPurchased
- GetLevelNumGagsCompleted
- GetLevelNumSkinsPurchased
- GetLevelNumWaspsDestroyed
- IsCheatEnabled
- IsLevelBonusMissionCompleted
- IsLevelCardCollected
- IsLevelFMVUnlocked
- IsLevelGagCompleted
- IsLevelMissionCompleted
- IsLevelStreetRaceCompleted
- IsLevelWagerRaceCompleted
- IsPersistentObjectDestroyed
- IsRewardUnlocked
- LookupString
Game Version Functions
These are functions for querying information about the game version the user is running.
Mod Functions
These are functions for getting info about enabled mods and hacks.
- GetEnabledMods
- GetMainMod
- GetModName
- GetModPath
- GetModTitle
- GetModVersion
- GetSetting
- GetSettings
- IsHackLoaded
- IsModEnabled
Path Functions
These are functions for working with file paths and file names.
- ComparePaths
- FixSlashes
- GetFileExtension
- GetFileName
- GetPathParent
- RemoveFileExtension
- WildcardMatch
Path Handler Functions
These are functions for handling files within within Path Handler Scripts.