# PED::SET_IK_TARGET

- **Hash:** `0xC32779C16FCEECD9`
- **Namespace:** PED
- **Runtime name (Lua/JS):** `SetIkTarget`
- **Side:** client (game native)
- **Name status:** official
- **Documentation:** named only
- **Since game build:** 1207
- **URL:** https://natives.borderlinerp.com/natives/PED/SET_IK_TARGET

## 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);
```

## Parameters

- `ped` (`Ped`)
- `ikIndex` (`int`)
- `entityLookAt` (`Entity`)
- `boneLookAt` (`int`)
- `offsetX` (`float`)
- `offsetY` (`float`)
- `offsetZ` (`float`)
- `p7` (`Any`)
- `blendInDuration` (`int`)
- `blendOutDuration` (`int`)

## Returns

`void`

## Usage

### Lua

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

-- always available, by hash
Citizen.InvokeNative(0xC32779C16FCEECD9, ped, ikIndex, entityLookAt, boneLookAt, offsetX, offsetY, offsetZ, p7, blendInDuration, blendOutDuration)
```

### JavaScript

```js
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#

```csharp
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.

## Related enums

- [eAnimBoneTag](https://natives.borderlinerp.com/enums/eAnimBoneTag.md) — 911 values

*Sources: alloc8or RDR3 NativeDB.*
