The Lab
PED native

_SET_INTERACTION_LOCKON_FLAG

returns void4 paramsbuild 1207

Enables or disables the interaction lock-on flag flag between ped and player.

Signature

C
void _SET_INTERACTION_LOCKON_FLAG(Ped ped, Player player, int flag, BOOL enable); // 0xFECA2081F61ED2CD b1207

Parameters

#NameType
1pedPed
2playerPlayer
3flagint
4enableBOOL

Facts

Facts about _SET_INTERACTION_LOCKON_FLAG
Name
_SET_INTERACTION_LOCKON_FLAG
Hash
0xFECA2081F61ED2CD
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(0xFECA2081F61ED2CD, -- _SET_INTERACTION_LOCKON_FLAG
  PlayerPedId(), -- Ped ped
  PlayerId(), -- Player player
  0, -- int flag
  false -- BOOL enable
)
JavaScript
Citizen.invokeNative("0xFECA2081F61ED2CD", // _SET_INTERACTION_LOCKON_FLAG
  PlayerPedId(), // Ped ped
  PlayerId(), // Player player
  0, // int flag
  false // BOOL enable
);
C#
Function.Call((Hash)0xFECA2081F61ED2CD, // _SET_INTERACTION_LOCKON_FLAG
  API.PlayerPedId(), // Ped ped
  API.PlayerId(), // Player player
  0, // int flag
  false // BOOL enable
);
All PED natives

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