DISPLAY_ONSCREEN_KEYBOARD
Opens the on-screen keyboard with the title windowTitle, prefilled with defaultText, accepting up to maxInputLength characters.
Poll UPDATE_ONSCREEN_KEYBOARD, then read the text with GET_ONSCREEN_KEYBOARD_RESULT.
Signature
void DISPLAY_ONSCREEN_KEYBOARD(int textType, const char* windowTitle, const char* p2, const char* defaultText, const char* defaultConcat1, const char* defaultConcat2, const char* defaultConcat3, int maxInputLength); // 0x044131118D8DB3CD b1207Parameters
| # | Name | Type |
|---|---|---|
| 1 | textType | int |
| 2 | windowTitle | const char* |
| 3 | p2 | const char* |
| 4 | defaultText | const char* |
| 5 | defaultConcat1 | const char* |
| 6 | defaultConcat2 | const char* |
| 7 | defaultConcat3 | const char* |
| 8 | maxInputLength | int |
Facts
| Name | DISPLAY_ONSCREEN_KEYBOARD |
|---|---|
| Hash | 0x044131118D8DB3CD |
| Namespace | |
| Returns | void |
| Game build | 1207 |
Examples
Calls by hash work in every RedM runtime. Replace the placeholder arguments with your own values.
Citizen.InvokeNative(0x044131118D8DB3CD, -- DISPLAY_ONSCREEN_KEYBOARD
0, -- int textType
"text", -- const char* windowTitle
"text", -- const char* p2
"text", -- const char* defaultText
"text", -- const char* defaultConcat1
"text", -- const char* defaultConcat2
"text", -- const char* defaultConcat3
0 -- int maxInputLength
)Citizen.invokeNative("0x044131118D8DB3CD", // DISPLAY_ONSCREEN_KEYBOARD
0, // int textType
"text", // const char* windowTitle
"text", // const char* p2
"text", // const char* defaultText
"text", // const char* defaultConcat1
"text", // const char* defaultConcat2
"text", // const char* defaultConcat3
0 // int maxInputLength
);Function.Call((Hash)0x044131118D8DB3CD, // DISPLAY_ONSCREEN_KEYBOARD
0, // int textType
"text", // const char* windowTitle
"text", // const char* p2
"text", // const char* defaultText
"text", // const char* defaultConcat1
"text", // const char* defaultConcat2
"text", // const char* defaultConcat3
0 // int maxInputLength
);Related MISC natives
- NEXT_ONSCREEN_KEYBOARD_RESULT_WILL_DISPLAY_USING_THESE_FONTS
- CANCEL_ONSCREEN_KEYBOARD
- GET_ONSCREEN_KEYBOARD_RESULT
- UPDATE_ONSCREEN_KEYBOARD
- DISABLE_LOOTING_COMPOSITE_LOOTABLE_THIS_FRAME
- DELETE_INCIDENT
- DOES_POP_MULTIPLIER_AREA_EXIST
- _0x0358B8A41916C613
- _0x0730E518486DEEC3
- _0x0A487CC74A517FB5
- _0x0D0AE5081F88CFE1
- _0x1096603B519C905F
Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.