RedM Natives

_IK_SET_FOCUS_ENTITY_FOR_PED

Sets or clears the ped's current IK focus/target entity reference.

Hash0x873C792E07A32C8B
Runtime nameIkSetFocusEntityForPed
NamespaceIK
SideClient
NameCommunity guess
Docs
Since build1207

Signature

void _IK_SET_FOCUS_ENTITY_FOR_PED(Ped ped, Entity targetEntity);

Parameters

NameTypeDescription
pedPed—
targetEntityEntity—

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

Lua
IkSetFocusEntityForPed(ped, targetEntity)

-- always works, by hash
Citizen.InvokeNative(0x873C792E07A32C8B, ped, targetEntity)
JavaScript and C#
JavaScript
IkSetFocusEntityForPed(ped, targetEntity);

// by hash
Citizen.invokeNative('0x873C792E07A32C8B', ped, targetEntity);
C#
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 InvokeNative with the hash — it always works.

Sources

alloc8or RDR3 NativeDB

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