Skip to main content

keylayer.set_enabled

Overview

  • The player's key layer switches in the hidden UI launcher: without id, turns all active mod key layers on or off; with id, turns one active layer on or off (it keeps its stack position, and keys fall through to the layers below or the game). Not callable from mods. Switches reset when a layer is popped or the stack becomes empty.

Metadata

FieldValue
DisplayToggle Mod Key Layers
Categorykeylayer
AccessScriptCheat
ScopeB1Standalone
TagsExperimental
Aliases—

Parameters

NameTypeRequiredDefaultDescription
enabledboolyes—true = key layers active, false = keys go to the game
idstringno—Active key layer id. Omit for all key layers

Returns

  • Return shape is not declared for this command.

Usage

await inzoi.cli.execute('keylayer.set_enabled', {
enabled: false,
id: '', // optional
});