The Lab
PED native

_COMPUTE_SPEED_FOR_PED_MOVE_BLEND_RATIO

returns float2 paramsbuild 1207

Returns the move blend ratio of ped that corresponds to the given speed.

Signature

C
float _COMPUTE_SPEED_FOR_PED_MOVE_BLEND_RATIO(Ped ped, float speed); // 0xCA95924C893A0C91 b1207

Parameters

#NameType
1pedPed
2speedfloat

Facts

Facts about _COMPUTE_SPEED_FOR_PED_MOVE_BLEND_RATIO
Name
_COMPUTE_SPEED_FOR_PED_MOVE_BLEND_RATIO
Hash
0xCA95924C893A0C91
Namespace
Returns
float
Game build
1207

Examples

Calls by hash work in every RedM runtime. Replace the placeholder arguments with your own values.

Lua
local result = Citizen.InvokeNative(0xCA95924C893A0C91, -- _COMPUTE_SPEED_FOR_PED_MOVE_BLEND_RATIO
  PlayerPedId(), -- Ped ped
  0.0, -- float speed
  Citizen.ResultAsFloat()
)
print(result)
JavaScript
// Whole JS numbers are sent as integers: pass floats like 1.5 (or n + 0.0000001), never 1.
const result = Citizen.invokeNative("0xCA95924C893A0C91", // _COMPUTE_SPEED_FOR_PED_MOVE_BLEND_RATIO
  PlayerPedId(), // Ped ped
  0.0, // float speed
  Citizen.resultAsFloat()
);
console.log(result)
C#
float result = Function.Call<float>((Hash)0xCA95924C893A0C91, // _COMPUTE_SPEED_FOR_PED_MOVE_BLEND_RATIO
  API.PlayerPedId(), // Ped ped
  0.0f // float speed
);
All PED natives

Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.