RedM Natives

GET_PED_CURRENT_MOVE_BLEND_RATIO

Old name: _GET_PED_CURRENT_MOVEMENT_SPEED

Hash0xF60165E1D2C5370B
Runtime nameGetPedCurrentMoveBlendRatio
NamespacePED
SideClient
NameOfficial
Docs
Since build1207
GTA V hash0xF60165E1D2C5370B

Signature

BOOL GET_PED_CURRENT_MOVE_BLEND_RATIO(Ped ped, float* speedX, float* speedY);

Parameters

NameTypeDescription
pedPed—
speedXfloat*—
speedYfloat*—

Returns BOOL

Description

Old name: _GET_PED_CURRENT_MOVEMENT_SPEED

Usage

Lua
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#
JavaScript
const [retval, speedX, speedY] = GetPedCurrentMoveBlendRatio(ped);

// by hash
const [retval, speedX, speedY] = Citizen.invokeNative('0xF60165E1D2C5370B', ped, Citizen.pointerValueFloat(), Citizen.pointerValueFloat(), Citizen.returnResultAnyway());
C#
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

alloc8or RDR3 NativeDB

Something wrong or missing? Contribute a verified note — corrections ship through pull requests.