RedM Natives

_SET_PLAYER_COOPERATE_PROMPT_THIS_FRAME

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

Hash0xCBB54CC7FFFFAB86
Runtime nameSetPlayerCooperatePromptThisFrame
NamespacePLAYER
SideClient
NameCommunity guess
Docs
Since build1207

Signature

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

Parameters

NameTypeDescription
playerPlayer—
targetPedPed—
promptOrderint—
unknownFlagBOOL—

Returns void

Description

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

VORPCORE RDR3natives

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

Usage

Lua
SetPlayerCooperatePromptThisFrame(player, targetPed, promptOrder, unknownFlag)

-- always works, by hash
Citizen.InvokeNative(0xCBB54CC7FFFFAB86, player, targetPed, promptOrder, unknownFlag)
JavaScript and C#
JavaScript
SetPlayerCooperatePromptThisFrame(player, targetPed, promptOrder, unknownFlag);

// by hash
Citizen.invokeNative('0xCBB54CC7FFFFAB86', player, targetPed, promptOrder, unknownFlag);
C#
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

LUA · VORPCORE RDR3natives
// 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

Something wrong or missing? Contribute a verified note — corrections ship through pull requests.