_SET_PLAYER_COOPERATE_PROMPT_THIS_FRAME
Activates the "Surrender" prompt for the specified player in the current frame.
Hash
0xCBB54CC7FFFFAB86Runtime name
SetPlayerCooperatePromptThisFrameNamespacePLAYER
SideClient
NameCommunity guess
Docs
Since build1207
Signature
void _SET_PLAYER_COOPERATE_PROMPT_THIS_FRAME(Player player, Ped targetPed, int promptOrder, BOOL unknownFlag);Parameters
| Name | Type | Description |
|---|---|---|
player | Player | — |
targetPed | Ped | — |
promptOrder | int | — |
unknownFlag | BOOL | — |
Returns void
Description
Activates the "Surrender" prompt for the specified player in the current frame.
Notes:
- Continuous Activation: Must be called every frame to keep the "Surrender" prompt active.
- Prompt Grouping: Setting promptOrder to 1 ties the prompt to the targetPed's prompt group.
- Enemy Behavior: Stops enemies from continuing their attack when activated.
Video: https://youtu.be/AfHdJ0Nrs7Q
Activates the Surrender prompt for the specified player in the current frame.
Usage
SetPlayerCooperatePromptThisFrame(player, targetPed, promptOrder, unknownFlag)
-- always works, by hash
Citizen.InvokeNative(0xCBB54CC7FFFFAB86, player, targetPed, promptOrder, unknownFlag)JavaScript and C#
SetPlayerCooperatePromptThisFrame(player, targetPed, promptOrder, unknownFlag);
// by hash
Citizen.invokeNative('0xCBB54CC7FFFFAB86', player, targetPed, promptOrder, unknownFlag);Function.Call((Hash)0xCBB54CC7FFFFAB86, player, targetPed, promptOrder, unknownFlag);- The name is a community guess and may change. If the named call is missing in your client build, use
InvokeNativewith the hash — it always works.
Examples
// Calm targetPed
Citizen.InvokeNative(0x3A2A2071DF5CC569,targetPed,PlayerPedId(),2)
//Register lockon prompt to targetPed
Citizen.InvokeNative(0x870708A6E147A9AD,targetPed,"",10.1,10.1, 0, 0.0, 0.0, 0, false, -1)
// Activate the surrender prompt for the current player towards the targetPed
while true do
Wait(0)
Citizen.InvokeNative(0xCBB54CC7FFFFAB86,PlayerId(),targetPed,1, false)
//_SET_PLAYER_SURRENDER_PROMPT_THIS_FRAME(PlayerId(), targetPed, 1, false);
endSources
alloc8or RDR3 NativeDB · VORPCORE RDR3natives
Something wrong or missing? Contribute a verified note — corrections ship through pull requests.