RedM Natives

SET_IK_TARGET

Hash0xC32779C16FCEECD9
Runtime nameSetIkTarget
NamespacePED
SideClient
NameOfficial
Docs
Since build1207
GTA V hash0xC32779C16FCEECD9

Signature

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

Parameters

NameTypeDescription
pedPed—
ikIndexint—
entityLookAtEntity—
boneLookAtint—
offsetXfloat—
offsetYfloat—
offsetZfloat—
p7Any—
blendInDurationint—
blendOutDurationint—

Returns void

Usage

Lua
SetIkTarget(ped, ikIndex, entityLookAt, boneLookAt, offsetX, offsetY, offsetZ, p7, blendInDuration, blendOutDuration)

-- always works, by hash
Citizen.InvokeNative(0xC32779C16FCEECD9, ped, ikIndex, entityLookAt, boneLookAt, offsetX, offsetY, offsetZ, p7, blendInDuration, blendOutDuration)
JavaScript and C#
JavaScript
SetIkTarget(ped, ikIndex, entityLookAt, boneLookAt, offsetX, offsetY, offsetZ, p7, blendInDuration, blendOutDuration);

// by hash
Citizen.invokeNative('0xC32779C16FCEECD9', ped, ikIndex, entityLookAt, boneLookAt, offsetX + 0.0000001, offsetY + 0.0000001, offsetZ + 0.0000001, p7, blendInDuration, blendOutDuration);
C#
Function.Call((Hash)0xC32779C16FCEECD9, ped, ikIndex, entityLookAt, boneLookAt, offsetX, offsetY, offsetZ, p7, blendInDuration, blendOutDuration);
  • Float parameters: Lua integers (10, or whole numbers decoded from NUI/JSON) are sent as ints and read as garbage. Write 10.0 or value + 0.0. The generated JS wrappers add 0.0000001 to non-zero floats for the same reason.

Enums and flags

Sources

alloc8or RDR3 NativeDB

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