getCharacterMenuPedFloatStat
GET_CHARACTER_MENU_PED_FLOAT_STAT0x8F08017F9D7C47BDThe GTA V native GET_CHARACTER_MENU_PED_FLOAT_STAT of the HUD namespace, as LS:MP client scripts call it: the global function getCharacterMenuPedFloatStat, in JavaScript and in Lua.
getCharacterMenuPedFloatStat(statHash: number, p2: boolean): [
ok: boolean,
outValue: number
]getCharacterMenuPedFloatStat(statHash: number, p2: boolean): boolean, numberUsage
JavaScript
const [ok, outValue] = getCharacterMenuPedFloatStat(statHash, p2);Lua
local ok, outValue = getCharacterMenuPedFloatStat(statHash, p2)Parameters
| Parameter | Type | JavaScript | Lua |
|---|---|---|---|
statHash | float | number | number |
p2 | BOOL | boolean | boolean |
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_CHARACTER_MENU_PED_FLOAT_STAT(float statHash, float* outValue, BOOL p2)- Hash
0x8F08017F9D7C47BD