RedM Natives

_INVERSE_KINEMATICS_POINT_AT

Makes the ped point at a target with an arm.

Hash0x0B9F7A01EC50448D
Runtime nameInverseKinematicsPointAt
NamespaceIK
SideClient
NameCommunity guess
Docs
Since build1207

Signature

void _INVERSE_KINEMATICS_POINT_AT(Ped ped, Any* args);

Parameters

NameTypeDescription
pedPed—
argsAny*—

Returns void

Description

alloc8or RDR3 NativeDB

Makes the ped point at a target with an arm. Must be called every frame while the point-at behavior should remain active.

args:
struct PointAtParams
{
	alignas(8) BOOL   isRightHand;
	alignas(8) float  offsetX;
	alignas(8) float  offsetY;
	alignas(8) float  offsetZ;
	alignas(8) Entity entity;
	alignas(8) int    boneIndex;
	alignas(8) int    flags;     // (1 << 22) attaches the point-at to the target
	alignas(8) int    p6;        // observed 1..5
	alignas(8) int    p7;        // observed 1..2
};

VORPCORE RDR3natives

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

Usage

Lua
local args = InverseKinematicsPointAt(ped, args)

-- always works, by hash
local args = Citizen.InvokeNative(0x0B9F7A01EC50448D, ped, Citizen.PointerValueIntInitialized(args))
JavaScript and C#
JavaScript
const args = InverseKinematicsPointAt(ped, args);

// by hash
const args = Citizen.invokeNative('0x0B9F7A01EC50448D', ped, Citizen.pointerValueIntInitialized(args));
C#
var args = new OutputArgument();
Function.Call((Hash)0x0B9F7A01EC50448D, ped, args);
// args.GetResult<int>()
  • The last argument is an in/out pointer: pass its initial value, and the updated value is returned after the result.
  • Any* arguments are often structs. Build them with a DataView buffer and pass it with :Buffer() — see the examples and notes below.
  • 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
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
}

Sources

alloc8or RDR3 NativeDB · VORPCORE RDR3natives

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