Native referenceFiveM

SET_PLAYER_LOCKON

0x5C8B2F450EE4328E PLAYER
FUNCTION SIGNATURE
void SET_PLAYER_LOCKON(Player player, BOOL toggle);
Property Value
Native Name SET_PLAYER_LOCKON
Hash 0x5C8B2F450EE4328E
Return Type void
Parameters player (Player), toggle (BOOL)

Description: ``` Used to toggle the square up aim.


### Parameters
- **`player`** (`Player`) — The player ID to toggle the lock on for.
- **`toggle`** (`BOOL`) — Set to false to prevent lock on, set to true to allow for lock on.

### Examples
```lua
local plyId = PlayerId()
SetPlayerLockon(plyId, false)
Back to PLAYER