CAN_PED_IN_COMBAT_SEE_TARGET
Returns true if ped, while in combat, can see target.
Signature
BOOL CAN_PED_IN_COMBAT_SEE_TARGET(Ped ped, Ped target); // 0xEAD42DE3610D0721 b1207Parameters
| # | Name | Type |
|---|---|---|
| 1 | ped | Ped |
| 2 | target | Ped |
Facts
| Name | CAN_PED_IN_COMBAT_SEE_TARGET |
|---|---|
| Hash | 0xEAD42DE3610D0721 |
| 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(0xEAD42DE3610D0721, -- CAN_PED_IN_COMBAT_SEE_TARGET
PlayerPedId(), -- Ped ped
PlayerPedId() -- Ped target
)
if result then
-- ...
endconst result = Citizen.invokeNative("0xEAD42DE3610D0721", // CAN_PED_IN_COMBAT_SEE_TARGET
PlayerPedId(), // Ped ped
PlayerPedId(), // Ped target
Citizen.returnResultAnyway()
);
if (result) {
// ...
}bool result = Function.Call<bool>((Hash)0xEAD42DE3610D0721, // CAN_PED_IN_COMBAT_SEE_TARGET
API.PlayerPedId(), // Ped ped
API.PlayerPedId() // Ped target
);Related PED natives
- CAN_PED_SEE_PED_CACHED
- _CAN_PED_HEAR_TARGET_PED
- CAN_PED_SEE_ENTITY
- COUNT_PEDS_IN_COMBAT_WITH_TARGET
- COUNT_PEDS_IN_COMBAT_WITH_TARGET_WITHIN_RADIUS
- _GET_IS_PED_IN_DISPUTE_WITH_PED
- _GET_PEDS_IN_COMBAT_WITH_TARGET
- CAN_PED_BE_MOUNTED
- CAN_PED_RAGDOLL
- IS_PED_IN_COMBAT
- IS_PED_IN_MELEE_COMBAT
- IS_TARGET_PED_IN_PERCEPTION_AREA
Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.