_IS_PLAYER_FOLLOWING_TARGET
Returns true if ped is following player as a follow target.
Signature
BOOL _IS_PLAYER_FOLLOWING_TARGET(Player player, Ped ped); // 0xE24C64D9ADED2EF5 b1207Parameters
| # | Name | Type |
|---|---|---|
| 1 | player | Player |
| 2 | ped | Ped |
Facts
| Name | _IS_PLAYER_FOLLOWING_TARGET |
|---|---|
| Hash | 0xE24C64D9ADED2EF5 |
| Namespace | |
| Returns | BOOL |
| Game build | 1207 |
Examples
Calls by hash work in every RedM runtime. Replace the placeholder arguments with your own values.
local result = Citizen.InvokeNative(0xE24C64D9ADED2EF5, -- _IS_PLAYER_FOLLOWING_TARGET
PlayerId(), -- Player player
PlayerPedId() -- Ped ped
)
if result then
-- ...
endconst result = Citizen.invokeNative("0xE24C64D9ADED2EF5", // _IS_PLAYER_FOLLOWING_TARGET
PlayerId(), // Player player
PlayerPedId(), // Ped ped
Citizen.returnResultAnyway()
);
if (result) {
// ...
}bool result = Function.Call<bool>((Hash)0xE24C64D9ADED2EF5, // _IS_PLAYER_FOLLOWING_TARGET
API.PlayerId(), // Player player
API.PlayerPedId() // Ped ped
);Related PLAYER natives
- _IS_PLAYER_FREE_FOCUSING
- _IS_PLAYER_IN_SCOPE
- _IS_PLAYER_LOCKED_ON_ENTITY_ON_HORSE
- _ADD_PLAYER_AS_FOLLOW_TARGET
- _GET_PLAYER_MOUNT_IS_SPRINTING_ON_ROAD
- _GET_PLAYER_UI_PROMPT_FOR_PED_IS_ENABLED
- _GET_PLAYER_UI_PROMPT_IS_DISABLED
- _REMOVE_PLAYER_AS_FOLLOW_TARGET
- GET_ENTITY_PLAYER_IS_FREE_AIMING_AT
- GET_IS_PLAYER_UI_PROMPT_ACTIVE
- GET_PLAYER_INTERACTION_TARGET_ENTITY
- GET_PLAYER_TARGET_ENTITY
Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.