HUDClient1 output

getMenuPedBoolStat

GET_MENU_PED_BOOL_STAT0x052991E59076E4E4

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

SignatureJavaScript
getMenuPedBoolStat(statHash: Hash): [ok: boolean, outValue: boolean]
SignatureLua
getMenuPedBoolStat(statHash: Hash): boolean, boolean

Usage

JavaScript
const [ok, outValue] = getMenuPedBoolStat(statHash);
Lua
local ok, outValue = getMenuPedBoolStat(statHash)

Parameters

ParameterTypeJavaScriptLua
statHashHashnumberinteger

Returns

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

#ValueTypeJavaScriptLuaDescription
1okBOOLbooleanbooleanThe native’s own return value.
2outValueBOOLbooleanbooleanoutput

Notes

From the community native database. Names are LS:MP’s; samples may be written for C++ or another framework.

p0 was always 0xAE2602A3.

Reference

Namespace
HUD HUD
In the game
BOOL GET_MENU_PED_BOOL_STAT(Hash statHash, BOOL* outValue)
Hash
0x052991E59076E4E4

Open in the interactive natives reference