{"hash":"0xCA95924C893A0C91","ns":"PED","name":"_COMPUTE_SPEED_FOR_PED_MOVE_BLEND_RATIO","slug":"_COMPUTE_SPEED_FOR_PED_MOVE_BLEND_RATIO","official":false,"named":true,"luaName":"ComputeSpeedForPedMoveBlendRatio","game":"rdr3","apiset":"client","returnType":"float","params":[{"name":"ped","type":"Ped"},{"name":"speed","type":"float"}],"summary":"Returns ped move blend ratio corresponding to the specified speed.","descriptions":[{"source":"alloc8or","format":"text","body":"Returns ped move blend ratio corresponding to the specified speed."},{"source":"vorp","format":"text","body":"Returns vehicle speed"}],"examples":[],"aliases":[],"enums":[],"related":[],"build":"1207","sources":["alloc8or","vorp"],"doc":2,"url":"https://natives.borderlinerp.com/natives/PED/_COMPUTE_SPEED_FOR_PED_MOVE_BLEND_RATIO","markdownUrl":"https://natives.borderlinerp.com/natives/PED/_COMPUTE_SPEED_FOR_PED_MOVE_BLEND_RATIO.md","snippets":{"lua":"local retval = ComputeSpeedForPedMoveBlendRatio(ped, speed)","luaInvoke":"local retval = Citizen.InvokeNative(0xCA95924C893A0C91, ped, speed, Citizen.ResultAsFloat())","js":"const retval = ComputeSpeedForPedMoveBlendRatio(ped, speed);","jsInvoke":"const retval = Citizen.invokeNative('0xCA95924C893A0C91', ped, speed + 0.0000001, Citizen.returnResultAnyway(), Citizen.resultAsFloat());","csharp":"float retval = Function.Call<float>((Hash)0xCA95924C893A0C91, ped, speed);","notes":["Float parameters: Lua integers (`10`, or whole numbers decoded from NUI/JSON) are sent as ints and read as garbage. Write `10.0` or `value + 0.0`. The generated JS wrappers add `0.0000001` to non-zero floats for the same reason.","The name is a community guess and may change. If the named call is missing in your client build, use `InvokeNative` with the hash — it always works."]}}