Skip to content

Hash API

Copy HashCommands.cs into your project. That one file is the whole API.

<Compile Include="path\to\HashCommands.cs" />

Mark it optional, so your mod still loads without it:

[assembly: MelonOptionalDependencies("Hash")]

Without Hash every call does nothing and returns a default. Calls made before Hash loads run once it does.

First steps: List your console command.

Source: Hash.Api/HashCommands.cs at v1.2.9.