RedM Natives

CAN_PED_SEE_PED_CACHED

Hash0x9D9473CB82D83A30
Runtime nameCanPedSeePedCached
NamespacePED
SideClient
NameOfficial
Docs
Since build1207

Signature

int CAN_PED_SEE_PED_CACHED(Ped ped, Ped targetPed, BOOL p2);

Parameters

NameTypeDescription
pedPed—
targetPedPed—
p2BOOL—

Returns int

Usage

Lua
local retval = CanPedSeePedCached(ped, targetPed, p2)

-- always works, by hash
local retval = Citizen.InvokeNative(0x9D9473CB82D83A30, ped, targetPed, p2, Citizen.ResultAsInteger())
JavaScript and C#
JavaScript
const retval = CanPedSeePedCached(ped, targetPed, p2);

// by hash
const retval = Citizen.invokeNative('0x9D9473CB82D83A30', ped, targetPed, p2, Citizen.returnResultAnyway(), Citizen.resultAsInteger());
C#
int retval = Function.Call<int>((Hash)0x9D9473CB82D83A30, ped, targetPed, p2);

Sources

alloc8or RDR3 NativeDB

Something wrong or missing? Contribute a verified note — corrections ship through pull requests.