MiscClientBlocked

displayOnscreenKeyboardWithLongerInitialString

DISPLAY_ONSCREEN_KEYBOARD_WITH_LONGER_INITIAL_STRING0xCA78CFA0366592FE

The GTA V native DISPLAY_ONSCREEN_KEYBOARD_WITH_LONGER_INITIAL_STRING of the MISC namespace, as LS:MP client scripts call it: the global function displayOnscreenKeyboardWithLongerInitialString, in JavaScript and in Lua.

SignatureJavaScript
displayOnscreenKeyboardWithLongerInitialString(
  p0: number,
  windowTitle: string,
  p2: null,
  defaultText: string,
  defaultConcat1: string,
  defaultConcat2: string,
  defaultConcat3: string,
  defaultConcat4: string,
  defaultConcat5: string,
  defaultConcat6: string,
  defaultConcat7: string,
  maxInputLength: number
): void
SignatureLua
displayOnscreenKeyboardWithLongerInitialString(
  p0: integer,
  windowTitle: string,
  p2: nil,
  defaultText: string,
  defaultConcat1: string,
  defaultConcat2: string,
  defaultConcat3: string,
  defaultConcat4: string,
  defaultConcat5: string,
  defaultConcat6: string,
  defaultConcat7: string,
  maxInputLength: integer
)
✕
Blocked for scripts: Shared menus and input

LS:MP manages the shared frontend, text-entry dialog and input layout. Use the LS:MP page and input APIs for resource UI.

Calling it raises disabled by LSMP script policy, which try / catch (JavaScript) or pcall (Lua) can intercept. Nothing reaches the game. See Blocked natives.

Reference

Namespace
Misc MISC
In the game
void DISPLAY_ONSCREEN_KEYBOARD_WITH_LONGER_INITIAL_STRING(int p0, const char* windowTitle, Any* p2, const char* defaultText, const char* defaultConcat1, const char* defaultConcat2, const char* defaultConcat3, const char* defaultConcat4, const char* defaultConcat5, const char* defaultConcat6, const char* defaultConcat7, int maxInputLength)
Hash
0xCA78CFA0366592FE
Formerly
_DISPLAY_ONSCREEN_KEYBOARD_2

Open in the interactive natives reference