# Input

<details>

<summary>Preview</summary>

<img src="https://1100044979-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F6IG4qpnsvwJ4tB5edczg%2Fuploads%2FNAmunauGH7oEl8Ckt1sB%2FScreenshot_278.png?alt=media&#x26;token=e0a2299b-b35f-42ed-a9f7-54733fb5f933" alt="" data-size="original">

<img src="https://1100044979-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F6IG4qpnsvwJ4tB5edczg%2Fuploads%2FKpaE3Wrl1Ry2dh0Xpo5G%2FScreenshot_277.png?alt=media&#x26;token=b79922c4-f513-46a9-b3bc-617cf10dd8ab" alt="" data-size="original">

</details>

## MSK.Input.Open

Opens an Input Window.

<mark style="color:red;">**Parameters**</mark>\
**header** - `string` - Header Text\
**placeholder** - `string` - Placeholder text\
**field** - `boolean` - Small Input or Big Input

<mark style="color:green;">**Returns**</mark>\
**input** - `string/number` - Input

#### Asynchronous

```lua
-- Small Input Window
MSK.Input.Open('This is a Header', 'This is a Placeholder', function(input)
    if not input then return end
    print(input)
end)

-- Big Input Window
MSK.Input.Open('This is a Header', 'This is a Placeholder', true, function(input)
    if not input then return end
    print(input)
end)

-- As an Export:
exports.msk_core:Input(header, placeholder, field, function(input)
    if not input then return end
    print(input)
end
```

#### Synchronous

```lua
-- Small Input Window
local input = MSK.Input.Open('This is a Header', 'This is a Placeholder')
print(input)

-- Big Input Window
local input = MSK.Input.Open('This is a Header', 'This is a Placeholder', true)
print(input)

-- As an Export:
local input = exports.msk_core:Input(header, placeholder, field)
```

## MSK.Input.Close

Closes the current Input Window.

```lua
MSK.Input.Close()

-- As an Export:
exports.msk_core:CloseInput()
```

## MSK.Input.Active

Checks if the Input Window is active

<mark style="color:green;">**Returns**</mark>\
**isActive** - `boolean` - whether the Input Window is active

```lua
local isActive = MSK.Input.Active()

-- As an Export:
local isActive = exports.msk_core:InputActive()
```
