{"hash":"0x46BF2A810679D6E6","ns":"PED","name":"_COMPUTE_PED_MOVE_BLEND_RATIO_FOR_MAX_SPEED","slug":"_COMPUTE_PED_MOVE_BLEND_RATIO_FOR_MAX_SPEED","official":false,"named":true,"luaName":"ComputePedMoveBlendRatioForMaxSpeed","game":"rdr3","apiset":"client","returnType":"float","params":[{"name":"ped","type":"Ped"},{"name":"maxMoveBlendRatio","type":"float"}],"summary":"Returns estimated max speed (m/s) for the ped move blend ratio.","descriptions":[{"source":"alloc8or","format":"text","body":"Returns estimated max speed (m/s) for the ped move blend ratio. Move blend ratio is in a range of 0.0 - 3.0.\n_COMPUTE_S*"},{"source":"vorp","format":"text","body":"Returns vehicle (desired) speed\n_COMPUTE_(VEHICLE_SPEED_USING_BLEND_RATIO?)*"}],"examples":[],"aliases":[],"enums":[],"related":[],"build":"1207","sources":["alloc8or","vorp"],"doc":2,"url":"https://natives.borderlinerp.com/natives/PED/_COMPUTE_PED_MOVE_BLEND_RATIO_FOR_MAX_SPEED","markdownUrl":"https://natives.borderlinerp.com/natives/PED/_COMPUTE_PED_MOVE_BLEND_RATIO_FOR_MAX_SPEED.md","snippets":{"lua":"local retval = ComputePedMoveBlendRatioForMaxSpeed(ped, maxMoveBlendRatio)","luaInvoke":"local retval = Citizen.InvokeNative(0x46BF2A810679D6E6, ped, maxMoveBlendRatio, Citizen.ResultAsFloat())","js":"const retval = ComputePedMoveBlendRatioForMaxSpeed(ped, maxMoveBlendRatio);","jsInvoke":"const retval = Citizen.invokeNative('0x46BF2A810679D6E6', ped, maxMoveBlendRatio + 0.0000001, Citizen.returnResultAnyway(), Citizen.resultAsFloat());","csharp":"float retval = Function.Call<float>((Hash)0x46BF2A810679D6E6, ped, maxMoveBlendRatio);","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."]}}