_ADD_PLAYER_AS_FOLLOW_TARGET
Makes ped follow player using the given follow mode and priority.
Signature
void _ADD_PLAYER_AS_FOLLOW_TARGET(Player player, Ped ped, float p2, float p3, int followMode, int followPriority, BOOL p6); // 0xAC22AA6DF4D1C1DE b1207Parameters
| # | Name | Type |
|---|---|---|
| 1 | player | Player |
| 2 | ped | Ped |
| 3 | p2 | float |
| 4 | p3 | float |
| 5 | followMode | int |
| 6 | followPriority | int |
| 7 | p6 | BOOL |
Facts
| 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.
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
)// 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
);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
);Related PLAYER natives
- _REMOVE_PLAYER_AS_FOLLOW_TARGET
- _ADD_AMBIENT_PLAYER_INTERACTIVE_FOCUS_PRESET
- _ADD_AMBIENT_PLAYER_INTERACTIVE_FOCUS_PRESET_AT_COORDS
- _IS_PLAYER_FOLLOWING_TARGET
- _SET_PED_AS_SADDLE_HORSE_FOR_PLAYER
- _SET_PLAYER_WEAPON_GROUP_AS_INSTANT_KILL
- GET_PLAYER_INTERACTION_TARGET_ENTITY
- GET_PLAYER_TARGET_ENTITY
- GET_TARGET_CHARACTER_NAME_FOR_LOCAL_PLAYER
- SET_PED_AS_TEMP_PLAYER_HORSE
- _CLEAR_BOUNTY_TARGET
- _CLEAR_PED_EAGLE_EYE_TRAILS_FOR_PLAYER
Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.