getMenuPedFloatStat
GET_MENU_PED_FLOAT_STAT0x5FBD7095FE7AE57FThe GTA V native GET_MENU_PED_FLOAT_STAT of the HUD namespace, as LS:MP client scripts call it: the global function getMenuPedFloatStat, in JavaScript and in Lua.
getMenuPedFloatStat(statHash: Hash): [ok: boolean, outValue: number]getMenuPedFloatStat(statHash: Hash): boolean, numberUsage
JavaScript
const [ok, outValue] = getMenuPedFloatStat(statHash);Lua
local ok, outValue = getMenuPedFloatStat(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 | float | number | number | output |
Reference
- Namespace
- HUD HUD
- In the game
BOOL GET_MENU_PED_FLOAT_STAT(Hash statHash, float* outValue)- Hash
0x5FBD7095FE7AE57F