# PLAYER::_SET_PLAYER_COOPERATE_PROMPT_THIS_FRAME

- **Hash:** `0xCBB54CC7FFFFAB86`
- **Namespace:** PLAYER
- **Runtime name (Lua/JS):** `SetPlayerCooperatePromptThisFrame`
- **Side:** client (game native)
- **Name status:** community guess (may change)
- **Documentation:** described with examples
- **Since game build:** 1207
- **URL:** https://natives.borderlinerp.com/natives/PLAYER/_SET_PLAYER_COOPERATE_PROMPT_THIS_FRAME

## Signature

```c
void _SET_PLAYER_COOPERATE_PROMPT_THIS_FRAME(Player player, Ped targetPed, int promptOrder, BOOL unknownFlag);
```

## Parameters

- `player` (`Player`)
- `targetPed` (`Ped`)
- `promptOrder` (`int`)
- `unknownFlag` (`BOOL`)

## Returns

`void`

## Description

*Source: alloc8or RDR3 NativeDB*

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

*Source: VORPCORE RDR3natives*

Activates the Surrender prompt for the specified player in the current frame.

## Usage

### Lua

```lua
SetPlayerCooperatePromptThisFrame(player, targetPed, promptOrder, unknownFlag)

-- always available, by hash
Citizen.InvokeNative(0xCBB54CC7FFFFAB86, player, targetPed, promptOrder, unknownFlag)
```

### JavaScript

```js
SetPlayerCooperatePromptThisFrame(player, targetPed, promptOrder, unknownFlag);

// by hash
Citizen.invokeNative('0xCBB54CC7FFFFAB86', player, targetPed, promptOrder, unknownFlag);
```

### C#

```csharp
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 `InvokeNative` with the hash — it always works.

## Examples

*Source: VORPCORE RDR3natives*

```lua
// 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);
end
```

*Sources: alloc8or RDR3 NativeDB, VORPCORE RDR3natives.*
