The Lab
PLAYER native

SET_PLAYER_LOCKON

returns void2 paramsbuild 1207

Allows or prevents player from locking on to targets.

Signature

C
void SET_PLAYER_LOCKON(Player player, BOOL toggle); // 0x462AA1973CBBA75E b1207

Parameters

#NameType
1playerPlayer
2toggleBOOL

Facts

Facts about SET_PLAYER_LOCKON
Name
SET_PLAYER_LOCKON
Hash
0x462AA1973CBBA75E
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(0x462AA1973CBBA75E, -- SET_PLAYER_LOCKON
  PlayerId(), -- Player player
  false -- BOOL toggle
)
JavaScript
Citizen.invokeNative("0x462AA1973CBBA75E", // SET_PLAYER_LOCKON
  PlayerId(), // Player player
  false // BOOL toggle
);
C#
Function.Call((Hash)0x462AA1973CBBA75E, // SET_PLAYER_LOCKON
  API.PlayerId(), // Player player
  false // BOOL toggle
);
All PLAYER natives

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