_IK_SET_FOCUS_ENTITY_FOR_PED
Sets or clears the ped's current IK focus/target entity reference.
Hash
0x873C792E07A32C8BRuntime name
IkSetFocusEntityForPedNamespaceIK
SideClient
NameCommunity guess
Docs
Since build1207
Signature
void _IK_SET_FOCUS_ENTITY_FOR_PED(Ped ped, Entity targetEntity);Parameters
| Name | Type | Description |
|---|---|---|
ped | Ped | — |
targetEntity | Entity | — |
Returns void
Description
Sets or clears the ped's current IK focus/target entity reference.
Notes:
- Pass 0 as targetEntity to clear/reset the current IK focus entity.
- Commonly used alongside look-at / anim-scene transitions / TASK_CLEAR_LOOK_AT.
- Scripts often set this to the player ped when the actor should focus the player, and reset it back to 0 when leaving that state.
Usage
IkSetFocusEntityForPed(ped, targetEntity)
-- always works, by hash
Citizen.InvokeNative(0x873C792E07A32C8B, ped, targetEntity)JavaScript and C#
IkSetFocusEntityForPed(ped, targetEntity);
// by hash
Citizen.invokeNative('0x873C792E07A32C8B', ped, targetEntity);Function.Call((Hash)0x873C792E07A32C8B, ped, targetEntity);- The name is a community guess and may change. If the named call is missing in your client build, use
InvokeNativewith the hash — it always works.
Sources
Something wrong or missing? Contribute a verified note — corrections ship through pull requests.