{"hash":"0xCBB54CC7FFFFAB86","ns":"PLAYER","name":"_SET_PLAYER_COOPERATE_PROMPT_THIS_FRAME","slug":"_SET_PLAYER_COOPERATE_PROMPT_THIS_FRAME","official":false,"named":true,"luaName":"SetPlayerCooperatePromptThisFrame","game":"rdr3","apiset":"client","returnType":"void","params":[{"name":"player","type":"Player"},{"name":"targetPed","type":"Ped"},{"name":"promptOrder","type":"int"},{"name":"unknownFlag","type":"BOOL"}],"summary":"Activates the \"Surrender\" prompt for the specified player in the current frame.","descriptions":[{"source":"alloc8or","format":"text","body":"Activates the \"Surrender\" prompt for the specified player in the current frame.\nNotes:\n- Continuous Activation: Must be called every frame to keep the \"Surrender\" prompt active.\n- Prompt Grouping: Setting `promptOrder` to `1` ties the prompt to the `targetPed`'s prompt group.\n- Enemy Behavior: Stops enemies from continuing their attack when activated.\nVideo: https://youtu.be/AfHdJ0Nrs7Q"},{"source":"vorp","format":"text","body":"Activates the Surrender prompt for the specified player in the current frame."}],"examples":[{"lang":"lua","code":"// Calm targetPed\nCitizen.InvokeNative(0x3A2A2071DF5CC569,targetPed,PlayerPedId(),2)\n//Register lockon prompt to targetPed\nCitizen.InvokeNative(0x870708A6E147A9AD,targetPed,\"\",10.1,10.1, 0, 0.0, 0.0, 0, false, -1)\n\n// Activate the surrender prompt for the current player towards the targetPed\nwhile true do \n  Wait(0)\n  Citizen.InvokeNative(0xCBB54CC7FFFFAB86,PlayerId(),targetPed,1, false)\n  //_SET_PLAYER_SURRENDER_PROMPT_THIS_FRAME(PlayerId(), targetPed, 1, false);\nend","source":"vorp"}],"aliases":[],"enums":[],"related":[],"build":"1207","sources":["alloc8or","vorp"],"doc":3,"url":"https://natives.borderlinerp.com/natives/PLAYER/_SET_PLAYER_COOPERATE_PROMPT_THIS_FRAME","markdownUrl":"https://natives.borderlinerp.com/natives/PLAYER/_SET_PLAYER_COOPERATE_PROMPT_THIS_FRAME.md","snippets":{"lua":"SetPlayerCooperatePromptThisFrame(player, targetPed, promptOrder, unknownFlag)","luaInvoke":"Citizen.InvokeNative(0xCBB54CC7FFFFAB86, player, targetPed, promptOrder, unknownFlag)","js":"SetPlayerCooperatePromptThisFrame(player, targetPed, promptOrder, unknownFlag);","jsInvoke":"Citizen.invokeNative('0xCBB54CC7FFFFAB86', player, targetPed, promptOrder, unknownFlag);","csharp":"Function.Call((Hash)0xCBB54CC7FFFFAB86, player, targetPed, promptOrder, unknownFlag);","notes":["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."]}}