# PLAYER::_ADD_PLAYER_AS_FOLLOW_TARGET

- **Hash:** `0xAC22AA6DF4D1C1DE`
- **Namespace:** PLAYER
- **Runtime name (Lua/JS):** `AddPlayerAsFollowTarget`
- **Side:** client (game native)
- **Name status:** community guess (may change)
- **Documentation:** described
- **Since game build:** 1207
- **URL:** https://natives.borderlinerp.com/natives/PLAYER/_ADD_PLAYER_AS_FOLLOW_TARGET

## Signature

```c
void _ADD_PLAYER_AS_FOLLOW_TARGET(Player player, Ped ped, float p2, float p3, int followMode, int followPriority, BOOL p6);
```

## Parameters

- `player` (`Player`)
- `ped` (`Ped`)
- `p2` (`float`)
- `p3` (`float`)
- `followMode` (`int`)
- `followPriority` (`int`)
- `p6` (`BOOL`)

## Returns

`void`

## Description

Used in script function: NET_AUTO_FOLLOW_UPDATE_LEADER_VALUES
followMode:
HORSEFOLLOWMODE_AUTO = 0,
HORSEFOLLOWMODE_SIDE_ONLY,
HORSEFOLLOWMODE_BEHIND_ONLY,
HORSEFOLLOWMODE_BEHIND_AND_SIDE,
HORSEFOLLOWMODE_BEHIND_CLOSE
followPriority:
HORSEFOLLOWPRIORITY_STEER_ASSIST = 0,
HORSEFOLLOWPRIORITY_AMBIENT,
HORSEFOLLOWPRIORITY_NORMAL,
HORSEFOLLOWPRIORITY_HIGH

## Usage

### Lua

```lua
AddPlayerAsFollowTarget(player, ped, p2, p3, followMode, followPriority, p6)

-- always available, by hash
Citizen.InvokeNative(0xAC22AA6DF4D1C1DE, player, ped, p2, p3, followMode, followPriority, p6)
```

### JavaScript

```js
AddPlayerAsFollowTarget(player, ped, p2, p3, followMode, followPriority, p6);

// by hash
Citizen.invokeNative('0xAC22AA6DF4D1C1DE', player, ped, p2 + 0.0000001, p3 + 0.0000001, followMode, followPriority, p6);
```

### C#

```csharp
Function.Call((Hash)0xAC22AA6DF4D1C1DE, player, ped, p2, p3, followMode, followPriority, p6);
```

- Float parameters: Lua integers (`10`, or whole numbers decoded from NUI/JSON) are sent as ints and read as garbage. Write `10.0` or `value + 0.0`. The generated JS wrappers add `0.0000001` to non-zero floats for the same reason.
- 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.

## See also

- [PLAYER::_REMOVE_PLAYER_AS_FOLLOW_TARGET](https://natives.borderlinerp.com/natives/PLAYER/_REMOVE_PLAYER_AS_FOLLOW_TARGET.md)

*Sources: alloc8or RDR3 NativeDB.*
