Keybind

Updated for version 3.38.

Module Definition

The module is inherited from ModuleBase. So base parameters can be found there.

The module uses almost the same parameters of the BLT json keybinds https://payday-2-blt-docs.readthedocs.io/en/latest/mods/definition/#json-keybinds

Module name

The name of the module you use as the meta of the module definition is 'Keybind' or 'KeybindModule' if _force_search is set to true in the module definition.

XML Structure

<Keybind id name description localized run_in_game run_in_menu script_path/>

Example

This example is what you would put inside your main node within your mod config

<Keybind keybind_id="mykeybind" name="My keybind" description="Runs a script!" localized="false" script_path="Script.lua"/>

This will add a keybind to mod keybinds menu similar to BLT's Json ones. when the key that the keybind is set to is pressed, this will run the script in 'script_path'.

Last updated