ControlsClient

getControlInstructionalButtonsString

GET_CONTROL_INSTRUCTIONAL_BUTTONS_STRING0x0499D7B09FC9B407

The 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.

SignatureJavaScript
getControlInstructionalButtonsString(
  control: number,
  action: number,
  allowXOSwap: boolean
): string
SignatureLua
getControlInstructionalButtonsString(
  control: integer,
  action: integer,
  allowXOSwap: boolean
): string

Usage

JavaScript
const text = getControlInstructionalButtonsString(control, action, allowXOSwap);
Lua
local text = getControlInstructionalButtonsString(control, action, allowXOSwap)

Parameters

ParameterTypeJavaScriptLuaDescription
controlintnumberintegerunused parameter
actionintnumberinteger
allowXOSwapBOOLbooleanboolean

Returns

string JavaScript string, Lua string

Notes

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

Open in the interactive natives reference