# MISC::GET_ONSCREEN_KEYBOARD_RESULT

- **Hash:** `0xAFB4CF58A4A292B1`
- **Namespace:** MISC
- **Runtime name (Lua/JS):** `GetOnscreenKeyboardResult`
- **Side:** client (game native)
- **Name status:** official
- **Documentation:** described
- **Since game build:** 1207
- **URL:** https://natives.borderlinerp.com/natives/MISC/GET_ONSCREEN_KEYBOARD_RESULT

## Signature

```c
const char* GET_ONSCREEN_KEYBOARD_RESULT();
```

## Returns

`const char*`

## Description

Returns NULL unless UPDATE_ONSCREEN_KEYBOARD() returns 1 in the same tick.

## Usage

### Lua

```lua
local retval = GetOnscreenKeyboardResult()

-- always available, by hash
local retval = Citizen.InvokeNative(0xAFB4CF58A4A292B1, Citizen.ResultAsString())
```

### JavaScript

```js
const retval = GetOnscreenKeyboardResult();

// by hash
const retval = Citizen.invokeNative('0xAFB4CF58A4A292B1', Citizen.returnResultAnyway(), Citizen.resultAsString());
```

### C#

```csharp
string retval = Function.Call<string>((Hash)0xAFB4CF58A4A292B1);
```

*Sources: alloc8or RDR3 NativeDB.*
