From the reference libraryRedM

IK Natives

natives/IK/IK_natives.md

IK Natives

Red Dead Redemption 3 Native Functions Reference

Namespace: IK
Natives in this file: 5
Generated from: RDR3natives JSON data


_INVERSE_KINEMATICS_POINT_AT

Property Value
Native Name _INVERSE_KINEMATICS_POINT_AT
Hash 0x0B9F7A01EC50448D
Return Type void
Build 1207
Parameters ped (Ped), parameters (Any*)

Description: Make the ped point at with arms, must be called every frame.

Usage

Lua (Direct):

InverseKinematicsPointAt(ped, parameters)

Lua (Hash):

Citizen.InvokeNative(0x0B9F7A01EC50448D, ped, parameters)

Examples

struct parameters {
  bool isRightHand;
  Vector3 offset;
  Entity entity;
  int boneIndex;
  int flags; // (1 << 22) makes attach to point at
  int unk1; // 1-5
  int unk2; // 1-2
}

_INVERSE_KINEMATICS_IS_ACTIVE

Property Value
Native Name _INVERSE_KINEMATICS_IS_ACTIVE
Hash 0x6098139150DCC745
Return Type BOOL
Build 1207
Parameters ped (Ped), ik (int)

Description: Get the ped ik activity state.

Usage

Lua (Direct):

local result = InverseKinematicsIsActive(ped, ik)

Lua (Hash):

local result = Citizen.InvokeNative(0x6098139150DCC745, ped, ik)

_0x873C792E07A32C8B

Property Value
Native Name _0x873C792E07A32C8B
Hash 0x873C792E07A32C8B
Return Type void
Build 1207
Parameters ped1 (Ped), ped2 (Ped)

Parameters

  • ped1 (Ped)
  • ped2 (Ped)

Usage

Lua (Direct):

_0x873C792E07A32C8B(ped1, ped2)

Lua (Hash):

Citizen.InvokeNative(0x873C792E07A32C8B, ped1, ped2)

_INVERSE_KINEMATICS_REQUEST_LOOK_AT

Property Value
Native Name _INVERSE_KINEMATICS_REQUEST_LOOK_AT
Hash 0x66F9EB44342BB4C5
Return Type void
Build 1207
Parameters ped (Ped), args (Any*)

Parameters

  • ped (Ped)
  • args (Any*)

Usage

Lua (Direct):

InverseKinematicsRequestLookAt(ped, args)

Lua (Hash):

Citizen.InvokeNative(0x66F9EB44342BB4C5, ped, args)

_INVERSE_KINEMATICS_SET_DISABLED_FOR_PED

Description: Seems to disable IK on ped

Property Value
Native Name _INVERSE_KINEMATICS_SET_DISABLED_FOR_PED
Hash 0x0EABF182FBB63D72
Return Type void
Build 1207
Parameters ped (Ped), p1 (int), p2 (BOOL)

Parameters

  • ped (Ped)
  • p1 (int)
  • p2 (BOOL)

Usage

Lua (Direct):

InverseKinematicsSetDisabledForPed(ped, p1, p2)

Lua (Hash):

Citizen.InvokeNative(0x0EABF182FBB63D72, ped, p1, p2)

End of IK natives

Back to documentation