From the reference libraryRedM

AICOVERPOINT Natives

natives/AICOVERPOINT/AICOVERPOINT_natives.md

AICOVERPOINT Natives

Red Dead Redemption 3 Native Functions Reference

Namespace: AICOVERPOINT
Natives in this file: 17
Generated from: RDR3natives JSON data


TASK_ENTER_COVER

Property Value
Native Name TASK_ENTER_COVER
Hash 0x4972A022AE6DAFA1
Return Type void
Build 1207
Parameters ped (Ped)

Parameters

  • ped (Ped)

Usage

Lua (Direct):

TaskEnterCover(ped)

Lua (Hash):

Citizen.InvokeNative(0x4972A022AE6DAFA1, ped)

TASK_EXIT_COVER

Property Value
Native Name TASK_EXIT_COVER
Hash 0x2BC4A6D92D140112
Return Type void
Build 1207
Parameters ped (Ped)

Parameters

  • ped (Ped)

Usage

Lua (Direct):

TaskExitCover(ped)

Lua (Hash):

Citizen.InvokeNative(0x2BC4A6D92D140112, ped)

_GET_PED_FROM_COVER_POINT

Property Value
Native Name _GET_PED_FROM_COVER_POINT
Hash 0x140B3CB1D424A945
Return Type Ped
Build 1207
Parameters coverpoint (ScrHandle)

