Instructional Buttons
Instructional buttons are the on-screen button prompts shown to players (e.g., “Press E to Enter”).
They use the instructional_buttons scaleform and map to control IDs.
Build prompts from input tokens instead of hard-coded key names so the displayed
button follows each player’s keyboard or controller mapping.
Quick Usage
-- Show instructional buttons using scaleform
local scaleform = RequestScaleformMovie("instructional_buttons")
while not HasScaleformMovieLoaded(scaleform) do Wait(0) end
BeginScaleformMovieMethod(scaleform, "CLEAR_ALL")
EndScaleformMovieMethod()
BeginScaleformMovieMethod(scaleform, "SET_DATA_SLOT")
ScaleformMovieMethodAddParamInt(0) -- Slot index
ScaleformMovieMethodAddParamPlayerNameString("~INPUT_CONTEXT~") -- Button
BeginTextCommandScaleformString("STRING")
AddTextComponentSubstringPlayerName("Interact")
EndTextCommandScaleformString()
EndScaleformMovieMethod()
BeginScaleformMovieMethod(scaleform, "DRAW_INSTRUCTIONAL_BUTTONS")
EndScaleformMovieMethod()
DrawScaleformMovieFullscreen(scaleform, 255, 255, 255, 255, 0)All Instructional Buttons
Official source · Snapshot: · Download complete JSON
73 of 73 entries
| ID | Name |
|---|---|
| 0 | Arrow Up |
| 1 | Arrow Down |
| 2 | Arrow Left |
| 3 | Arrow Right |
| 4 | Dpad up |
| 5 | Dpad down |
| 6 | Dpad left |
| 7 | Dpad right |
| 8 | Dpad |
| 9 | Dpad all |
| 10 | Dpad up down |
| 11 | Dpad left right |
| 12 | Left stick up |
| 13 | Left stick down |
| 14 | Left stick left |
| 15 | Left stick down |
| 16 | Left stick |
| 17 | Left stick |
| 18 | Left stick up down |
| 19 | Left stick left right |
| 20 | Left stick clockwise |
| 21 | Right stick up |
| 22 | Right stick down |
| 23 | Right stick left |
| 24 | Right stick right |
| 25 | Right stick |
| 26 | Right stick |
| 27 | Right stick up down |
| 28 | Right stick left right |
| 29 | Right stick clockwise |
| 30 | A |
| 31 | B |
| 32 | X |
| 33 | Y |
| 34 | RB |
| 35 | LT |
| 36 | RB |
| 37 | RT |
| 38 | Start |
| 39 | Select |
Source scope and usage notes
The three local illustrations correspond to non-clickable buttons, clickable buttons and icon-based buttons. Request and await the Scaleform before assigning slots. SET_DATA_SLOT has two extra mouse parameters only when TOGGLE_MOUSE_BUTTONS is enabled; passing them in non-mouse mode can produce broken prompts. Draw while the interaction is active and release the movie afterward.
Images are served from this repository, not hotlinked. Empty source fields and unknown identifiers are retained as unknown. View the official source or download the complete dataset.