Donut Team is a labor of love, built and maintained by a small group of passionate developers. We invest our own time and resources to offer our tools, mods, and web services completely free of charge.

We don't run ads, and we will never sell your data - period.

If you've enjoyed anything we've created, please consider supporting our work with a one-time or monthly donation via our Ko-fi page . Every contribution helps us continue building great experiences for the community.

Dismiss
  • Modding Tools
  • Lucas' Simpsons Hit & Run Mod Launcher
  • Hacks
  • Mod Requirable Hacks
  • Custom Files

Lua Scripting

This hack utilises the Lua Support hack to allow mods to run Lua code to handle files when the game requests they be loaded.

Mods can define Lua code in two places:

  • CustomFiles.lua: This is a script located in the root of the mod that will be executed as soon as the mod is loaded.
  • Path Handlers: Mods can specify Lua scripts that will be executed when a specific file or files (via wildcards) are requested by the game using the CustomFiles.ini configuration file.
    • These scripts are intended to go somewhere in a folder named "Resources" in the root of the mod.

This allows mods to do a number of powerful things such as redirect or manipulate the files being requested or generate new ones altogether.

Allowed Functions/Variables

For a list of all of the stock Lua functions and variables that are allowed with this hack, see Allowed Functions/Variables.

Custom Functions

For a list of custom functions this hack provides, see All Functions.