{"hash":"0x06087579E7AA85A9","ns":"PED","name":"IS_TARGET_PED_IN_PERCEPTION_AREA","slug":"IS_TARGET_PED_IN_PERCEPTION_AREA","official":true,"named":true,"luaName":"IsTargetPedInPerceptionArea","game":"rdr3","apiset":"client","returnType":"BOOL","params":[{"name":"ped","type":"Ped"},{"name":"targetPed","type":"Ped"},{"name":"p2","type":"float"},{"name":"customDistance","type":"float"},{"name":"p4","type":"float"},{"name":"p5","type":"float"}],"summary":"Returns true if ped is in perception (focused and looking at target ped) Most float params are -1.f in R* Scripts","descriptions":[{"source":"alloc8or","format":"text","body":"Returns true if ped is in perception (focused and looking at target ped)\nMost float params are -1.f in R* Scripts"}],"examples":[],"aliases":[],"enums":[],"related":[],"build":"1207","gtaHash":"0x06087579E7AA85A9","gtaJhash":"0xD0567D41","sources":["alloc8or"],"doc":2,"url":"https://natives.borderlinerp.com/natives/PED/IS_TARGET_PED_IN_PERCEPTION_AREA","markdownUrl":"https://natives.borderlinerp.com/natives/PED/IS_TARGET_PED_IN_PERCEPTION_AREA.md","snippets":{"lua":"local retval = IsTargetPedInPerceptionArea(ped, targetPed, p2, customDistance, p4, p5)","luaInvoke":"local retval = Citizen.InvokeNative(0x06087579E7AA85A9, ped, targetPed, p2, customDistance, p4, p5, Citizen.ReturnResultAnyway())","js":"const retval = IsTargetPedInPerceptionArea(ped, targetPed, p2, customDistance, p4, p5);","jsInvoke":"const retval = Citizen.invokeNative('0x06087579E7AA85A9', ped, targetPed, p2 + 0.0000001, customDistance + 0.0000001, p4 + 0.0000001, p5 + 0.0000001, Citizen.returnResultAnyway());","csharp":"bool retval = Function.Call<bool>((Hash)0x06087579E7AA85A9, ped, targetPed, p2, customDistance, p4, p5);","notes":["Float parameters: Lua integers (`10`, or whole numbers decoded from NUI/JSON) are sent as ints and read as garbage. Write `10.0` or `value + 0.0`. The generated JS wrappers add `0.0000001` to non-zero floats for the same reason."]}}