{"hash":"0xDC0CB602DEADBA53","ns":"HUD","name":"_UI_PROMPT_SET_MASH_WITH_RESISTANCE_CAN_FAIL_MODE","slug":"_UI_PROMPT_SET_MASH_WITH_RESISTANCE_CAN_FAIL_MODE","official":false,"named":true,"luaName":"UiPromptSetMashWithResistanceCanFailMode","game":"rdr3","apiset":"client","returnType":"void","params":[{"name":"prompt","type":"Prompt"},{"name":"mashes","type":"int"},{"name":"decreaseSpeed","type":"float"},{"name":"startProgress","type":"float"}],"summary":"Sets the mode for the given prompt to mash mode.","descriptions":[{"source":"alloc8or","format":"text","body":"Sets the mode for the given prompt to mash mode.\ndecreaseSpeed: 0.0f will result in the prompt not showing the mash progress at all. 0.01f - ?.0f. At speeds around 7.0f to 8.0f the prompt basically fails immediately if you don't start mashing right away.\nstartProgress: 0.0f - 1.0f is a percentage value, so 0.5f = 50% progress. Range: 0.0f - 1.0f"},{"source":"vorp","format":"text","body":"For startProgress, 0.0f - 1.0f is a percentage value, so 0.5f = 50% progress. Range: 0.0f - 1.0f\nFor decreaseSpeed, 0.0f will result in the prompt not showing the mash progress at all. 0.01f - ?.0f. At speeds around 7.0f to 8.0f the prompt basically fails immediately if you don't start mashing right away."}],"examples":[],"aliases":[],"enums":[],"related":[],"build":"1207","sources":["alloc8or","vorp"],"doc":2,"url":"https://natives.borderlinerp.com/natives/HUD/_UI_PROMPT_SET_MASH_WITH_RESISTANCE_CAN_FAIL_MODE","markdownUrl":"https://natives.borderlinerp.com/natives/HUD/_UI_PROMPT_SET_MASH_WITH_RESISTANCE_CAN_FAIL_MODE.md","snippets":{"lua":"UiPromptSetMashWithResistanceCanFailMode(prompt, mashes, decreaseSpeed, startProgress)","luaInvoke":"Citizen.InvokeNative(0xDC0CB602DEADBA53, prompt, mashes, decreaseSpeed, startProgress)","js":"UiPromptSetMashWithResistanceCanFailMode(prompt, mashes, decreaseSpeed, startProgress);","jsInvoke":"Citizen.invokeNative('0xDC0CB602DEADBA53', prompt, mashes, decreaseSpeed + 0.0000001, startProgress + 0.0000001);","csharp":"Function.Call((Hash)0xDC0CB602DEADBA53, prompt, mashes, decreaseSpeed, startProgress);","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."]}}