HUDClient2 outputs

getMenuTriggerEventDetails

GET_MENU_TRIGGER_EVENT_DETAILS0x36C1451A88A09630

The GTA V native GET_MENU_TRIGGER_EVENT_DETAILS of the HUD namespace, as LS:MP client scripts call it: the global function getMenuTriggerEventDetails, in JavaScript and in Lua.

SignatureJavaScript
getMenuTriggerEventDetails(): [
  lastItemMenuId: number,
  selectedItemUniqueId: number
]
SignatureLua
getMenuTriggerEventDetails(): integer, integer

Usage

JavaScript
const [lastItemMenuId, selectedItemUniqueId] =
  getMenuTriggerEventDetails();
Lua
local lastItemMenuId, selectedItemUniqueId =
    getMenuTriggerEventDetails()

Parameters

None. The game writes the outputs: they are handed back, not passed in.

Returns

2 values, in this order: an array in JavaScript, multiple return values in Lua.

#ValueTypeJavaScriptLuaDescription
1lastItemMenuIdintnumberintegeroutput
2selectedItemUniqueIdintnumberintegeroutput

Reference

Namespace
HUD HUD
In the game
void GET_MENU_TRIGGER_EVENT_DETAILS(int* lastItemMenuId, int* selectedItemUniqueId)
Hash
0x36C1451A88A09630
Formerly
_GET_PAUSE_MENU_SELECTION

Open in the interactive natives reference