GET_PED_CURRENT_MOVE_BLEND_RATIO
Old name: _GET_PED_CURRENT_MOVEMENT_SPEED
Hash
0xF60165E1D2C5370BRuntime name
GetPedCurrentMoveBlendRatioNamespacePED
SideClient
NameOfficial
Docs
Since build1207
GTA V hash
0xF60165E1D2C5370BSignature
BOOL GET_PED_CURRENT_MOVE_BLEND_RATIO(Ped ped, float* speedX, float* speedY);Parameters
| Name | Type | Description |
|---|---|---|
ped | Ped | — |
speedX | float* | — |
speedY | float* | — |
Returns BOOL
Description
Old name: _GET_PED_CURRENT_MOVEMENT_SPEED
Usage
local retval, speedX, speedY = GetPedCurrentMoveBlendRatio(ped)
-- always works, by hash
local retval, speedX, speedY = Citizen.InvokeNative(0xF60165E1D2C5370B, ped, Citizen.PointerValueFloat(), Citizen.PointerValueFloat(), Citizen.ReturnResultAnyway())JavaScript and C#
const [retval, speedX, speedY] = GetPedCurrentMoveBlendRatio(ped);
// by hash
const [retval, speedX, speedY] = Citizen.invokeNative('0xF60165E1D2C5370B', ped, Citizen.pointerValueFloat(), Citizen.pointerValueFloat(), Citizen.returnResultAnyway());var speedX = new OutputArgument();
var speedY = new OutputArgument();
bool retval = Function.Call<bool>((Hash)0xF60165E1D2C5370B, ped, speedX, speedY);
// speedX.GetResult<float>()
// speedY.GetResult<float>()- Pointer (out) arguments are not passed in Lua/JS: their values are returned after the result, in order.
Sources
Something wrong or missing? Contribute a verified note — corrections ship through pull requests.