getPedCurrentMoveBlendRatio
GET_PED_CURRENT_MOVE_BLEND_RATIO0xF60165E1D2C5370BThe GTA V native GET_PED_CURRENT_MOVE_BLEND_RATIO of the PED namespace, as LS:MP client scripts call it: the global function getPedCurrentMoveBlendRatio, in JavaScript and in Lua.
getPedCurrentMoveBlendRatio(ped: Ped): [
ok: boolean,
speedX: number,
speedY: number
]getPedCurrentMoveBlendRatio(ped: Ped): boolean, number, numberUsage
JavaScript
const [ok, speedX, speedY] = getPedCurrentMoveBlendRatio(ped);Lua
local ok, speedX, speedY = getPedCurrentMoveBlendRatio(ped)Parameters
| Parameter | Type | JavaScript | Lua |
|---|---|---|---|
ped | Ped | number | integer |
Returns
3 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 | speedX | float | number | number | output |
| 3 | speedY | float | number | number | output |
Reference
- Namespace
- Ped PED
- In the game
BOOL GET_PED_CURRENT_MOVE_BLEND_RATIO(Ped ped, float* speedX, float* speedY)- Hash
0xF60165E1D2C5370B- Formerly
_GET_PED_CURRENT_MOVEMENT_SPEED