getControlInstructionalButtonsString
GET_CONTROL_INSTRUCTIONAL_BUTTONS_STRING0x0499D7B09FC9B407The GTA V native GET_CONTROL_INSTRUCTIONAL_BUTTONS_STRING of the PAD namespace, as LS:MP client scripts call it: the global function getControlInstructionalButtonsString, in JavaScript and in Lua.
getControlInstructionalButtonsString(
control: number,
action: number,
allowXOSwap: boolean
): stringgetControlInstructionalButtonsString(
control: integer,
action: integer,
allowXOSwap: boolean
): stringUsage
JavaScript
const text = getControlInstructionalButtonsString(control, action, allowXOSwap);Lua
local text = getControlInstructionalButtonsString(control, action, allowXOSwap)Parameters
| Parameter | Type | JavaScript | Lua | Description |
|---|---|---|---|---|
control | int | number | integer | unused parameter |
action | int | number | integer | |
allowXOSwap | BOOL | boolean | boolean |
Returns
string JavaScript string, Lua stringNotes
From the community native database. Names are LS:MP’s; samples may be written for C++ or another framework.
allowXOSwap appears to always be true.
EG:getControlInstructionalButtonsString (2, 201, 1) /*INPUT_FRONTEND_ACCEPT (e.g. Enter button)*/getControlInstructionalButtonsString (2, 202, 1) /*INPUT_FRONTEND_CANCEL (e.g. ESC button)*/getControlInstructionalButtonsString (2, 51, 1) /*INPUT_CONTEXT (e.g. E button)*/
https://gtaforums.com/topic/819070-c-draw-instructional-buttons-scaleform-movie/#entry1068197378
Reference
- Namespace
- Controls PAD
- In the game
const char* GET_CONTROL_INSTRUCTIONAL_BUTTONS_STRING(int control, int action, BOOL allowXOSwap)- Hash
0x0499D7B09FC9B407- Formerly
GET_CONTROL_INSTRUCTIONAL_BUTTON