The Lab
PED native

SET_IK_TARGET

returns void10 paramsbuild 1207

Makes the IK limb ikIndex of ped reach towards the bone boneLookAt of entityLookAt plus an offset, with blend in and out durations.

Signature

C
void SET_IK_TARGET(Ped ped, int ikIndex, Entity entityLookAt, int boneLookAt, float offsetX, float offsetY, float offsetZ, Any p7, int blendInDuration, int blendOutDuration); // 0xC32779C16FCEECD9 b1207

Parameters

#NameType
1pedPed
2ikIndexint
3entityLookAtEntity
4boneLookAtint
5offsetXfloat
6offsetYfloat
7offsetZfloat
8p7Any
9blendInDurationint
10blendOutDurationint

Facts

Facts about SET_IK_TARGET
Name
SET_IK_TARGET
Hash
0xC32779C16FCEECD9
Namespace
Returns
void
Game build
1207

Examples

Calls by hash work in every RedM runtime. Replace the placeholder arguments with your own values.

Lua
Citizen.InvokeNative(0xC32779C16FCEECD9, -- SET_IK_TARGET
  PlayerPedId(), -- Ped ped
  0, -- int ikIndex
  PlayerPedId(), -- Entity entityLookAt
  0, -- int boneLookAt
  0.0, -- float offsetX
  0.0, -- float offsetY
  0.0, -- float offsetZ
  0, -- Any p7
  0, -- int blendInDuration
  0 -- int blendOutDuration
)
JavaScript
// Whole JS numbers are sent as integers: pass floats like 1.5 (or n + 0.0000001), never 1.
Citizen.invokeNative("0xC32779C16FCEECD9", // SET_IK_TARGET
  PlayerPedId(), // Ped ped
  0, // int ikIndex
  PlayerPedId(), // Entity entityLookAt
  0, // int boneLookAt
  0.0, // float offsetX
  0.0, // float offsetY
  0.0, // float offsetZ
  0, // Any p7
  0, // int blendInDuration
  0 // int blendOutDuration
);
C#
Function.Call((Hash)0xC32779C16FCEECD9, // SET_IK_TARGET
  API.PlayerPedId(), // Ped ped
  0, // int ikIndex
  API.PlayerPedId(), // Entity entityLookAt
  0, // int boneLookAt
  0.0f, // float offsetX
  0.0f, // float offsetY
  0.0f, // float offsetZ
  0, // Any p7
  0, // int blendInDuration
  0 // int blendOutDuration
);
All PED natives

Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.