The Lab
PLAYER native

_ADD_PLAYER_AS_FOLLOW_TARGET

returns void7 paramsbuild 1207

Makes ped follow player using the given follow mode and priority.

Signature

C
void _ADD_PLAYER_AS_FOLLOW_TARGET(Player player, Ped ped, float p2, float p3, int followMode, int followPriority, BOOL p6); // 0xAC22AA6DF4D1C1DE b1207

Parameters

#NameType
1playerPlayer
2pedPed
3p2float
4p3float
5followModeint
6followPriorityint
7p6BOOL

Facts

Facts about _ADD_PLAYER_AS_FOLLOW_TARGET
Name
_ADD_PLAYER_AS_FOLLOW_TARGET
Hash
0xAC22AA6DF4D1C1DE
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(0xAC22AA6DF4D1C1DE, -- _ADD_PLAYER_AS_FOLLOW_TARGET
  PlayerId(), -- Player player
  PlayerPedId(), -- Ped ped
  0.0, -- float p2
  0.0, -- float p3
  0, -- int followMode
  0, -- int followPriority
  false -- BOOL p6
)
JavaScript
// Whole JS numbers are sent as integers: pass floats like 1.5 (or n + 0.0000001), never 1.
Citizen.invokeNative("0xAC22AA6DF4D1C1DE", // _ADD_PLAYER_AS_FOLLOW_TARGET
  PlayerId(), // Player player
  PlayerPedId(), // Ped ped
  0.0, // float p2
  0.0, // float p3
  0, // int followMode
  0, // int followPriority
  false // BOOL p6
);
C#
Function.Call((Hash)0xAC22AA6DF4D1C1DE, // _ADD_PLAYER_AS_FOLLOW_TARGET
  API.PlayerId(), // Player player
  API.PlayerPedId(), // Ped ped
  0.0f, // float p2
  0.0f, // float p3
  0, // int followMode
  0, // int followPriority
  false // BOOL p6
);
All PLAYER natives

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