getMenuPedBoolStat
GET_MENU_PED_BOOL_STAT0x052991E59076E4E4The 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.
getMenuPedBoolStat(statHash: Hash): [ok: boolean, outValue: boolean]getMenuPedBoolStat(statHash: Hash): boolean, booleanUsage
JavaScript
const [ok, outValue] = getMenuPedBoolStat(statHash);Lua
local ok, outValue = getMenuPedBoolStat(statHash)Parameters
| Parameter | Type | JavaScript | Lua |
|---|---|---|---|
statHash | Hash | number | integer |
Returns
2 values, in this order: an array in JavaScript, multiple return values in Lua.
| # | Value | Type | JavaScript | Lua | Description |
|---|---|---|---|---|---|
| 1 | ok | BOOL | boolean | boolean | The native’s own return value. |
| 2 | outValue | BOOL | boolean | boolean | output |
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