Description: returns the ped that is using this cover point created by ADD_COVER_POINT and adding the ped using tasks like TASK_PUT_PED_DIRECTLY_(*

Usage

Lua (Direct):

local result = GetPedFromCoverPoint(coverpoint)

Lua (Hash):

local result = Citizen.InvokeNative(0x140B3CB1D424A945, coverpoint)

_0x3C7A9C2C953128FE

Property Value
Native Name _0x3C7A9C2C953128FE
Hash 0x3C7A9C2C953128FE
Return Type void
Build 1207
Parameters ped (Ped)

Parameters

  • ped (Ped)

Usage

Lua (Direct):

_0x3C7A9C2C953128FE(ped)

Lua (Hash):

Citizen.InvokeNative(0x3C7A9C2C953128FE, ped)

_0x53E4D0C079CA6855

Property Value
Native Name _0x53E4D0C079CA6855
Hash 0x53E4D0C079CA6855
Return Type Entity
Build 1207
Parameters handle (ScrHandle)

Parameters

  • handle (ScrHandle)

Usage

Lua (Direct):

local result = _0x53E4D0C079CA6855(handle)

Lua (Hash):

local result = Citizen.InvokeNative(0x53E4D0C079CA6855, handle)

_ACTIVATE_COVER_LAYER

Property Value
Native Name _ACTIVATE_COVER_LAYER
Hash 0x64340DC208D671D5
Return Type void
Build 1207
Parameters coverLayer (char*)

Description: activates a cover layer, these seem to be for specifc scenes in SP for example where a table is flipped using "grand_korr_poker_table_flipped" see more in levels\rdr3\coverlayers.rpf

Usage

Lua (Direct):

ActivateCoverLayer(coverLayer)

Lua (Hash):

Citizen.InvokeNative(0x64340DC208D671D5, coverLayer)

_DEACTIVATE_COVER_LAYER

Property Value
Native Name _DEACTIVATE_COVER_LAYER
Hash 0x7A1FDCF35EAA140F
Return Type void
Build 1207
Parameters coverLayer (char*)

Description: deactivates a cover layer activated with 0x64340DC208D671D5 coverLayer: see levels_0/levels/rdr3/coverlayers

Usage

Lua (Direct):

DeactivateCoverLayer(coverLayer)

Lua (Hash):

Citizen.InvokeNative(0x7A1FDCF35EAA140F, coverLayer)

_GET_PED_COVER_POINT_TRANSITION_STATE

Property Value
Native Name _GET_PED_COVER_POINT_TRANSITION_STATE
Hash 0x957D7E750216D74B
Return Type int
Build 1207
Parameters ped (Ped)

Description: returns the active transition state of a cover point for about 2 seconds unless its peeking 1 - transition from pointing a gun to not pointing a gun 2 - transition to pointing a gun 3 - broke the window 4 - when opening a door while in cover (a prompt will show and once pressed state is changed to 4) 5 - cover transition like from one corner of a house to the other corner 6 - changing cover to cover like crossing from one side of the door to the other 7 - when the ped is facing foward with the camera, might be to detect when going from left to right 8 - when the ped is peeking through a door window etc (this will return 8 while is in peek) 9 - when a ped is aiming in crouch and enters cover (it doesnt always trigger) 10 - enters cover 12 - leaves cover 16 - changed to crouch or to standing up position

Usage

Lua (Direct):

local result = GetPedCoverPointTransitionState(ped)

Lua (Hash):

local result = Citizen.InvokeNative(0x957D7E750216D74B, ped)

_0xEBA51A294C73292E

Property Value
Native Name _0xEBA51A294C73292E
Hash 0xEBA51A294C73292E
Return Type void
Build 1207
Parameters args (Any*)

Parameters

  • args (Any*)

Usage

Lua (Direct):

_0xEBA51A294C73292E(args)

Lua (Hash):

Citizen.InvokeNative(0xEBA51A294C73292E, args)

_ADD_SCRIPTED_COVER_POINT

Property Value
Native Name _ADD_SCRIPTED_COVER_POINT
Hash 0x975BD6351648935F
Return Type ScrHandle
Build 1207
Parameters data (Any*)

Parameters

  • data (Any*)

Usage

Lua (Direct):

local result = AddScriptedCoverPoint(data)

Lua (Hash):

local result = Citizen.InvokeNative(0x975BD6351648935F, data)

_ARE_LOAD_COVER_ANIMS_LOADED

Property Value
Native Name _ARE_LOAD_COVER_ANIMS_LOADED
Hash 0x8CBE916CFC64AD5C
Return Type BOOL
Build 1207
Parameters ped (Ped)

Parameters

  • ped (Ped)

Usage

Lua (Direct):

local result = AreLoadCoverAnimsLoaded(ped)

Lua (Hash):

local result = Citizen.InvokeNative(0x8CBE916CFC64AD5C, ped)

_DOES_COVER_POINT_EXIST

Property Value
Native Name _DOES_COVER_POINT_EXIST
Hash 0xC276FE69DDA22BAD
Return Type BOOL
Build 1207
Parameters handle (ScrHandle)

Parameters

  • handle (ScrHandle)

Usage

Lua (Direct):

local result = DoesCoverPointExist(handle)

Lua (Hash):

local result = Citizen.InvokeNative(0xC276FE69DDA22BAD, handle)

_REQUEST_FLINCH_COVER_ANIM

Description: Makes ped flinch (if in cover) like they have been shot at

Property Value
Native Name _REQUEST_FLINCH_COVER_ANIM
Hash 0x2A31D13C5F021D0D
Return Type void
Build 1207
Parameters ped (Ped)

Parameters

  • ped (Ped)

Usage

Lua (Direct):

RequestFlinchCoverAnim(ped)

Lua (Hash):

Citizen.InvokeNative(0x2A31D13C5F021D0D, ped)

_TASK_AI_SEEK_COVER_TO_COVER_POINT

Property Value
Native Name _TASK_AI_SEEK_COVER_TO_COVER_POINT
Hash 0x89783FDDF079C88D
Return Type void
Build 1207
Parameters args (Any*)

Parameters

  • args (Any*)

Usage

Lua (Direct):

TaskAiSeekCoverToCoverPoint(args)

Lua (Hash):

Citizen.InvokeNative(0x89783FDDF079C88D, args)

End of AICOVERPOINT natives

_ADD_COVER_BLOCKING_AREA

Property Value
Native Name _ADD_COVER_BLOCKING_AREA
Hash 0x733077295AB51304
Return Type void
Build 1207
API Set client
Parameters args (Any*)

Description: args: f_0 = Volume Handle f_1 = integer (?) (only the number 1 is ever used here, or is not used at all) f_2 = integer (-1 to 32 in R* Scripts)

@alignas(8)
struct unk {
  int m_volumeHandle;
  bool m_unk;
  // seems to be the same flags that are used in ADD_COVER_BLOCKING_AREA, the ordering
  // is also the same, but has an extra flag it can use (2, 4, 8, 16) 
  u32 m_unkFlag;
}

Usage

Lua (Direct):

AddCoverBlockingArea(args)

Lua (Hash):

Citizen.InvokeNative(0x733077295AB51304, args)

_GET_COVER_POINT_STATE_FROM_PED

Property Value
Native Name _GET_COVER_POINT_STATE_FROM_PED
Hash 0x5F5B1B7E8E8F94C6
Return Type int
Build 1207
API Set client
Parameters ped (Ped)

Description: 1 = In cover while crouched 2 = In cover while standing 3 = Not in cover

Usage

Lua (Direct):

local result = GetCoverPointStateFromPed(ped)

Lua (Hash):

local result = Citizen.InvokeNative(0x5F5B1B7E8E8F94C6, ped)

_STOP_RUNNING_COVER_ANIMS

Property Value
Native Name _STOP_RUNNING_COVER_ANIMS
Hash 0x1A7A802B2301EDC0
Return Type void
Build 1207
API Set client
Parameters ped (Ped)

Description: Stops running cover anims and releases them STOP_RENDERING* - _STOP_SCRIPTED*

Usage

Lua (Direct):

StopRunningCoverAnims(ped)

Lua (Hash):

Citizen.InvokeNative(0x1A7A802B2301EDC0, ped)
Back to documentation