RedM Index logoRedM Index
NativesHashesClothesBlipsPropsItem Tool
Sign inGet started

Reference

  • Natives
  • Hashes
  • Clothes
  • Blips
  • Props

Namespace

  1. Reference
  2. Natives
  3. _SET_PLAYER_COOPERATE_PROMPT_THIS_FRAME

_SET_PLAYER_COOPERATE_PROMPT_THIS_FRAME

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

PLAYERBuild 1207

Signature

lua
SetPlayerCooperatePromptThisFrame(PlayerId(), targetPed, 0, true)
-- returns void

Parameters

NameTypeDescription
Player—
Ped—
int—
BOOL—

Usage

Named call
SetPlayerCooperatePromptThisFrame(PlayerId(), targetPed, 0, true)
InvokeNative
Citizen.InvokeNative(0xCBB54CC7FFFFAB86, PlayerId(), targetPed, 0, true)
lua 1
// 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

Details

Hash
Source
VORPCORE/RDR3natives

Source: VORPCORE/RDR3natives

On this page

  • Signature
  • Parameters
  • Usage
  • Details