> For the complete documentation index, see [llms.txt](https://fehdead.gitbook.io/npc-kit/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://fehdead.gitbook.io/npc-kit/vm-reference/calls/setstatuserrorctrldenystatus_by_menu.md).

# npc.setstatuserrorctrldenystatus\_by\_menu

```lua
npc.setstatuserrorctrldenystatus_by_menu(state)
```

|                         |                                   |
| ----------------------- | --------------------------------- |
| id                      | `0x0560`                          |
| arguments               | 1: Int                            |
| in NPC Kit              | yes                               |
| measured from a kit NPC | returns                           |
| vanilla scripts         | 4571 calls in 264 of 1114 scripts |

## What it does

Raises (`1`) or releases (`0`) the menu's control-deny request, another of the game's freeze requests. Vanilla raises it together with [seteventtimestop](https://fehdead.gitbook.io/npc-kit/vm-reference/calls/seteventtimestop.md) around every "obtained" message (about 2,285 pairs). What it changes on screen is not confirmed.

## Arguments

### `state` (Int)

`1` on, `0` off.

## Timing

Returns at once.

## In NPC Kit

Like [seteventtimestop](https://fehdead.gitbook.io/npc-kit/vm-reference/calls/seteventtimestop.md), it does not reach kit NPCs. Copy vanilla's block and pair every `1` with a `0`.

## Used with

* [seteventtimestop](https://fehdead.gitbook.io/npc-kit/vm-reference/calls/seteventtimestop.md).

## Example

See [seteventtimestop](https://fehdead.gitbook.io/npc-kit/vm-reference/calls/seteventtimestop.md).

```lua
npc.setstatuserrorctrldenystatus_by_menu(1);
npc.setstatuserrorctrldenystatus_by_menu(0);
```
