mod.txt
in your mod directory, and setup your required basic details, hooks,persist-scripts, and keybinds. name
The friendly name of your mod.description
A description of your mod, and what it does.author
You, your collaborators, anybody who worked on the mod.contact
Some form of contact details for your users to contact you from.version
A friendly version number that will displayed in the in-game mod manager.priority
An integer, from 0 to 1000, that determines the order in which mods load. This should only be used for mods which act as dependencies for other mods. hooks
The array of objects containing a hook_id
and a script_path
.hook_id
The Payday 2 script file to run the script in script_path
after.script_path
The path to your Lua script to run. This is relative to your mod folder. Hooks
, except that these will run before the Payday 2 script defined in hook_id
. Tesa hite 600 user manual.pre_hooks
The array of objects containing a hook_id
and a script_path
.hook_id
The Payday 2 script file to run the script in script_path
before.script_path
The path to your Lua script to run. This is relative to your mod folder. script_path
which is run every frame until the global variable specified in global
is set to anything other than false or nil. persist_scripts
The array of objects containing a global
and a script_path
.global
The global value to associate with script_path
.script_path
The script to continuously run until the global variable global
is set to a value other than false or nil. keybinds
An array containing generic keybind information. Each keybind will be saved and loaded automatically for you. keybind_id
A unique ID for your keybind. Your keybind will be saved and loaded via this ID, so make sure that it relates to your mod so that no other mods can override it.name
The name of the keybind to display in the keybinds menu.description
A short of description of your keybind.script_path
The path to the script that should be ran when the keybind is pressed.run_in_menu
A boolean of whether this keybind should run when pressed during the menu state.run_in_game
A boolean of whether this keybind should run when pressed during the game state.localized
A boolean of if the menu should attempt to use the name and description as localization keys.Use false
if you wish to just type a name and description in.