CAN_PED_SEE_PED_CACHED
Returns a cached result indicating whether ped can see targetPed, which is cheaper than a fresh check.
Signature
int CAN_PED_SEE_PED_CACHED(Ped ped, Ped targetPed, BOOL p2); // 0x9D9473CB82D83A30 b1207Parameters
| # | Name | Type |
|---|---|---|
| 1 | ped | Ped |
| 2 | targetPed | Ped |
| 3 | p2 | BOOL |
Facts
| Name | CAN_PED_SEE_PED_CACHED |
|---|---|
| Hash | 0x9D9473CB82D83A30 |
| Namespace | |
| Returns | int |
| Game build | 1207 |
Examples
Calls by hash work in every RedM runtime. Replace the placeholder arguments with your own values.
local result = Citizen.InvokeNative(0x9D9473CB82D83A30, -- CAN_PED_SEE_PED_CACHED
PlayerPedId(), -- Ped ped
PlayerPedId(), -- Ped targetPed
false, -- BOOL p2
Citizen.ResultAsInteger()
)
print(result)const result = Citizen.invokeNative("0x9D9473CB82D83A30", // CAN_PED_SEE_PED_CACHED
PlayerPedId(), // Ped ped
PlayerPedId(), // Ped targetPed
false, // BOOL p2
Citizen.resultAsInteger()
);
console.log(result)int result = Function.Call<int>((Hash)0x9D9473CB82D83A30, // CAN_PED_SEE_PED_CACHED
API.PlayerPedId(), // Ped ped
API.PlayerPedId(), // Ped targetPed
false // BOOL p2
);Related PED natives
- CAN_PED_SEE_ENTITY
- CAN_PED_IN_COMBAT_SEE_TARGET
- _CAN_PED_HEAR_TARGET_PED
- CAN_PED_BE_MOUNTED
- CAN_PED_RAGDOLL
- CAN_KNOCK_PED_OFF_VEHICLE
- _APPLY_PED_META_PED_OUTFIT
- _CAN_PED_USE_SCENARIO_POINT
- _CREATE_META_PED_OUTFIT_PED
- _DOES_META_PED_OUTFIT_EXIST_FOR_PED_MODEL
- _DOES_META_PED_SUBOUTFIT_EXIST_FOR_PED_MODEL
- _GET_IS_PED_IN_DISPUTE_WITH_PED
Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.