> 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/gillwinclose.md).

# npc.gillwinclose

```lua
npc.gillwinclose()
```

|                         |                                 |
| ----------------------- | ------------------------------- |
| id                      | `0x0488`                        |
| arguments               | 0                               |
| in NPC Kit              | yes                             |
| measured from a kit NPC | returns                         |
| vanilla scripts         | 184 calls in 42 of 1114 scripts |

## What it does

Closes the gil window. Does nothing with no window, or one already closing.

## Timing

Returns at once.

## In NPC Kit

On every way out of a price talk: after the payment, and in the "no" branch (a `closeGil` named function).

## Used with

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

## Example

Its own named function, so the "no" branch of a price question can close the window too.

```lua
local refused = [[
Suit yourself. Secrets don't get any cheaper,
but they do have a way of going stale very fast.
]]

closeGil = function()
    npc.gillwinclose();
end,

-- in the Lua, when the player says no:
--     handle.run("closeGil", function() say(handle, refused) end)
```
