RedM Natives

UPDATE_ONSCREEN_KEYBOARD

Returns the current status of the onscreen keyboard, and updates the output.

Hash0x37DF360F235A3893
Runtime nameUpdateOnscreenKeyboard
NamespaceMISC
SideClient
NameOfficial
Docs
Since build1207
GTA V hash0x0CF2B696BBF945AE

Signature

int UPDATE_ONSCREEN_KEYBOARD();

Returns int

Description

Returns the current status of the onscreen keyboard, and updates the output.

Status Codes:

0 - User still editing
1 - User has finished editing
2 - User has canceled editing
3 - Keyboard isn't active

Usage

Lua
local retval = UpdateOnscreenKeyboard()

-- always works, by hash
local retval = Citizen.InvokeNative(0x37DF360F235A3893, Citizen.ResultAsInteger())
JavaScript and C#
JavaScript
const retval = UpdateOnscreenKeyboard();

// by hash
const retval = Citizen.invokeNative('0x37DF360F235A3893', Citizen.returnResultAnyway(), Citizen.resultAsInteger());
C#
int retval = Function.Call<int>((Hash)0x37DF360F235A3893);

See also

Sources

alloc8or RDR3 NativeDB

Something wrong or missing? Contribute a verified note — corrections ship through pull requests.